Editing Installation Files From Kboot
Sometimes you may need to edit files in your Ubuntu installation but from the kboot prompt. E.g. if the system is unbootable for some reason being able to change the settings in configuration files may allow you to get the system booting again. Here's how.
Note: the '$' below represents the shell prompt not a character which needs to be typed.
1) At the kboot prompt type 'sh' and press return, you're now at a
Busybox shell.
2) Remount the boot partition read/write
$ umount /mnt/root
$ mount -t ext3 -w /dev/ps3da1 /mnt/root
3) chroot into the boot partition and run the bash shell
$ chroot /mnt/root bash
4) Now you could edit kboot.conf for instance
$ vim /etc/kboot.conf
or
$ nano /etc/kboot.conf
5) Now to return to kboot and boot your system do this:
$ exit
$ exit
Instead of exit you can type Ctrl+d, which I personally find more convenient.
The first exit will exit bash and the chroot environment, the second one will exit the
BusyBox shell. You should now find yourself at the kboot prompt again where you can boot the system in the normal way.
There are 508 comments on this page. [Display comments]