Results 1 to 5 of 5
|
Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
-
06-28-2005 #1
- Join Date
- May 2005
- Posts
- 15
Grub troubles. Moving linux from hda to hdb
I'm using Debian Sarge RC and Grub. I edit the grub and fstab to load hdb instead of hda but when I boot grub gives me this error.Code:root (hd1,0) Filesystem type unknown, partition type 0x7 kernel /boot/vmlinuz-2.6.8-2-k7 root=/dev/hdb1 ro Error 17:cannot mount selected partition press any key....
(note, I've also since upgraded to kernel 2.6.11-1-k7 but haven't tried with that as I assume it's not the problem)
to change the drive from hda to hdb I used the grub module for webmin to duplicate and edit the entry and editid my fstab file to change hda to hdb.
extract from /boot/grub/menu.lstCode:title Debian GNU/Linux, kernel 2.6.8-2-k7 root (hd0,0) kernel /boot/vmlinuz-2.6.8-2-k7 root=/dev/hda1 ro initrd /boot/initrd.img-2.6.8-2-k7 savedefault boot title Debian GNU/Linux, kernel 2.6.8-2-k7 (HDB) root (hd1,0) kernel /boot/vmlinuz-2.6.8-2-k7 root=/dev/hdb1 ro initrd /boot/initrd.img-2.6.8-2-k7
extract from /etc/fstabCode:/dev/hda1 / reiserfs notail 0 1 /dev/hda6 /home reiserfs defaults 0 2 /dev/hda5 none swap sw 0 0
Anyone know what's going wrong here? Thanks.
-
06-28-2005 #2
- Join Date
- Apr 2005
- Location
- Buenos Aires, Argentina
- Posts
- 908
I'd try this command:
grub-install /dev/hdbserzsite.com.ar
"All the drugs in this world won\'t save you from yourself"
-
06-28-2005 #3
- Join Date
- May 2004
- Location
- forums.gentoo.org
- Posts
- 1,817
Maybe I should do some research here, but who's got time? Is the following theory possible?
"hda", "hdb", etc are determined by how the drives are "hardwired" to the motherboard, that is hdb is the slave drive on the primary IDE channel.
Grub sees (hd0) as the drive from which it booted -not where the configuration files, etc are, but rather the drive which has an MBR with Grub installed.
Is it possible that by choosing to boot the primary slave, Grub sees it as (hd0), while once the kernel is loaded, Linux sees it as hdb?
When you boot, get the Grub command line, enter 'root (hd0,1)' and then 'kernel / <tab>' and see if that doesn't display the root directory listing. If so, try 'root (hd0,0)' and then make the "root=/dev/hdb1" and make fstab look for hdb.
Just a theory.../IMHO
//got nothin'
///this use to look better
-
06-28-2005 #4
- Join Date
- Jul 2004
- Location
- Scotland
- Posts
- 144
Re: Grub troubles. Moving linux from hda to hdb
Originally Posted by Zarneth
-
06-29-2005 #5
- Join Date
- May 2005
- Posts
- 15
Sounds to me as if you haven't got reiserfs support in grub...
Thanks for the sugestions. However I found another supprisingly simple solution.
I didn't think it was possible but adding the following code to the windows entry in grub fools windows into thinking it's running off hda even thoguh it's still the slave drive/hdb
map (hd0) (hd1)
map (hd1) (hd0)