yet another grub reinstallation
Hi all!!
I had to mend my windows xp partition due to problems so I reinstall it knowing that it will screw up grub. I documented myself about how to bring my linux partion back to live reinstalling grub but the process doesn't work for me. as I don't have a debian rescue disk, I'm using knoppix to boot my system. So: 1.- I boot my system with knoppix 2.- mount /mnt/hda1 [which is my linux partition] 3.- chroot /mnt/hda1 4.- grub-install /dev/hda After this done, the followin errors are given: Code:
/sbin/grub-install: line 485: /dev/null: Permission denied 1.- I boot my system with knoppix 2.- mount /mnt/hda1 [which is my linux partition] 3.- chroot /mnt/hda1 4.- grub> root (hd0,0) Code:
Error 21: Selected disk does not exist Thanks in advance PS: I do not have a /boot partition, just a ext3 partition for my whole linux |
That is a common problem with Knoppix when you chroot to another Linux OS. You need to unmount /dev/hda1 and then remount it as follows,
Code:
#mount /dev/hda1 /mnt/hda1 -o rw |
Sometimes it is a good idea to "mount -a" & "bash -l". If /boot is on its own partition for example, you want it mounted. The "bash -l" will start a login shell, which will run your normal ~/.bash_profile for the root user.
|
Thank you so much!! it worked like a charm :)
|
All times are GMT -5. The time now is 02:08 AM. |