dave.com
October 20th, 2008, 05:52 PM
I've edited /grub/menu.lst from LiveCD in Hardy using a few shortcuts:
~$sudo -i
/#mkdir /mnt/root
/#mount -t ext3 /dev/sdc1 /mnt/root
/#mount -t ext3 /dev/sdc2 /mnt/root/boot
/#mount -t reiserfs /dev/sdc3 /mnt/root/home
/#mount -t proc none /mnt/root/proc
/#mount -o bind /dev /mnt/root/dev
/#sudo chroot /mnt/root /bin/bash
/# sudo nano -w /boot/grub/menu.lst
<edit menu.lst>
/#update-grub
About 30% into the Ubuntu loading progress bar, Linux flips out and drops to a text screen while everything checks off [ok] then it hits an error:
"/etc/init.d/rc: 317: sed: Permission denied". As near as I can guess, at line 317 in /etc/init.d/rc a "Startup: scripts actions" init routine is concluded and this is where the Permissions error occurs. That narrows my guess down to the shell. Ubuntu LiveCD uses dash, and I invoked bash.
Is this guess correct, and can I set the correct permissions for the init script? (Whichever one it is?)
I found this:
# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0
in an old Gentoo /sbin/rc script bug report... bugzilla description (http://bugs.gentoo.org/show_bug.cgi?id=21068) ntfs-config auto set the /etc/fstab line with a 'proc' entry where the example above shows 'none' at the beginning of the proc line, it could be anything.
I followed a lot of clues to get this answer... re-install Ubuntu (I have /home on its own partition).
~$sudo -i
/#mkdir /mnt/root
/#mount -t ext3 /dev/sdc1 /mnt/root
/#mount -t ext3 /dev/sdc2 /mnt/root/boot
/#mount -t reiserfs /dev/sdc3 /mnt/root/home
/#mount -t proc none /mnt/root/proc
/#mount -o bind /dev /mnt/root/dev
/#sudo chroot /mnt/root /bin/bash
/# sudo nano -w /boot/grub/menu.lst
<edit menu.lst>
/#update-grub
About 30% into the Ubuntu loading progress bar, Linux flips out and drops to a text screen while everything checks off [ok] then it hits an error:
"/etc/init.d/rc: 317: sed: Permission denied". As near as I can guess, at line 317 in /etc/init.d/rc a "Startup: scripts actions" init routine is concluded and this is where the Permissions error occurs. That narrows my guess down to the shell. Ubuntu LiveCD uses dash, and I invoked bash.
Is this guess correct, and can I set the correct permissions for the init script? (Whichever one it is?)
I found this:
# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0
in an old Gentoo /sbin/rc script bug report... bugzilla description (http://bugs.gentoo.org/show_bug.cgi?id=21068) ntfs-config auto set the /etc/fstab line with a 'proc' entry where the example above shows 'none' at the beginning of the proc line, it could be anything.
I followed a lot of clues to get this answer... re-install Ubuntu (I have /home on its own partition).