Hello,
I have installed a Windows XP on another partition than my FC5. The system boot on Windows. I'm unable to do a dual-boot FC5 and XP. The steps followed are below:
1. Boot from DVD, then on the prompt: linux rescue; 2. from the rescue mode prompt: chroot /mnt/sysimage; 3. then: /sbin/grub-install /dev/hda.
So, occurs an error about stage1 incomplete or something like that.
Any ideas, please?
TIA, Vinicius.
On Thu, 28/09/06 04:31 +0100, Vinicius wrote:
Hello,
I have installed a Windows XP on another partition than my FC5. The system boot on Windows. I'm unable to do a dual-boot FC5 and XP. The steps followed are below:
- Boot from DVD, then on the prompt: linux rescue;
- from the rescue mode prompt: chroot /mnt/sysimage;
- then: /sbin/grub-install /dev/hda.
So, occurs an error about stage1 incomplete or something like that.
Any ideas, please?
TIA, Vinicius.
Could you list your partitions?
1. fdisk /dev/hda 2. 'p' to print partition table 3. 'q' to exit fdisk
Attach the output in step 2 to the list. People might be able to help.
On Thu, 2006-09-28 at 03:31 +0000, Vinicius wrote:
Hello,
I have installed a Windows XP on another partition than my FC5. The system boot on Windows. I'm unable to do a dual-boot FC5 and XP. The steps followed are below:
- Boot from DVD, then on the prompt: linux rescue;
- from the rescue mode prompt: chroot /mnt/sysimage;
- then: /sbin/grub-install /dev/hda.
So, occurs an error about stage1 incomplete or something like that.
Any ideas, please?
TIA, Vinicius.
You might try this instead of the grub-install. Let us assume that your linux is on partition 2. grub grub> setup (hd0) grub> root (hd0,1) grub> quit
then reboot
The 1 in the root command refers to partition 2 since grub numbers partitions starting at 0.
-- ======================================================================= When I sell liquor, it's called bootlegging; when my patrons serve it on silver trays on Lake Shore Drive, it's called hospitality. -- Al Capone ======================================================================= Aaron Konstam telephone: (210) 656-0355 e-mail: akonstam@sbcglobal.net
Hello,
My original grub.conf uses hd0,5 as device and /dev/VolGroup00/LogVol00 as root.
The grub command "setup (hd0)" doesn't work.
When I run "/sbin/grub-install hd0,5" or "/sbin/grub-install /dev/VolGroup00/LogVol00", the return is "The file /boot/grub/stage1 not read correctly". And the floppy disk led turns on and I hear the head moving.
Thanks for your time, Vinicius.
Hello,
Please, see the follow-up to Aaron.
I was thinking turning grub back should be easy. I was wrong.
Thanks for your time, Vinicius.
Vinicius wrote:
Hello,
My original grub.conf uses hd0,5 as device and /dev/VolGroup00/LogVol00 as root.
The grub command "setup (hd0)" doesn't work.
When I run "/sbin/grub-install hd0,5" or "/sbin/grub-install /dev/VolGroup00/LogVol00", the return is "The file /boot/grub/stage1 not read correctly". And the floppy disk led turns on and I hear the head moving.
Thanks for your time, Vinicius.
This may be one of those tricky ones. Sometimes it goes like this: Insert the CDROM or DVD boot: linux rescue error mounting ... (or whatever) root shell if it won't mount things properly, then ...
# mkdir /mnt # mount <root-device> /mnt # cp -a /dev/* /mnt/dev # chroot /mnt
I hate having to type in full path names :) Source the common profile
# . /etc/profile
That is: dot space /etc/profile
# mount </boot-device> /boot # df -h
to insure that both / and /boot partitions appear to mount -- grub-install needs this
# grub-install --nofloppy --recheck <root-device>
That should fix ya up.
# exit #exit
Will cause a reboot -- remove the disk!
Leo <sdl.web <at> gmail.com> writes:
On Thu, 28/09/06 04:31 +0100, Vinicius wrote:
Hello,
I have installed a Windows XP on another partition than my FC5. The system boot on Windows. I'm unable to do a dual-boot FC5 and XP. The steps followed are below:
- Boot from DVD, then on the prompt: linux rescue;
- from the rescue mode prompt: chroot /mnt/sysimage;
- then: /sbin/grub-install /dev/hda.
So, occurs an error about stage1 incomplete or something like that.
Any ideas, please?
TIA, Vinicius.
Could you list your partitions?
- fdisk /dev/hda
- 'p' to print partition table
- 'q' to exit fdisk
Attach the output in step 2 to the list. People might be able to help.
Hello,
# fdisk -l omitting empty partition (5)
Disk /dev/hda: 40.0 GB, 40020664320 bytes 255 heads, 63 sectors/track, 4865 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/hda1 * 1 688 5526328+ 7 HPFS/NTFS /dev/hda2 689 2295 12908227+ 7 HPFS/NTFS /dev/hda3 2296 4865 20643525 f W95 Ext'd (LBA) /dev/hda4 4592 4865 2200873+ b W95 FAT32 /dev/hda5 2296 2308 104359+ 83 Linux /dev/hda6 2309 4591 18338166 8e Linux LVM
TIA, Vinicius.
On Fri, 29 Sep 2006, Vinicius wrote:
Hello,
My original grub.conf uses hd0,5 as device and /dev/VolGroup00/LogVol00 as root.
The grub command "setup (hd0)" doesn't work.
When I run "/sbin/grub-install hd0,5" or "/sbin/grub-install /dev/VolGroup00/LogVol00", the return is "The file /boot/grub/stage1 not read correctly". And the floppy disk led turns on and I hear the head moving.
I haven't seen the earlier part of this thread, so maybe I've missed something, but hd0,5 looks like a logical partition inside the extended partition and /dev/VolGroup00/LogVol00 is an LVM logical volume. I'm pretty sure that grub needs to live in the MBR or the boot record of a primary partition. I've been told that recent grubs can have /boot be a logical partition, but have not verified that. grub cannot live in or boot from an LVM volume. The root file system (not /boot) can be a logical volume.
I have /boot as a small primary partition (/dev/hda3 or (hd0,2)). Grub itself is installed in the boot record of that partition, which I made the active boot partition using fdisk. My / filesystem is in /dev/VolGroup00/LogVol00. Thus the grub stanza reads
title Fedora Core (2.6.17-1.2187_FC5) root (hd0,2) kernel /vmlinuz-2.6.17-1.2187_FC5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet initrd /initrd-2.6.17-1.2187_FC5.img
I haven't had to do it by hand, but I think that would be
grub-install /dev/hda3
or
grub-install (hd0,2)
with no options. There's a comment in grub.conf to the effect that, because I have a /boot partition, all paths are relative to /boot.
Thanks for your time, Vinicius.
Vinicius <cviniciusm <at> uol.com.br> writes:
Leo <sdl.web <at> gmail.com> writes:
On Thu, 28/09/06 04:31 +0100, Vinicius wrote:
Hello,
I have installed a Windows XP on another partition than my FC5. The system boot on Windows. I'm unable to do a dual-boot FC5 and XP. The steps followed are below:
- Boot from DVD, then on the prompt: linux rescue;
- from the rescue mode prompt: chroot /mnt/sysimage;
- then: /sbin/grub-install /dev/hda.
So, occurs an error about stage1 incomplete or something like that.
Any ideas, please?
TIA, Vinicius.
Could you list your partitions?
- fdisk /dev/hda
- 'p' to print partition table
- 'q' to exit fdisk
Attach the output in step 2 to the list. People might be able to help.
Hello,
# fdisk -l omitting empty partition (5)
Disk /dev/hda: 40.0 GB, 40020664320 bytes 255 heads, 63 sectors/track, 4865 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/hda1 * 1 688 5526328+ 7 HPFS/NTFS /dev/hda2 689 2295 12908227+ 7 HPFS/NTFS /dev/hda3 2296 4865 20643525 f W95 Ext'd (LBA) /dev/hda4 4592 4865 2200873+ b W95 FAT32 /dev/hda5 2296 2308 104359+ 83 Linux /dev/hda6 2309 4591 18338166 8e Linux LVM
TIA, Vinicius.
Hello,
My /etc/fstab is following: " /dev/VolGroup00/LogVol00 / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 devpts /dev/pts devpts gid=5,mode=620 0 0 tmpfs /dev/shm tmpfs defaults 0 0 proc /proc proc defaults 0 0 sysfs /sys sysfs defaults 0 0 /dev/VolGroup00/LogVol01 swap swap defaults 0 0 /dev/hda5 /mnt/fat auto auto,rw,uid=0,gid=501,showexec,quiet,fmask=117,dmask=007 0 0 /dev/hda1 /mnt/windows-sistema ntfs ro,umask=0222,gid=502 0 0 /dev/hda3 /mnt/windows-dados ntfs ro,umask=0222,gid=502 0 0 /dev/fd0 /media/floppy auto rw,noauto,user,sync 0 0 "
Please, help.
TIA, Vinicius.
Vinicius escreveu:
Vinicius <cviniciusm <at> uol.com.br> writes:
Leo <sdl.web <at> gmail.com> writes:
On Thu, 28/09/06 04:31 +0100, Vinicius wrote:
Hello,
I have installed a Windows XP on another partition than my FC5. The system boot on Windows. I'm unable to do a dual-boot FC5 and XP. The steps followed are below:
- Boot from DVD, then on the prompt: linux rescue;
- from the rescue mode prompt: chroot /mnt/sysimage;
- then: /sbin/grub-install /dev/hda.
So, occurs an error about stage1 incomplete or something like that.
Any ideas, please?
TIA, Vinicius.
Could you list your partitions?
- fdisk /dev/hda
- 'p' to print partition table
- 'q' to exit fdisk
Attach the output in step 2 to the list. People might be able to help.
Hello,
# fdisk -l omitting empty partition (5)
Disk /dev/hda: 40.0 GB, 40020664320 bytes 255 heads, 63 sectors/track, 4865 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/hda1 * 1 688 5526328+ 7 HPFS/NTFS /dev/hda2 689 2295 12908227+ 7 HPFS/NTFS /dev/hda3 2296 4865 20643525 f W95 Ext'd (LBA) /dev/hda4 4592 4865 2200873+ b W95 FAT32 /dev/hda5 2296 2308 104359+ 83 Linux /dev/hda6 2309 4591 18338166 8e Linux LVM
TIA, Vinicius.
Hello,
My /etc/fstab is following: " /dev/VolGroup00/LogVol00 / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 devpts /dev/pts devpts gid=5,mode=620 0 0 tmpfs /dev/shm tmpfs defaults 0 0 proc /proc proc defaults 0 0 sysfs /sys sysfs defaults 0 0 /dev/VolGroup00/LogVol01 swap swap defaults 0 0 /dev/hda5 /mnt/fat auto auto,rw,uid=0,gid=501,showexec,quiet,fmask=117,dmask=007 0 0 /dev/hda1 /mnt/windows-sistema ntfs ro,umask=0222,gid=502 0 0 /dev/hda3 /mnt/windows-dados ntfs ro,umask=0222,gid=502 0 0 /dev/fd0 /media/floppy auto rw,noauto,user,sync 0 0 "
Please, help.
TIA, Vinicius.
Solved it.
The Win XP reorganized the partition table, so I had to change it.
Regards, Vinicius.