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.
I have just installed Debian and tried to upgrade the kernel (from 2.2.20 to 2.6.4).
I've changed so that the .config file looks correct and compiled it.
Installed the kernel and the modules.
Then I ran lilo (lilo.conf looks now like this):
Code:
# Support LBA for large hard disks.
lba32
# Specifies the boot device. This is where Lilo installs its boot
# block. It can be either a partition, or the raw device, in which
# case it installs in the MBR, and will overwrite the current MBR.
boot=/dev/hda
# Specifies the device that should be mounted as root. (`/')
root=/dev/hda1
install=/boot/boot-menu.b
map=/boot/map
delay=50
prompt
timeout=50
vga=6
# Boot up Linux by default.
default=Linux
image=/vmlinuz
label=Linux
read-only
# restricted
# alias=1
image=/vmlinuz.old
label=LinuxOLD
read-only
optional
# restricted
# alias=2
other=/dev/hdc1
label="Windows(hdc1)"
other=/dev/hdc5
label="Windows(hdc5)"
Then I rebooted.
and gets the following errors in the bootup screen:
VFS: Cannot open root device "301" or unknown-block(3.1)
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on unknown-block(3.1)
Unfortunately I don't have the answer to your problem as I too am having trouble after installing 2.6.4 Kernel.
Can you tell me what commands you used while installing it?
Here's my thread: http://www.linuxquestions.org/questi...hreadid=163109
If you are using initrd check that you have this in the kernel :
Your HDD drivers built in. If you need scsi, build it in, IDE, build that, etc
You Root partition type is at least a module.
You have cramfs and initrd support built into the kernel
if you are not using initrd :
You HDD drivers are built in.
Your root partition type is built in.
Looking at your lilo.conf, you aren't using initrd, so if that is wrong, that needs to be fixed.
Thanks for all the help...=)
Now I've recompiled my kernel including the /dev and viritual file system (as chodviolin said) and still got the same problem.=(
The lilo.conf is the same.
In my computer i got 2 harddrives.
One 40 gig and one 80 gig.
On the primary IDE chain (0) I got the hard drive and thats the one I've installed Linux on.
fdisk -l gives the following:
Code:
ws:~# fdisk -l
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 973 7815591 83 Linux
/dev/hda2 974 1216 1951897+ 82 Linux swap
Disk /dev/hdc: 40.9 GB, 40992473088 bytes
255 heads, 63 sectors/track, 4983 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 * 1 391 3140676 b W95 FAT32
/dev/hdc2 392 4983 36885240 f W95 Ext'd (LBA)
/dev/hdc5 392 4471 32772568+ b W95 FAT32
So the boot partition (as described above) is and should be /dev/hda
and the root should be /dev/hda1
And thats what I have in my lilo.conf.
Still got the same problem=)
Does someone have any idea?
Regardz,
--- Rincewind
When I had the same problem, and ended up doing exactly the same checks you have done so far, I learned that the root filesystem type must be compiled into the kernel and not used as a module. Therefore, if your root filesystems is ext2, and it probably is, you must compile ext2 directly into the kernel.
I found this little tidbit somewhere in the documentation that came along with the kernel source. I'm sorry, but I don't remember what document it was.
What i did was a make mrproper
then I did a make menuconfig
and put EVERYTHING that was related to IDE and EXT file system loaded into the kernel and not as modules (I had the EXT2 and EXT3 loaded into the kernel before). I also ruled out everything that had to do with ACPI (even though my Asus A2P motherboard has ACPI)...
then I did a make
and after 2h of kompiling (for about the 10:th time in order). make modules_install
then I did a cp arch/i386/boot/bzImage /boot/vmlinuz-2.6
then lilo
and rebooted
and then I got it to work..=)
Now it boots upp nicely...
Phew... this was a hard one=)..
Thanks everybody for the help..
Hopes this helps somebody else.
Hello friends,
(to persons who are using 2.6.4 or 2.6.3, and persons who achieved in compiling 2.6.4 or 2.6.3)
I try to compile 2.6.4 and I want to learn which versions of the following tools You use while You compile 2.6.4.
Please type the following lines to the command line and send me the results.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.