Ubuntu Server Tips

Boot error whith Natty(Éditer)

I got the same error this past weekend all I did was boot from the live CD and chrooted my Natty / using the following commands:

  • sudo mount /dev/sdXx /mnt
  • sudo mount -o bind /dev /mnt/dev
  • sudo mount -o bind /sys /mnt/sys
  • sudo mount -o bind /proc /mnt/proc
  • sudo chroot /mnt

Once at the prompt I reinstall grub:

  • grub-install /dev/sda
  • and then updated grub
  • update-grub
  • then Ctrl-D twice to exit, and reboot.

Changement mot de passe pour les utilisateurs(Éditer)

Followed by entering username:password pairs, one pair per line. Enter CTRL+D when finished.

~$ chpasswd



~$ sudo chpasswd root:***

Nettoyage des anciennes images(Éditer)

~# dpkg -l | grep linux | cut -f 3 -d " "
~# apt-get remove linux-image-2.6.32-28-generic-pae —purge

Ugrade distribution(Éditer)

~$ do-release-upgrade