Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
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.
This may be an overly easy question, but I don't know the answer and can't find it on google.
I have a Dell Inspiron 1501 which is currently running the 2.6.18-gentoo-r6 kernel. The hard drive controller is an ATI SB600 Non-Raid-5 SATA. Boot menu.lst entry for that is:
Quote:
# For booting GNU/Linux
title=Gentoo Linux 2.6.18-gentoo-r6
root (hd0,2)
kernel /boot/kernel-2.6.18-gentoo-r6 root=/dev/sda6 pci=nomsi irqpoll
I am trying to upgrade to a 2.6.28-gentoo-r5 kernel:
Quote:
# For booting GNU/Linux
title=Gentoo Linux 2.6.28-gentoo-r5
root (hd0,2)
kernel /boot/kernel-2.6.28-gentoo-r5 root=/dev/sda6 pci=nomsi irqpoll
Using the same config I had from the 2.6.18 kernel, I recompiled the 2.6.28 kernel. However, it hangs on boot with this error:
Quote:
VFS: Unable to mount root fs via NFS, trying floppy.
Now, the megaraid driver that normally would have found /dev/sda (hard drive) did not find it. This is what it reports (2.6.28):
Quote:
megaraid: 2.20.5.1. (Release Date: Thu Nov 16 15:32:35.EST 2006)
megasas: 00.00.04.01 Thu July 24 11:41:51 PST 2008
Driver 'sd' needs updating - please use bus_type methods
Driver 'sr' needs updating - please use bus_type methods
And, it never reports the sda drive. This is what it reports from the 2.6.18 kernel:
Quote:
megaraid cmm: 2.20.2.7 (Release Date: Sun Jul 16 00:01:03 EST 2006)
megaraid: 2.20.4.9 (Release Date: Sun Jul 16 12:27:22 EST 2006)
megasas: 00.00.03.01 Sun May 14 22:49:52 PDT 2006
libata version 2.00 loaded.
ahci 0000:00:12.0: version 2.0
GSI 18 sharing vector 0xC1 and IRQ 18
ACPI: PCI Interrupt 0000:00:12.0[A] -> GSI 22 (level, low) -> IRQ 193
ahci 0000:00:12.0: AHCI 0001.0100 32 slots 4 ports 3 Gbps 0xf impl IDE mode
ahci 0000:00:12.0: flags: 64bit ncq ilck pm led clo pmp pio slum part
ata1: SATA max UDMA/133 cmd 0xFFFFC20000024100 ctl 0x0 bmdma 0x0 irq 193
ata2: SATA max UDMA/133 cmd 0xFFFFC20000024180 ctl 0x0 bmdma 0x0 irq 193
ata3: SATA max UDMA/133 cmd 0xFFFFC20000024200 ctl 0x0 bmdma 0x0 irq 193
ata4: SATA max UDMA/133 cmd 0xFFFFC20000024280 ctl 0x0 bmdma 0x0 irq 193
scsi0 : ahci
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata1.00: ATA-7, max UDMA/100, 117210240 sectors: LBA48 NCQ (depth 31/32)
ata1.00: ata1: dev 0 multi count 16
ata1.00: configured for UDMA/100
scsi1 : ahci
ata2: SATA link down (SStatus 0 SControl 300)
scsi2 : ahci
ata3: SATA link down (SStatus 0 SControl 300)
scsi3 : ahci
ata4: SATA link down (SStatus 0 SControl 300)
Vendor: ATA Model: FUJITSU MHV2060B Rev: 0085
Type: Direct-Access ANSI SCSI revision: 05
SCSI device sda: 117210240 512-byte hdwr sectors (60012 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: drive cache: write back
SCSI device sda: 117210240 512-byte hdwr sectors (60012 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: drive cache: write back
sda: sda1 sda2 sda3 sda4 < sda5 sda6 >
sd 0:0:0:0: Attached scsi disk sda
sd 0:0:0:0: Attached scsi generic sg0 type 0
Any ideas what I need to do to get the 2.6.28 kernel to boot?
in you kernel configuration make sure under file system, nfs, root= nfs is unchecked. not sure of exact names, but i do know it,s where you config the kernel for you file system menu and under the nfs submenu. had same problem
Last edited by colorpurple21859; 05-21-2009 at 12:31 PM.
Thanks for the reply, and I did remove boot from NFS (didn't need it anyway).
Unfortunately, that does get rid of it failing to boot from NFS, but it still fails to boot because it doesn't recognize the boot drive /dev/sda. So, now it kernel panics on: VFS: Unable to mount root fs on unknown-block(0,0). The problem looks like it's not recognizing the hard drive for some reason.
No, because the only thing that reports as hd<anything> from the boot messages is the cdrom drive. The hard drive is not recognized there.
BTW, if anyone has a problem with bootup and get's a kernel panic, you could enable root on NFS. That will cause the system to pause before panicing (waiting to see if you put in a boot floppy). This is useful because if it panics, you can't go back and look at the kernel messages that scrolled off the screen.
Using the same config I had from the 2.6.18 kernel
config files change between kernels. You must run
Code:
make oldconfig
in the new kernel after you copy the .config file to its new home.
There have been a lot of changes between 2.6.18 and 2.6.28, so saying no to all the changes will generate a kernel with most of the SATA support turned off.
Failure to use make oldconf will get you a kernel that is as mess, as the .config will not be legal for the new kernel.
Well, no change. It is still not recognizing the /dev/sda. And, /dev/hd is still only the cdrom.
Edit: actually, there is one change. The original error messages are different:
Still shows:
Driver 'sd' needs updating - please use bus_type methods
No longer show:
Driver 'sr' needs updating - please use bus_type methods
The section that you mention was taken from a dmesg using the 2.6.18 kernel. The 2.6.28 kernel boot does not have:
SCSI device sda: drive cache: write back
sda: sda1 sda2 sda3 sda4 < sda5 sda6 >
And, the filesystems are ext3, and that is built into the kernel.
I wasn't very clear on that and have modified the original post a little. Sorry about that.
Yes, that is correct. sda3 is my /boot partition. I have it dual booting with Windows also (unfortunately, I need both). Partition table:
1 = Dell Utility (don't know why I kept this)
2 = Windows
3 = /boot
4 = Extended
5 = swap
6 = /
Code:
title=Gentoo Linux 2.6.18-gentoo-r6
root (hd0,2)
kernel /boot/kernel-2.6.18-gentoo-r6 root=/dev/sda6 pci=nomsi irqpoll
is taken directly from my working kernel boot, which is why I used that as a template for the 2.6.28 entry. (which may not have been the perfect idea) The 2.6.28 boot is actually finding the kernel and starting the boot, but when it gets to mounting the root filesystem, it cannot find it and sda is not recognized.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.