Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gentoo-dev-sources 2.6.9-r9 vs. r1: root volume not valid?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
pflugshaupt
n00b
n00b


Joined: 14 Dec 2004
Posts: 13
Location: Zurich, Switzerland

PostPosted: Tue Dec 14, 2004 1:11 pm    Post subject: gentoo-dev-sources 2.6.9-r9 vs. r1: root volume not valid? Reply with quote

Hello,

I'm having a problem with the current gentoo-dev-sources (2.6.9-r9). Some days ago, I compiled 2.6.9-r1 from the sources on the LiveCD, using
Code:
genkernel --udev all
This kernel works still. My /etc/fstab is:
Code:
/dev/hda1               /boot           ext2            noatime         1 2
/dev/hda3               /               reiserfs        noatime                 0 1
/dev/hda2               none            swap            sw                      0 0
/dev/cdroms/cdrom0      /mnt/cdrom      auto            user,noauto,ro          0 0
/dev/fd0                /mnt/floppy     auto            user,noauto                     0 0
# NOTE: The next line is critical for boot!
none                    /proc           proc            defaults                0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:
none                    /dev/shm        tmpfs           nodev,nosuid,noexec     0 0

Now, I wanted to add IPTables to my kernel and upgrade to the newest code. I emerged 2.6.9-r9 and compiled with
Code:
genkernel --menuconfig --udev all
In menuconfig, I activated the options for IPTables as well as some other things. I did not deactivate anything except the wireless networking and speakup console (config diff below).

I generated a second entry in my grub.conf by copying and adapting the first one:
Code:
# For booting GNU/Linux
title=Gentoo Linux 2.6.9-r1
root (hd0,0)
kernel /kernel-2.6.9-gentoo-r1 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3 video=vesafb:ywrap,mtrr,1024x768-16
initrd /initrd-2.6.9-gentoo-r1

# For booting GNU/Linux
title=Gentoo Linux 2.6.9-r9 (mit iptables)
root (hd0,0)
kernel /kernel-2.6.9-gentoo-r9 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3 video=vesafb:ywrap,mtrr,1024x768-16
initrd /initrd-2.6.9-gentoo-r9

Now, I can still boot from the first kernel, but the second one stops with this error:
Code:
>> Determining root device
>> Block device /dev/hda3 is not a valid root device
>> The root block device is unspecified or not detected.
Please specify a device to boot, or "shell" for a shell....

Has anybody a clue what could be the problem?

My thoughts: Obviously, the partition is OK, since I can still boot from it with the old kernel. Same for the grub.conf entry. Have there been any relevant changes from 2.6.9-r1 to 2.6.9-r9? I could not see anything in the changelog.

I'm including a diff between the two kernel configs as genkernel created them. I can supply further info if necessary.

Cheers & thanks for any hint

Kaspar
Code:
a438832@linus kernels $ diff kernel-config-x86-2.6.9-gentoo-r1  kernel-config-x86-2.6.9-gentoo-r9
3,4c3,4
< # Linux kernel version: 2.6.9-gentoo-r1
< # Tue Dec  7 18:01:09 2004
---
> # Linux kernel version: 2.6.9-gentoo-r9
> # Mon Dec 13 18:57:55 2004
552c552,553
< # CONFIG_IEEE1394_EXTRA_CONFIG_ROMS is not set
---
> CONFIG_IEEE1394_EXTRA_CONFIG_ROMS=y
> CONFIG_IEEE1394_CONFIG_ROM_IP1394=y
569c570
< # CONFIG_IEEE1394_ETH1394 is not set
---
> CONFIG_IEEE1394_ETH1394=m
589c590
< # CONFIG_PACKET_MMAP is not set
---
> CONFIG_PACKET_MMAP=y
605a607,611
>
> #
> # IP: Virtual Server Configuration
> #
> # CONFIG_IP_VS is not set
607c613,671
< # CONFIG_NETFILTER is not set
---
> CONFIG_NETFILTER=y
> CONFIG_NETFILTER_DEBUG=y
>
> #
> # IP: Netfilter Configuration
> #
> CONFIG_IP_NF_CONNTRACK=m
> CONFIG_IP_NF_CT_ACCT=y
> # CONFIG_IP_NF_CT_PROTO_SCTP is not set
> CONFIG_IP_NF_FTP=m
> CONFIG_IP_NF_IRC=m
> CONFIG_IP_NF_TFTP=m
> CONFIG_IP_NF_AMANDA=m
> # CONFIG_IP_NF_QUEUE is not set
> CONFIG_IP_NF_IPTABLES=m
> CONFIG_IP_NF_MATCH_LIMIT=m
> CONFIG_IP_NF_MATCH_IPRANGE=m
> CONFIG_IP_NF_MATCH_MAC=m
> CONFIG_IP_NF_MATCH_PKTTYPE=m
> CONFIG_IP_NF_MATCH_MARK=m
> CONFIG_IP_NF_MATCH_MULTIPORT=m
> CONFIG_IP_NF_MATCH_TOS=m
> CONFIG_IP_NF_MATCH_RECENT=m
> CONFIG_IP_NF_MATCH_ECN=m
> CONFIG_IP_NF_MATCH_DSCP=m
> CONFIG_IP_NF_MATCH_AH_ESP=m
> CONFIG_IP_NF_MATCH_LENGTH=m
> CONFIG_IP_NF_MATCH_TTL=m
> CONFIG_IP_NF_MATCH_TCPMSS=m
> CONFIG_IP_NF_MATCH_HELPER=m
> CONFIG_IP_NF_MATCH_STATE=m
> CONFIG_IP_NF_MATCH_CONNTRACK=m
> CONFIG_IP_NF_MATCH_OWNER=m
> CONFIG_IP_NF_MATCH_ADDRTYPE=m
> CONFIG_IP_NF_MATCH_REALM=m
> CONFIG_IP_NF_MATCH_SCTP=m
> CONFIG_IP_NF_MATCH_COMMENT=m
> CONFIG_IP_NF_FILTER=m
> CONFIG_IP_NF_TARGET_REJECT=m
> CONFIG_IP_NF_TARGET_LOG=m
> CONFIG_IP_NF_TARGET_ULOG=m
> CONFIG_IP_NF_TARGET_TCPMSS=m
> CONFIG_IP_NF_NAT=m
> CONFIG_IP_NF_NAT_NEEDED=y
> # CONFIG_IP_NF_TARGET_MASQUERADE is not set
> CONFIG_IP_NF_TARGET_REDIRECT=m
> # CONFIG_IP_NF_TARGET_NETMAP is not set
> # CONFIG_IP_NF_TARGET_SAME is not set
> # CONFIG_IP_NF_NAT_LOCAL is not set
> # CONFIG_IP_NF_NAT_SNMP_BASIC is not set
> CONFIG_IP_NF_NAT_IRC=m
> CONFIG_IP_NF_NAT_FTP=m
> CONFIG_IP_NF_NAT_TFTP=m
> CONFIG_IP_NF_NAT_AMANDA=m
> # CONFIG_IP_NF_MANGLE is not set
> # CONFIG_IP_NF_RAW is not set
> # CONFIG_IP_NF_ARPTABLES is not set
> # CONFIG_IP_NF_COMPAT_IPCHAINS is not set
> # CONFIG_IP_NF_COMPAT_IPFWADM is not set
631c695
< # CONFIG_NET_CLS_ROUTE is not set
---
> CONFIG_NET_CLS_ROUTE=y
636c700
< # CONFIG_NET_PKTGEN is not set
---
> CONFIG_NET_PKTGEN=m
646c710
< # CONFIG_TUN is not set
---
> CONFIG_TUN=m
759,796c823
< CONFIG_NET_RADIO=y
<
< #
< # Obsolete Wireless cards support (pre-802.11)
< #
< # CONFIG_STRIP is not set
< CONFIG_ARLAN=m
< # CONFIG_WAVELAN is not set
< CONFIG_PCMCIA_WAVELAN=m
< CONFIG_PCMCIA_NETWAVE=m
<
< #
< # Wireless 802.11 Frequency Hopping cards support
< #
< # CONFIG_PCMCIA_RAYCS is not set
<
< #
< # Wireless 802.11b ISA/PCI cards support
< #
< # CONFIG_AIRO is not set
< CONFIG_HERMES=m
< CONFIG_PLX_HERMES=m
< CONFIG_TMD_HERMES=m
< CONFIG_PCI_HERMES=m
< # CONFIG_ATMEL is not set
<
< #
< # Wireless 802.11b Pcmcia/Cardbus cards support
< #
< CONFIG_PCMCIA_HERMES=m
< CONFIG_AIRO_CS=m
< # CONFIG_PCMCIA_WL3501 is not set
<
< #
< # Prism GT/Duette 802.11(a/b/g) PCI/Cardbus support
< #
< CONFIG_PRISM54=m
< CONFIG_NET_WIRELESS=y
---
> # CONFIG_NET_RADIO is not set
1011c1038
< CONFIG_FB_VESA_DEFAULT_MODE="640x480@60"
---
> CONFIG_FB_VESA_DEFAULT_MODE="1024x768@60"
1047c1074
< # CONFIG_FB_SPLASH is not set
---
> CONFIG_FB_SPLASH=y
1052,1070c1079
< CONFIG_SPEAKUP=y
< CONFIG_SPEAKUP_ACNTSA=m
< CONFIG_SPEAKUP_ACNTPC=m
< CONFIG_SPEAKUP_APOLLO=m
< CONFIG_SPEAKUP_AUDPTR=m
< CONFIG_SPEAKUP_BNS=m
< CONFIG_SPEAKUP_DECTLK=m
< CONFIG_SPEAKUP_DECEXT=m
< CONFIG_SPEAKUP_DECPC=m
< CONFIG_SPEAKUP_DTLK=m
< CONFIG_SPEAKUP_KEYPC=m
< CONFIG_SPEAKUP_LTLK=m
< CONFIG_SPEAKUP_SFTSYN=m
< CONFIG_SPEAKUP_SPKOUT=m
< CONFIG_SPEAKUP_TXPRT=m
<
< #
< # Enter the 3 to 6 character keyword from the list above, or none for no default synthesizer on boot up.
< #
---
> # CONFIG_SPEAKUP is not set
1232c1241
< # CONFIG_USB_STORAGE_SDDR09 is not set
---
> CONFIG_USB_STORAGE_SDDR09=y
1320c1329
< # CONFIG_EXT3_FS_POSIX_ACL is not set
---
> CONFIG_EXT3_FS_POSIX_ACL=y
1327,1328c1336,1339
< CONFIG_REISERFS_PROC_INFO=y
< # CONFIG_REISERFS_FS_XATTR is not set
---
> # CONFIG_REISERFS_PROC_INFO is not set
> CONFIG_REISERFS_FS_XATTR=y
> CONFIG_REISERFS_FS_POSIX_ACL=y
> # CONFIG_REISERFS_FS_SECURITY is not set
1332a1344
> CONFIG_FS_POSIX_ACL=y
1343c1355
< # CONFIG_AUTOFS4_FS is not set
---
> CONFIG_AUTOFS4_FS=m
1365c1377
< # CONFIG_NTFS_RW is not set
---
> CONFIG_NTFS_RW=y
1387,1388c1399,1400
< # CONFIG_HFS_FS is not set
< # CONFIG_HFSPLUS_FS is not set
---
> CONFIG_HFS_FS=m
> CONFIG_HFSPLUS_FS=m
1411c1423
< # CONFIG_NFSD_TCP is not set
---
> CONFIG_NFSD_TCP=y
1431,1432c1443,1454
< # CONFIG_PARTITION_ADVANCED is not set
< CONFIG_MSDOS_PARTITION=y
---
> CONFIG_PARTITION_ADVANCED=y
> # CONFIG_ACORN_PARTITION is not set
> # CONFIG_OSF_PARTITION is not set
> # CONFIG_AMIGA_PARTITION is not set
> # CONFIG_ATARI_PARTITION is not set
> CONFIG_MAC_PARTITION=y
> # CONFIG_MSDOS_PARTITION is not set
> # CONFIG_LDM_PARTITION is not set
> # CONFIG_SGI_PARTITION is not set
> # CONFIG_ULTRIX_PARTITION is not set
> CONFIG_SUN_PARTITION=y
> # CONFIG_EFI_PARTITION is not set
1442c1464
< # CONFIG_NLS_CODEPAGE_850 is not set
---
> CONFIG_NLS_CODEPAGE_850=y
1462c1484
< # CONFIG_NLS_ASCII is not set
---
> CONFIG_NLS_ASCII=y
1476c1498
< # CONFIG_NLS_UTF8 is not set
---
> CONFIG_NLS_UTF8=y
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Tue Dec 14, 2004 4:07 pm    Post subject: Reply with quote

how about you try with exactly the same .config ? the diff shows that you have changed quite a few filesystem/partition options and thats most likely to be the problem
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
pflugshaupt
n00b
n00b


Joined: 14 Dec 2004
Posts: 13
Location: Zurich, Switzerland

PostPosted: Tue Dec 14, 2004 4:21 pm    Post subject: Reply with quote

dsd wrote:
how about you try with exactly the same .config ? the diff shows that you have changed quite a few filesystem/partition options and thats most likely to be the problem


OK, I have genkernel running now with the old config and will try again tomorrow (CET...)

Meanwhile, thanks! :)

Kaspar
Back to top
View user's profile Send private message
pflugshaupt
n00b
n00b


Joined: 14 Dec 2004
Posts: 13
Location: Zurich, Switzerland

PostPosted: Wed Dec 15, 2004 7:56 am    Post subject: OK, problem solved... Reply with quote

Well, I am feeling a bit stupid. Compiled using the old config, the kernel boots perfectly. I suspect these changes to be the culprit:
Code:
1327,1328c1336,1339
< CONFIG_REISERFS_PROC_INFO=y
< # CONFIG_REISERFS_FS_XATTR is not set
---
> # CONFIG_REISERFS_PROC_INFO is not set
> CONFIG_REISERFS_FS_XATTR=y
> CONFIG_REISERFS_FS_POSIX_ACL=y
> # CONFIG_REISERFS_FS_SECURITY is not set

This would mean that the reiserfs driver with extended attributes compiled in cannot mount the (root) file system that was generated without those attributes. I'll have to read up on this, but it does seem strange.

Lessons learned: (1) Never change more than one thing at once in a working kernel config (2) Know what you're changing

dsd, thanks for your help!

Kaspar
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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