[NBLUG/talk] Can't boot Linux anymore!
Mark Street
mark at oswizards.com
Sat Mar 5 19:00:11 PST 2005
AHhhh, you should have had a V8. This isn't a grub problem, it's an
environment problem. You need to be in a chroot'd environment for the
mounted Linux partition.
After you mount the Linux partition rw you need to cd into /mnt/hda2 then
# chroot .
# grub-install /dev/hda2
grub-install /dev/hda2 if you are going to use the Windoze boot loader in the
MBR. If you plan to use grub as your primary boot loader you should put it
in the MBR with a
# grub-install /dev/hda
Your error reflects the fact that the Knoppix environment is mounted read
only.
On Saturday 05 March 2005 18:24, paulgs at sonic.net wrote:
> I had to reinstall my WinXP partition last week because the registry
> decided to self destruct (just before tax time too).
>
> Somehow I managed to trash the MBR on my Linux partition during the
> reinstall. When I whip out my handy Knoppix CD to fix it, I run into
> problems.
>
> I have a dual boot Thinkpad A30 running WinXP on hda1, Debian testing on
> hda2, a Linux swap on hda3, and the IBM recovery partition brings up the
> rear on hda4.
>
> First I boot into Knoppix. Then I "su - root". The mount command "mount
> -t ext3 -o rw /dev/hda2 /mnt/hda2" comes next. Then I try "grub-install
> /dev/hda2" (I'll make this partition the boot partition with "parted"
> later).
>
> grub-install gives me the message "mkdir: cannot create directory
> '/boot/grub': Read-only file system". Huh? I can do "dd if=/dev/zero
> of=/dev/hda2 bs=512 count=1" just fine. Why is grub not happy?
--
Mark Street, RHCE
http://www.oswizards.com
--
Key fingerprint = 3949 39E4 6317 7C3C 023E 2B1F 6FB3 06E7 D109 56C0
GPG key http://www.oswizards.com/pubkey.asc
More information about the talk
mailing list