issue131:labo_linux
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue131:labo_linux [2018/03/31 17:43] – créée auntiee | issue131:labo_linux [2018/04/16 19:45] (Version actuelle) – andre_domenech | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | My work normally entails running the daily operations of our Computer Recycling/ | + | **My work normally entails running the daily operations of our Computer Recycling/ |
When I arrived on site, I confirmed that the system was just sitting on a black screen with a non-blinking cursor line in the top left of the screen. The normal behaviour for this machine was to boot to a LightDM login screen for Xubuntu Linux. I tried CTRL+ALT+F1 to switch to a virtual terminal, it didn’t work. | When I arrived on site, I confirmed that the system was just sitting on a black screen with a non-blinking cursor line in the top left of the screen. The normal behaviour for this machine was to boot to a LightDM login screen for Xubuntu Linux. I tried CTRL+ALT+F1 to switch to a virtual terminal, it didn’t work. | ||
- | I powered the system down and powered it up again to the same result. I repeated the process this time hitting the TAB key a few times and pressing CTRL+ALT+F1 for the first virtual terminal; this time I successfully brought up a terminal login. | + | I powered the system down and powered it up again to the same result. I repeated the process this time hitting the TAB key a few times and pressing CTRL+ALT+F1 for the first virtual terminal; this time I successfully brought up a terminal login. |
- | Earlier in the week, I had one of our Computer Recycling clients bring in a laptop where the xserver configuration file had become corrupted. This problem had some similarities to the laptop issue, so I tried: | + | Normalement, |
+ | |||
+ | Lors de mon arrivée sur site, j'ai confirmé que le système restait sur un écran noir avec une ligne non clignotante du curseur en haut et à gauche de l' | ||
+ | |||
+ | J'ai arrêté le système et l'ai allumé à nouveau avec le même résultat. J'ai répété le processus en appuyant plusieurs fois sur la touche TAB, puis en appuyant sur CTRL+ALT+F1 pour le premier terminal virtuel ; cette fois-ci, une page de connexion au terminal s'est affichée - j' | ||
+ | |||
+ | **Earlier in the week, I had one of our Computer Recycling clients bring in a laptop where the xserver configuration file had become corrupted. This problem had some similarities to the laptop issue, so I tried: | ||
sudo dpkg-reconfigure xserver-xorg-video-intel | sudo dpkg-reconfigure xserver-xorg-video-intel | ||
Ligne 15: | Ligne 21: | ||
sudo apt-get -f install | sudo apt-get -f install | ||
- | It was at this moment that I noticed an inordinate amount of kernel images. This was the eureka moment, literally pages of kernel images had been left on the system. Removing old images was simple (or so I thought): | + | It was at this moment that I noticed an inordinate amount of kernel images. This was the eureka moment, literally pages of kernel images had been left on the system. Removing old images was simple (or so I thought):** |
- | sudo apt-get autoremove | + | Plus tôt dans la semaine, j' |
+ | |||
+ | sudo dpkg-reconfigure xserver-xorg-video-intel | ||
+ | |||
+ | C'est alors que j'ai eu un message d' | ||
+ | |||
+ | Perplexe, j'ai décidé d' | ||
+ | |||
+ | sudo apt-get -f install | ||
+ | |||
+ | À ce moment j'ai remarqué un nombre démesuré d' | ||
+ | |||
+ | **sudo apt-get autoremove | ||
This would have worked except the system was out of space (on /usr) and broken. In order to free up a bit of space to run the apt-get -f install and apt-get autoremove, I manually removed a couple of the kernel images. I chose images that were neither the oldest nor the newest, and then ran: | This would have worked except the system was out of space (on /usr) and broken. In order to free up a bit of space to run the apt-get -f install and apt-get autoremove, I manually removed a couple of the kernel images. I chose images that were neither the oldest nor the newest, and then ran: | ||
Ligne 31: | Ligne 49: | ||
sudo apt-get autoremove | sudo apt-get autoremove | ||
- | Removing the old kernel images took nearly 1 hour. As a kernel image is removed, grub2 regenerates the grub2 boot file. Remove an image, regenerate the grub2 boot file, rinse and repeat – until all the extra kernel images were removed. This freed up 14.9GB of drive space on the tiny drive. | + | Removing the old kernel images took nearly 1 hour. As a kernel image is removed, grub2 regenerates the grub2 boot file. Remove an image, regenerate the grub2 boot file, rinse and repeat – until all the extra kernel images were removed. This freed up 14.9GB of drive space on the tiny drive.** |
+ | |||
+ | sudo apt-get autoremove | ||
+ | |||
+ | Cela aurait fonctionné sauf que le système n' | ||
+ | |||
+ | sudo rm -rf / | ||
+ | |||
+ | sudo rm -rf / | ||
+ | |||
+ | N.B. : les deux lignes ci-dessus sont un exemple (il faut toujours faire très attention en enlevant quelque partie du système que ce soit qui peut être critique). | ||
+ | |||
+ | Après avoir enlevé deux jeux d' | ||
+ | |||
+ | sudo apt-get autoremove | ||
+ | |||
+ | Il a fallu presque une heure pour supprimer les vieilles images noyau. Lors de la suppression d'une image noyau, grub2 régénère le fichier boot grub2. Enlever une image, régénérer le fichier boot grub2, encore et encore, jusqu' | ||
+ | |||
+ | **I’d previously tried to install gparted and it failed because of the full drive. Now that the drive had more space, I was able to run sudo apt-get -f install to complete the installation. While we have unattended updates that run on this particular machine, those updates had stopped a few days earlier because of the full drive, so I also ran sudo apt-get update && sudo apt-get upgrade to upgrade the system to the latest packages. | ||
+ | |||
+ | On reboot, the machine loaded the LightDM login screen and the staff were able to login to the machine normally.** | ||
- | I’d previously tried to install | + | J' |
- | On reboot, the machine | + | Au redémarrage, la machine |
issue131/labo_linux.1522511011.txt.gz · Dernière modification : 2018/03/31 17:43 de auntiee