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.
Distribution: Fedora 12, Arch Linux (updated daily =D)
Posts: 270
Rep:
GRUB menu.lst specify root device fs type
Hello! I am using Arch Linux (love it, sheer opposite of ubuntu) and installed and configured everything today. I built a kernel from vanilla source and installed it in accordance to instructions I found on the Arch Linux wiki. When I went to put it into grub by vim'ing menu.lst, I first just did what the fallback Arch Linux entry did with a different kernel and initcpio image. Well, I booted, and withing a few seconds, the kernel panicked. I examined the menu.lst again, and found that in the normal Arch Linux entry, the initcpio is not specified. I removed the initrd section, and I got about 1/2 second further! Woo! Well, problem HERE was that it couldn't mount my specified root drive. So, I went back and built and reinstalled kernel with support for ext4 (not boot, but worth a shot anyway) and it didn't work. So then, I changed the way I specified the root volume from
Code:
root=/dev/disk/by-uuid/{lots of annoying 0x numbers} ro
to
Code:
root=/dev/sda1 ro
Well, here I am, and I booted. Next thing I know, it still can't mount. Why? It claims not to know what filesystem type it is. It said it tried ext3, vfat, msdos, blah, blah, but my /boot is (I'm 99% sure) ext2, and it did not try to load sda1 as ext2.
So, if you got through all that junk I just told you, I need to know how to specify in menu.lst (or other file :3) that my root partition for booting here is a ext2 volume.
Ah, yes, and I'm a grub noob, and a bit new to the whole kernel thing. So go easy on me without watering things down too much. I got through the arch install after all!
Do you have an initrd? If you do make sure you put that after the kernel line.
Quote:
title Arch
root (hd0,0)
kernel /boot/vmlinuz root=/dev/sda1 ro
initrd /boot/initrd.img
Here, replace vmlinuz with your kernel and initrd.img with your initrd. Hopefully this should work. Btw, your root partition is /dev/sda1 right? If not, you need to put your root partition there and change the first line,ie. root (hd0,0) accordingly.
Distribution: Fedora 12, Arch Linux (updated daily =D)
Posts: 270
Original Poster
Rep:
@ sHY: That looks like what I have. I tried the initcpio (arch doesn't use initrd or something here - kernel build instructions said initcpio, and it doesn't want to mkinitrd) , it gave me problems for some reason. I don't use one in my normal boot anyhow.
@syg00: I guess I just assumed the kernel had that already - I bothered to look, and -- holy cats, first thing in the filesystem menu, totally unselected. (I've been messing things up today. Did a bit of C++ code and I made some REALLY dumb mistakes...) I selected ext2 everything, non-modularized. I'll install tomorrow and then let you know how it went.
Thanks for your help thus far! I'm watching the "CC"s scroll down my xterm for kernel compilation as I speak.
Distribution: Fedora 12, Arch Linux (updated daily =D)
Posts: 270
Original Poster
Rep:
Okay... So I installed the kernel with ext2 support, and tried booting. Panic! So, I tried again with a initrd specified as the one I made with cpio. Now I get this:
Code:
kinit: Mounted root (ext2 filesystem) readonly
kinit: init not found!
And thereupon the kernel stops syncing and tries to kill init and panics. I don't have a init in /bin, so I tried copying it from /sbin -- no luck
Any help from here?
Last edited by chickenlinux; 12-22-2009 at 08:40 AM.
Reason: info
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.