Is there a way to have grub translate its own naming to naming scheme under Linux
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Is there a way to have grub translate its own naming to naming scheme under Linux
My Problem: I was fooling around with grub lately and tried to boot Linux from an onboard raid. Searching for a kernel with find /boot/vmlinuz gave me (hd0,7). Nice so far but when I translated it to /dev/hda7 to use as the root parameter it stopped with a kernel panic. Could not find root partition. Clear to me cause the root partition is on /dev/ataraid/d0p8.
Now my question: Is there a way that grub can tell me the true device mapping under linux? Or tell me that we are using a raid system?
grub counts from zero so hd0,7 = partition 8 and then if that is all you did you have to know if you have an ide or scsi or sata to translate to hd or sd.
2) but you could have set root to your / partition and used find /etc/fstab to get the info as per my troubleshooter
3) no bootloader that I know of ....gives verbose message that you are on a raid or non-raid system
4) ideally raid is a trick so the bootloader should not notice in any case.....raid is either used for speed so striping...or redundancy so mirrored...and is for business or mission critical stuff....if you have a normal desktop a cd/dvd burner will suffice so you could just look at raid stripes for speed?
the find advice is very useful to see if one has hd or sd. But I'm not getting it what you mean with point four.
Just for completnes. I have to put a line like
kernel /boot/vmlinuz root=/dev/ataraid/d0p8
to start my system. If i use /dev/hda8 the kernel can't mount the root partition.
Just one more stupid question. Is it possible to have grub print out a file? Would be nice to have the /etc/fstab file to be printed on the screen. Don't think so but it would be a nice feature.
Would be nice to have a feature that would print out at least /etc/fstab. With that one could start up a broken system without any prior knowlegde of geometry and no need for a live cd.
I think it should not be that hard to include into grub 2.*. Grub as far as i know can reread a configfile. And from there it should not be hard to print on the screen.
I think I drop a line to the developers and see what they say.
Thanks for pointing that out to me. GRub is the best. You can just carry a grub bootdisk and get nearly every system up and running without knowing anything about its hd geometry, by just catting its /etc/fstab file.
I think I will browse your two links a bit more to realy get the hang of grub. I need to check on that bootchain thing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.