Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't boot with grub ext4 block device is not a valid device
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
jvmnck
n00b
n00b


Joined: 21 Apr 2012
Posts: 7

PostPosted: Sat Apr 21, 2012 12:27 pm    Post subject: Can't boot with grub ext4 block device is not a valid device Reply with quote

Hi, I am in some trouble. After I gave up on Fedora15, I decided to install gentoo. I followed the installation guide x86 (I have a quite old machine AMD athlon Xp 1600+ 768 mb ram +nvidia geforce fx 5200+hdd ide 80gb), after I installed/configured grub, I reboot and get this:

[IMG]http://img52.imageshack.us/img52/2198/bootshoot.jpg[/IMG]

I don't know what to do ... it seems a problem with the ext4 and the kernel config but not sure. :cry: :cry: :cry: :cry:
Additional info:
Code:

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x27262726

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1              63    42635564    21317751    7  HPFS/NTFS/exFAT
/dev/sda2        44048384    48242687     2097152    b  W95 FAT32
/dev/sda3   *    48242688    48766975      262144   83  Linux
/dev/sda4        48766976   156301487    53767256    5  Extended
/dev/sda5        48775168    50872319     1048576   82  Linux swap / Solaris
/dev/sda6        50880512    55074815     2097152   83  Linux
/dev/sda7        55083008   107511807    26214400   83  Linux
/dev/sda8       107520000   145268735    18874368   83  Linux
/dev/sda9       145276928   155762687     5242880   83  Linux

Code:

# /etc/fstab

/dev/sda3      /boot      ext3      noauto,noatime      1 2
/dev/sda8      /      ext4      defaults      1 1
/dev/sda7      /home      ext4      defaults      1 2
/dev/sda6      /tmp      ext4      barrier=0,noatime   0 2
/dev/sda5      none      swap      sw         0 0
proc         /proc      proc      defaults      0 0
shm         /dev/shm   tmpfs      nodev,nosuid,noexec   0 0

Code:

#/boot/grub/grub.conf

default 0
timeout 30
splashimage=(hd0,2)/boot/grub/splash.xpm.gz

title JVM Gentoo Linux 3.2.12
   root (hd0,2)
   kernel /boot/kernel-3.2.12-gentoo root=/dev/sda8 rootfstype=ext4
   initrd /boot/initramfs-genkernel-x86-3.2.12-gentoo

title JVM WXP
   rootnoverify (hd0,0)
   chainloader +1

Code:

#installed modules
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/arch/x86/kernel/test_nx.ko
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/net/wireless/cfg80211.ko
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/net/netfilter/xt_mark.ko
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/net/mac80211/mac80211.ko
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/crypto/arc4.ko
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/drivers/scsi/scsi_wait_scan.ko
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/drivers/hid/hid-logitech-dj.ko
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/drivers/net/wireless/rtl818x/rtl8187/rtl8187.ko
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/drivers/misc/eeprom/eeprom_93cx6.ko
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/drivers/char/kcopy/kcopy.ko
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/fs/fuse/fuse.ko
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/sound/ac97_bus.ko
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/sound/pci/ac97/snd-ac97-codec.ko
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/sound/pci/ice1712/snd-ice1712.ko
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/sound/pci/ice1712/snd-ice17xx-ak4xxx.ko
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/sound/drivers/mpu401/snd-mpu401-uart.ko
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/sound/core/snd-pcm.ko
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/sound/core/oss/snd-pcm-oss.ko
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/sound/core/oss/snd-mixer-oss.ko
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/sound/core/snd-rawmidi.ko
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/sound/core/snd-hrtimer.ko
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/sound/core/snd-timer.ko
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/sound/core/seq/oss/snd-seq-oss.ko
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/sound/core/seq/snd-seq-midi.ko
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/sound/core/seq/snd-seq.ko
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/sound/core/seq/snd-seq-device.ko
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/sound/core/seq/snd-seq-midi-event.ko
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/sound/core/seq/snd-seq-dummy.ko
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/sound/core/snd-page-alloc.ko
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/sound/i2c/snd-cs8427.ko
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/sound/i2c/other/snd-ak4xxx-adda.ko
/mnt/gentoo/lib/modules/3.2.12-gentoo/kernel/sound/i2c/snd-i2c.ko

Code:

#lspci -v
00:00.0 Host bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133] (rev 81)
   Flags: bus master, medium devsel, latency 0
   Memory at 90000000 (32-bit, prefetchable) [size=64M]
   Capabilities: [a0] AGP version 2.0
   Capabilities: [c0] Power Management version 2

00:01.0 PCI bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133 AGP] (prog-if 00 [Normal decode])
   Flags: bus master, 66MHz, medium devsel, latency 0
   Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
   Memory behind bridge: 80000000-80ffffff
   Prefetchable memory behind bridge: 88000000-8fffffff
   Capabilities: [80] Power Management version 2

00:03.0 Multimedia audio controller: VIA Technologies Inc. VT1720/24 [Envy24PT/HT] PCI Multi-Channel Audio Controller (rev 01)
   Subsystem: VIA Technologies Inc. Device 2403
   Flags: bus master, medium devsel, latency 64, IRQ 16
   I/O ports at 1440 [size=32]
   I/O ports at 1480 [size=128]
   Capabilities: [80] Power Management version 1
   Kernel driver in use: snd_ice1724
   Kernel modules: snd-ice1724

00:04.0 USB controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 61) (prog-if 00 [UHCI])
   Subsystem: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller
   Flags: bus master, medium devsel, latency 66, IRQ 18
   I/O ports at 1400 [size=32]
   Capabilities: [80] Power Management version 2
   Kernel driver in use: uhci_hcd
   Kernel modules: uhci-hcd

00:04.1 USB controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 61) (prog-if 00 [UHCI])
   Subsystem: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller
   Flags: bus master, medium devsel, latency 66, IRQ 19
   I/O ports at 1420 [size=32]
   Capabilities: [80] Power Management version 2
   Kernel driver in use: uhci_hcd
   Kernel modules: uhci-hcd

00:04.2 USB controller: VIA Technologies, Inc. USB 2.0 (rev 63) (prog-if 20 [EHCI])
   Subsystem: VIA Technologies, Inc. USB 2.0
   Flags: bus master, medium devsel, latency 66, IRQ 16
   Memory at a0000000 (32-bit, non-prefetchable) [size=256]
   Capabilities: [80] Power Management version 2
   Kernel driver in use: ehci_hcd
   Kernel modules: ehci-hcd

00:05.0 Ethernet controller: Accton Technology Corporation SMC2-1211TX (rev 10)
   Subsystem: Accton Technology Corporation EN-1207D Fast Ethernet Adapter
   Flags: bus master, medium devsel, latency 66, IRQ 17
   I/O ports at 1000 [size=256]
   Memory at 81000000 (32-bit, non-prefetchable) [size=256]
   [virtual] Expansion ROM at 30000000 [disabled] [size=128K]
   Capabilities: [50] Power Management version 2
   Kernel driver in use: 8139too
   Kernel modules: 8139too

00:14.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 40)
   Subsystem: VIA Technologies, Inc. VT82C686/A PCI to ISA Bridge
   Flags: bus master, stepping, medium devsel, latency 0
   Capabilities: [c0] Power Management version 2

00:14.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06) (prog-if 8a [Master SecP PriP])
   Subsystem: VIA Technologies, Inc. VT82C586/B/VT82C686/A/B/VT8233/A/C/VT8235 PIPC Bus Master IDE
   Flags: bus master, medium devsel, latency 64
   [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
   [virtual] Memory at 000003f0 (type 3, non-prefetchable) [size=1]
   [virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
   [virtual] Memory at 00000370 (type 3, non-prefetchable) [size=1]
   I/O ports at 1880 [size=16]
   Capabilities: [c0] Power Management version 2
   Kernel driver in use: pata_via
   Kernel modules: pata_via

00:14.2 USB controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 1a) (prog-if 00 [UHCI])
   Subsystem: First International Computer, Inc. VA-502 Mainboard
   Flags: bus master, medium devsel, latency 66, IRQ 11
   I/O ports at 1840 [size=32]
   Capabilities: [80] Power Management version 2
   Kernel driver in use: uhci_hcd
   Kernel modules: uhci-hcd

00:14.3 USB controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 1a) (prog-if 00 [UHCI])
   Subsystem: First International Computer, Inc. VA-502 Mainboard
   Flags: bus master, medium devsel, latency 66, IRQ 11
   I/O ports at 1860 [size=32]
   Capabilities: [80] Power Management version 2
   Kernel driver in use: uhci_hcd
   Kernel modules: uhci-hcd

00:14.4 Bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 40)
   Subsystem: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI]
   Flags: medium devsel, IRQ 9
   Capabilities: [68] Power Management version 2

01:00.0 VGA compatible controller: NVIDIA Corporation NV34 [GeForce FX 5200] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: Micro-Star International Co., Ltd. MS-8917 (FX5200-T128)
   Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 3
   Memory at 80000000 (32-bit, non-prefetchable) [size=16M]
   Memory at 88000000 (32-bit, prefetchable) [size=128M]
   Expansion ROM at <unassigned> [disabled]
   Capabilities: [60] Power Management version 2
   Capabilities: [44] AGP version 3.0


Any help would be appreciated. :wink:
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Sat Apr 21, 2012 1:47 pm    Post subject: Reply with quote

Hi, jvmnck. Welcome to Gentoo!

This problem typically indicates that support for the type of the root filesystem was not built in to the kernel. The error also indicates that you most likely configured your own kernel instead of taking the genkernel route, right?

In any case, this is easily correctable:
  • Boot the install media, whatever that was.
  • Re-mount all of the partitions and re-enter the chrooted environment. If you need help, see NeddySeagoons' Rough Guide to Chrooting. Just to be sure, run "mount" and confirm that the /dev/sda8 partition is indeed ext4. If not, report back here.
  • Change to the kernel source directory and rerun "make menuconfig", just as decribed in the Handbook.
  • Add the driver for your filesystem (ext4). You'll find it at
    Code:
      -> File systems
        -> The Extended 4 (ext4) filesystem
    Make sure to make it built-in <*> as opposed to built as a module <M>.
  • Per the Handbook, rebuild the kernel and copy the kernel image to /boot.
  • Per the Handbook, exit the chroot, unmount all filesystems, and reboot.
That should do it. Report back if you have any issues. :)

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3922
Location: Hamburg

PostPosted: Sat Apr 21, 2012 2:20 pm    Post subject: Reply with quote

Hhm, of course, the file system driver needs to be compiled into the kernel or should be available via an initrd early enough - but :
From the screen shot it seems, that grub looks for /boot at /dev/sda8, but /boot (=="root" in grubs naming schema) is /dev/sda3. Therefore setup grup again, eg.
Code:
setup (hd0)
root(hd0,2)
or something similar.

Last edited by toralf on Sat Apr 21, 2012 2:23 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54216
Location: 56N 3W

PostPosted: Sat Apr 21, 2012 2:23 pm    Post subject: Reply with quote

jvmnck,

Welcome to Gentoo.

In your image, the line that says
Code:
Could not find root block device in .
Should contain a list of all of the block devices the kernel can see. In your case, none.
From your very brief (for a Genkernel kerenl) list of modules, I suspect you have used genkernel then turned off all the things you thought you didn't need.

Your kernel needs the following
Code:
[*]   PC BIOS (MSDOS partition tables)
support
That allows the kernel to read your partition tables.
Code:
< > ATA/ATAPI/MFM/RLL support (DEPRECATED)  --->
must be off. Here be dragons.
Code:
<*> SCSI disk support
<*> SCSI CDROM support
<*> SCSI generic support
[*] Probe all LUNs on each SCSI device
You only actually need SCSI disk support to boot but you will wamt the other items later.

Your hard drive interface
Code:
00:14.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
uses the PATA drivers under the
Code:
<*> Serial ATA and Parallel ATA drivers  --->
choose
Code:
[*]   ATA SFF support
[*]     ATA BMDMA support
<*>       VIA PATA support


For ext4 you need
Code:
<*> The Extended 4 (ext4) filesystem   


That should get you started.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
jvmnck
n00b
n00b


Joined: 21 Apr 2012
Posts: 7

PostPosted: Sat Apr 21, 2012 6:01 pm    Post subject: Reply with quote

Well first thanks to everybody, John R. Graham, toralf and NeddySeagoon.

"The error also indicates that you most likely configured your own kernel instead of taking the genkernel route, right? "
:oops: :oops:

Code:
[*]   PC BIOS (MSDOS partition tables) it was already

Code:
< > ATA/ATAPI/MFM/RLL support (DEPRECATED)  --->   ____it was already

Code:
<*> SCSI disk support    ____it was already
<*> SCSI CDROM support   ____it was already
<*> SCSI generic support   ____it was already
[*] Probe all LUNs on each SCSI device  ____it wasn't

Code:

[*]   ATA SFF support  ____it was already
[*]     ATA BMDMA support  ____it was already
<*>       VIA PATA support  ____it wasn't

Code:
<*> The Extended 4 (ext4) filesystem  ____it was already


After I added the two missing (and removing many like selinux, hybernate and many drivers sata ethernet, processor multi core), and rebuilding, I restart. And ...
Yes, it boot!!!! :D :D :D thanks NeddySeagoon

I still have many minor issues like: no iwconfig, no framebuffer, wrong keymaps (the boot sequence throws 2 errors !! one is the keymaps and the other I can't read it because the output goes to fast). Anyway that's another thread, so again thanks :D :D :D
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54216
Location: 56N 3W

PostPosted: Sat Apr 21, 2012 6:33 pm    Post subject: Reply with quote

jvmnck,

Code:
<*>       VIA PATA support  ____it wasn't

Was the killer.

All those other things you have missing are because you have not installed them.

Gentoo gives you two things:-
The packasges you ask for and the packages you must have to support the packages you ask for.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
gliverman
n00b
n00b


Joined: 24 Dec 2006
Posts: 51
Location: Carrollton, GA

PostPosted: Fri Jan 04, 2013 4:35 am    Post subject: Reply with quote

NeddySeagoon wrote:
jvmnck,

Code:
<*> SCSI disk support
<*> SCSI generic support
[*] Probe all LUNs on each SCSI device



This helped me out quite a bit with a Dell Latitude C400 I am working on, thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum