Quote:
i.e. boot into maintenance mode and run these two commands: Code:
mount -o remount,rw / Code:
cat /boot/grub/grub.cfg | sed s/hd1/hd0/g |
cat: /boot/grub/grub.cfg: No such file or directory
As a matter of fact, /boot/grub is empty except for the file grubenv which contains "#" characters. By the way, I don't know what maintenance mode means. |
Quote:
What is the output of: Code:
mount -l |
No I'm the one who's sorry, I don't know what 'maintenance mode' means so it's likely I'm not in it. How do I go into that mode ?
|
Quote:
|
ubuntu@ubuntu:~$ mount -l
aufs on / type aufs (rw) none on /proc type proc (rw,noexec,nosuid,nodev) none on /sys type sysfs (rw,noexec,nosuid,nodev) none on /dev type devtmpfs (rw,mode=0755) none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620) /dev/sr0 on /cdrom type iso9660 (ro,noatime) [Ubuntu 10.04.2 LTS amd64] /dev/loop0 on /rofs type squashfs (ro,noatime) none on /sys/fs/fuse/connections type fusectl (rw) none on /sys/kernel/debug type debugfs (rw) none on /sys/kernel/security type securityfs (rw) none on /dev/shm type tmpfs (rw,nosuid,nodev) tmpfs on /tmp type tmpfs (rw,nosuid,nodev) none on /var/run type tmpfs (rw,nosuid,mode=0755) none on /var/lock type tmpfs (rw,noexec,nosuid,nodev) none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev) gvfs-fuse-daemon on /home/ubuntu/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=ubuntu) |
Quote:
Code:
grub Code:
root (hd0,0) Code:
setup (hd0) Code:
quit |
The program 'grub' is currently not installed. You can install it by typing:
sudo apt-get install grub so i did that. then root (hd0,0) Error 21: Selected disk does not exist |
Quote:
Code:
chroot /mnt/sysimage |
chroot /mnt/sysimage
chroot: cannot change root directory to /mnt/sysimage: No such file or directory ps: I edited my last post |
Quote:
|
Come again ?
I am in the live ubuntu cd right now. The last time I booted, it went straight to seven, so I have no reason to doubt that is still is the case since I don't recall having done anything special. Do you want me to test again ? edit: ah sorry you meant the grub prompt of the grub command, I thought you were speaking of the grub menu at boot time, because I was confounded a few posts back as I didn't know the right word, and I thought you'd be using my words to help me out. So, yes I can get the grub prompt by typing grub in the console, after I have installed that software. I then typed root (hd0,0) in the grub prompt, which gave the output: Error 21: Selected disk does not exist Do you want me to type something else in the grub prompt ? |
Quote:
Code:
device (hd0,0) /dev/sda Code:
root (hd0,0) Code:
setup (hd0) Code:
quit |
grub> device (hd0,0) /dev/sda
device (hd0,0) /dev/sda Error 15: File not found |
I am about to sign-off from LQ for today, but before I do so, there is some confusion that really needs to be cleared up before the OP and Brocifer get into an even bigger tangle.
Bob32 is running not in "Maintenance mode", but from a live CD. His ubuntu root partition isn't mounted so he cannot edit /boot/grub/grub.cfg Even if he mounted it he could not directly edit it (even as root) because it is a file with perms r--r--r-- and the first lines read: Code:
# DO NOT EDIT THIS FILE Bob32 needs to reinstall grub to the MBR of which ever HDD he has set his computer to boot from, pointing grub at his ubuntu root partition (wherever that is now). See post #4. After a reboot to ubuntu he needs to run Code:
sudo update-grub I'm off for some food and sleep now. |
All times are GMT -5. The time now is 12:04 AM. |