Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Update: I have Wiki'd this: http://gentoo-wiki.com/HOWTO_Install...D_using_dmraid
it seems as though just about everyone has problems trying to get grub to play nicely with nvraid. I myself have had no success with it so far, but trust me: there will be great celebration once I do get this figured out.
Here's the setup:
Right now I have 2 Hitachi 160GB (HDS722516VLSA80) SATA drives in a RAID-0 (stripe). I set it up with the NVRAID BIOS. The first partition is NTFS for Windows. This partition is absolutely huge (basically it's the entire hard drive minus 50 GB). Partition 2 is a 32M /boot partition. Partition 3 is a 2G /swap partition, and the last partition is a reiserfs / partition.
I did a Stage 1/3 Gentoo install. I reached the point where I was to install GRUB and realized that I was in some trouble.
Grub will not install correctly on my hard drive. It detects the first partition (NTFS), but not any other partitions.
And if I attempt to install on the first partition...
Code:
grub> root (hd0,0)
Filesystem type unknown, partition type 0x7
grub> setup (hd0)
Error 17: Cannot mount selected partition
If that is my NTFS partition, I don't want to overwrite that. How do I go about getting grub to see the second partition? And when I get that, will this thing still boot up OK after it's first restart?
Thanks,
~Jaker
Last edited by jakertberry; 09-28-2005 at 10:17 PM.
I don't use grub on a raided drive/partition but offer the following advice? root (hd0,0) is telling grub that is where it is find the grub booting files....so it should be pointed to the boot partition (hd0,1)....see my signature for grub speak/count from zero
BUT I notice you have a bios error, thanks for posting it.....hdo,1 gives error 18......not good.
2) Can you amend your bios to LBA?
or can you flash it to most recent if LBA no good?
3) if and ONLY if you succeed with your bios....... grub should go into mbr and not into a partition so its
root (hd0,1)
setup (hd0)
Originally posted by aus9
2) Can you amend your bios to LBA?
or can you flash it to most recent if LBA no good?
I'm not sure I know what you mean by that. I do know for certain that my motherboard (MSI K7N2 Delta2 Platinum) does have the latest System BIOS on it (don't think you can flash the nvraid bios, but that should be up to date as well)...
error 18 from the grub error list states
selected cylinder exceeds max supported by bios....normally refers to the 8G limit of old bios.
I note you have flashed yours so I am a bit stumped however, error 18 also mentions at it is attempting to read a (linear block) address or register or value......its this I would like you to see if you can change.
I am on dial up.....so I will let you find your bios motherboard book.....my gigabyte mobo manual mentions at a glance.....LBA for extended interupt drive translations...hope that you can find a similar bit in mobo?
2) are you saying you have a separate bios for raid? I am a dinosaur heh heh
I recreated the array and redid my partition layout, putting a /boot partition first, followed by the NTFS parition, then a swap partition, then a reiserfs partition.
I started up grub and here's what happened:
Code:
grub> root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0,0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... no
Error 15: File not found
When I do a directory listing of /boot/grub, I do see a "stage1" file. Why doesn't grub see the files?
What I think is happening is altho grub is reporting hd0,0 is a ext2......that the raid is somehow changing the count.
Could you do me a favour and redo the command but just run thru the hd and then press the tab key to see if I am correct as per the trouble shooter?
2) if the count is not the issue we may be able to use grub-install with a force option or a setup with a force option......subject to your approval of course, you can see examples in the grub manual which is linked in my signature
Update: Grub will load Windows and Linux. Windows loads fine, but Linux has some problems...
Code:
md: autorun...
md: autio run DONE.
VFS: Cannot open root device "mapper/nvidia_abiccada4" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Time to check back into the kernel config and see what's (not?) there...
I did some research and found that I had some possible stuff missing, but it still hasn't fixed my system from not booting yet. Here's what I have done so far..
Under SCI low-level drivers, I have added:
Code:
[*]Serial ATA (SATA) Support
<*> NVIDIA SATA Support
Nothing else in that page is selected.
Under Multi-device support (RAID and LVM), I have added:
Code:
[*] Multiple devices driver support (RAID and LVM)
<*> RAID Support
<*> RAID-0 (striping) mode
<*> Device mapper support
<*> Crypt target support
<*> Snapshot target (EXPERIMENTAL)
<*> Mirror target (EXPERIMENTAL)
<*> Zero target (EXPERIMENTAL)
<*> Multipath target (EXPERIMENTAL)
<*> EMC CX/AX multipath support (EXPERIMENTAL)
<*> Bad block Relocation Device Target (EXPERIMENTAL)
Code:
grep SATA /usr/src/linux/.config
# CONFIG_BLK_DEV_IDE_SATA is not set
CONFIG_SCSI_SATA=y
# CONFIG_SCSI_SATA_AHCI is not set
# CONFIG_SCSI_SATA_SVW is not set
CONFIG_SCSI_SATA_NV=y
# CONFIG_SCSI_SATA_PROMISE is not set
# CONFIG_SCSI_SATA_QSTOR is not set
# CONFIG_SCSI_SATA_SX4 is not set
# CONFIG_SCSI_SATA_SIL is not set
# CONFIG_SCSI_SATA_SIS is not set
# CONFIG_SCSI_SATA_ULI is not set
# CONFIG_SCSI_SATA_VIA is not set
# CONFIG_SCSI_SATA_VITESSE is not set
Code:
cat /boot/grub/grub.conf
timeout 15
default 0
fallback 1
splashimage=(hd0,0)/grub/gentoo.xpm.gz
title Gentoo Linux 2.6.12-r10
root (hd0,0)
kernel (hd0,0)/vmlinuz-2.6.12-gentoo-r10 ro root=/dev/mapper/nvidia_abiccada4 dodmraid video=vesafb:ywrap,pmipal,1280x1024-16@60
splash=verbose,theme:emergence
initrd (hd0,0)/fbsplash-emergence-1280x1024
title Windows XP Professional
rootnoverify (hd0,1)
makeactive
chainloader +1
The kernel was created manually, version 2.6.12 (basically what emerge gentoo-sources pulled).
The root partition has the reiserfs filesystem (3.6) and support for it is compiled into the kernel.
I'm pretty much stumped now. The only way I can get back in to rebuild the kernel is pop in my Gentoo cd and start it with the "gentoo dodmraid" parameter.
and
kernel (hd0,0)/vmlinuz-2.6.12-gentoo-r10 ro root=/dev/mapper/nvidia_abiccada4
if they are meant to be diff ok otherwise does that explain your error???
VFS: Cannot open root device "mapper/nvidia_abiccada4" or unknown-block(0,0)
Please append a correct "root=" boot option
I updated the kernel line in my grub.conf so it doesn't include the (hd0,0) line anymore, but it still errors out.
My boot partition is /dev/mapper/nvidia_abiccada1
My root partition is /dev/mapper/nvidia_abiccada4
The setup was different at the beginning of this post, but I have since backed up everything and repartitioned my raid so it had the /boot as the first partition, followed by my NTFS partition, followed by my /swap, then my root partition.
Now I think the problem is for some reason the kernel isn't detecting the raid.
Code:
md: autorun...
md: auto run DONE.
VFS: Cannot open root device "mapper/nvidia_abiccada4" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.