Skip to contentSkip to conversation

ReiserFS V3 and linux-kernel-2.6

DISCUSSION Oleg O. Ossovitskii 5 participants 12 messages Feb 9, 2005 – Feb 17, 2005 3 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hello!

I run self compiled kernel 2.4.27 w/devfs and want to upgrade to 2.6.10 w/devfs. All kernels without using initrd

/dev/hdc2 - /boot - ext2
/dev/hdc8 - / - ReiserFS V3

gcc 3.4.3, modultils-2.4.21, glibc-2.3.4

I installed
module-init-tools-3.1.tar.bz2
sysfsutils-1.1.0.tar.bz2
hotplug-2004_09_23.tar.bz2
udev-051

and all that I found in Changes from kernel-2.6.10

In the grub config i have:

--------------------------------
# For booting GNU/Linux
title GNU/Linux-2.6.x
kernel (hd0,1)/vmlinuz root=/dev/hdc8 rw devfs=mount

title GNU/Linux-2.4.x
kernel (hd0,1)/vmlinuz-2.4 root=/dev/hdc8 rw devfs=mount
----------------------------------

I can boot into 2.4.x kernel, but when I try to boot to 2.6.10 kernel I get error message & kernel panic:

VFS: Cannot open root device "hdc8" or unknown-block(0,0) Please append a correct "root=" boot option

  Kernel panic - not syncing: VFS: Unable to mount root fs on
  unknown-block(0,0)

Here is parts of my kernel config:
---------------------------------------------
.....
#
# File systems
#
CONFIG_EXT2_FS=y
CONFIG_EXT2_FS_XATTR=y
# CONFIG_EXT2_FS_POSIX_ACL is not set
# CONFIG_EXT2_FS_SECURITY is not set
CONFIG_EXT3_FS=y
CONFIG_EXT3_FS_XATTR=y
# CONFIG_EXT3_FS_POSIX_ACL is not set
# CONFIG_EXT3_FS_SECURITY is not set
CONFIG_JBD=y
# CONFIG_JBD_DEBUG is not set
CONFIG_FS_MBCACHE=y
CONFIG_REISERFS_FS=y
# CONFIG_REISERFS_CHECK is not set
CONFIG_REISERFS_PROC_INFO=y
CONFIG_REISERFS_FS_XATTR=y
# CONFIG_REISERFS_FS_POSIX_ACL is not set
# CONFIG_REISERFS_FS_SECURITY is not set
CONFIG_JFS_FS=m
# CONFIG_JFS_POSIX_ACL is not set
# CONFIG_JFS_DEBUG is not set
# CONFIG_JFS_STATISTICS is not set
CONFIG_XFS_FS=m
# CONFIG_XFS_RT is not set
# CONFIG_XFS_QUOTA is not set
# CONFIG_XFS_SECURITY is not set
# CONFIG_XFS_POSIX_ACL is not set
CONFIG_MINIX_FS=m
CONFIG_ROMFS_FS=m
# CONFIG_QUOTA is not set
CONFIG_DNOTIFY=y
# CONFIG_AUTOFS_FS is not set
CONFIG_AUTOFS4_FS=y
......

#
# Pseudo filesystems
#
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_SYSFS=y
CONFIG_DEVFS_FS=y
# CONFIG_DEVFS_MOUNT is not set
# CONFIG_DEVFS_DEBUG is not set
CONFIG_DEVPTS_FS_XATTR=y
# CONFIG_DEVPTS_FS_SECURITY is not set
CONFIG_TMPFS=y
CONFIG_TMPFS_XATTR=y
# CONFIG_TMPFS_SECURITY is not set
# CONFIG_HUGETLBFS is not set
# CONFIG_HUGETLB_PAGE is not set
CONFIG_RAMFS=y

---------------------------------------------

What should I do additionally, for using RieserFS V3 with kernel-2.6?

Should I enable CONFIG_REISERFS_FS_XATTR ?

---
Best regards, Oleg O. Ossovitskii
chief programmer, KGPA Ltd, West Russia, Kaliningrad (Koenigsberg) mailto:[email protected], icq# 33366588

#1 lore raw

Hello

Quoted 98 lines · Oleg O. Ossovitskii

Hello!

I run self compiled kernel 2.4.27 w/devfs and want to upgrade to 2.6.10 w/devfs. All kernels without using initrd

/dev/hdc2 - /boot - ext2
/dev/hdc8 - / - ReiserFS V3

gcc 3.4.3, modultils-2.4.21, glibc-2.3.4

I installed
module-init-tools-3.1.tar.bz2
sysfsutils-1.1.0.tar.bz2
hotplug-2004_09_23.tar.bz2
udev-051

and all that I found in Changes from kernel-2.6.10

In the grub config i have:

--------------------------------
# For booting GNU/Linux
title GNU/Linux-2.6.x
kernel (hd0,1)/vmlinuz root=/dev/hdc8 rw devfs=mount

title GNU/Linux-2.4.x
kernel (hd0,1)/vmlinuz-2.4 root=/dev/hdc8 rw devfs=mount
----------------------------------

I can boot into 2.4.x kernel, but when I try to boot to 2.6.10 kernel I get error message & kernel panic:

VFS: Cannot open root device "hdc8" or unknown-block(0,0) Please append a correct "root=" boot option

  Kernel panic - not syncing: VFS: Unable to mount root fs on
  unknown-block(0,0)

Here is parts of my kernel config:
---------------------------------------------
.....
#
# File systems
#
CONFIG_EXT2_FS=y
CONFIG_EXT2_FS_XATTR=y
# CONFIG_EXT2_FS_POSIX_ACL is not set
# CONFIG_EXT2_FS_SECURITY is not set
CONFIG_EXT3_FS=y
CONFIG_EXT3_FS_XATTR=y
# CONFIG_EXT3_FS_POSIX_ACL is not set
# CONFIG_EXT3_FS_SECURITY is not set
CONFIG_JBD=y
# CONFIG_JBD_DEBUG is not set
CONFIG_FS_MBCACHE=y
CONFIG_REISERFS_FS=y
# CONFIG_REISERFS_CHECK is not set
CONFIG_REISERFS_PROC_INFO=y
CONFIG_REISERFS_FS_XATTR=y
# CONFIG_REISERFS_FS_POSIX_ACL is not set
# CONFIG_REISERFS_FS_SECURITY is not set
CONFIG_JFS_FS=m
# CONFIG_JFS_POSIX_ACL is not set
# CONFIG_JFS_DEBUG is not set
# CONFIG_JFS_STATISTICS is not set
CONFIG_XFS_FS=m
# CONFIG_XFS_RT is not set
# CONFIG_XFS_QUOTA is not set
# CONFIG_XFS_SECURITY is not set
# CONFIG_XFS_POSIX_ACL is not set
CONFIG_MINIX_FS=m
CONFIG_ROMFS_FS=m
# CONFIG_QUOTA is not set
CONFIG_DNOTIFY=y
# CONFIG_AUTOFS_FS is not set
CONFIG_AUTOFS4_FS=y
......

#
# Pseudo filesystems
#
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_SYSFS=y
CONFIG_DEVFS_FS=y
# CONFIG_DEVFS_MOUNT is not set
# CONFIG_DEVFS_DEBUG is not set
CONFIG_DEVPTS_FS_XATTR=y
# CONFIG_DEVPTS_FS_SECURITY is not set
CONFIG_TMPFS=y
CONFIG_TMPFS_XATTR=y
# CONFIG_TMPFS_SECURITY is not set
# CONFIG_HUGETLBFS is not set
# CONFIG_HUGETLB_PAGE is not set
CONFIG_RAMFS=y

Quoted 7 lines

---------------------------------------------

What should I do additionally, for using RieserFS V3 with kernel-2.6?

Should I enable CONFIG_REISERFS_FS_XATTR ?

Please send both complete .config-s.

Quoted 7 lines

---
Best regards, Oleg O. Ossovitskii
chief programmer, KGPA Ltd, West Russia, Kaliningrad (Koenigsberg) mailto:[email protected], icq# 33366588

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw

Hello, Vladimir!

Quoted 2 lines · You
Quoted 2 lines

VS> Please send both complete .config-s.

VS> .config-2.6.10 has

VS> # CONFIG_DEVFS_MOUNT is not set

VS> whereas .config-2.4.27 has
VS> CONFIG_DEVFS_MOUNT=y

VS> If you turned CONFIG_DEVFS_MOUNT on for 2.6.10 - would it change VS> anything?

I yesterday recompiled kernel 2.6.10 w/option CONFIG_DEVFS_MOUNT switched on. Same problem =(

---
С уважением, Олег Осовицкий
ведущий программист, ООО фирма КГПА, Калининград
тел: +7(0112)46-23-40, факс: +7(0112)43-64-96, моб: +79022193956 mailto:[email protected], icq# 33366588

#5 lore raw
In reply to Oleg O. Ossovitskii
Quoted 30 lines · Oleg O. Ossovitskii

Hello!

I run self compiled kernel 2.4.27 w/devfs and want to upgrade to 2.6.10 w/devfs. All kernels without using initrd

/dev/hdc2 - /boot - ext2
/dev/hdc8 - / - ReiserFS V3

gcc 3.4.3, modultils-2.4.21, glibc-2.3.4

I installed
module-init-tools-3.1.tar.bz2
sysfsutils-1.1.0.tar.bz2
hotplug-2004_09_23.tar.bz2
udev-051

and all that I found in Changes from kernel-2.6.10

In the grub config i have:

--------------------------------
# For booting GNU/Linux
title GNU/Linux-2.6.x
kernel (hd0,1)/vmlinuz root=/dev/hdc8 rw devfs=mount

title GNU/Linux-2.4.x
kernel (hd0,1)/vmlinuz-2.4 root=/dev/hdc8 rw devfs=mount
----------------------------------

Quoted 8 lines

I can boot into 2.4.x kernel, but when I try to boot to 2.6.10 kernel I get error message & kernel panic:

VFS: Cannot open root device "hdc8" or unknown-block(0,0) Please append a correct "root=" boot option

  Kernel panic - not syncing: VFS: Unable to mount root fs on
  unknown-block(0,0)

please make sure that the rootfs block device driver (IDE disk) was compiled into the kernel.

Signature · 1 line
Alex.
#6 lore raw

Hello, Alex!

Quoted 10 lines · you
Quoted 10 lines

--------------------------------
# For booting GNU/Linux
title GNU/Linux-2.6.x
kernel (hd0,1)/vmlinuz root=/dev/hdc8 rw devfs=mount

title GNU/Linux-2.4.x
kernel (hd0,1)/vmlinuz-2.4 root=/dev/hdc8 rw devfs=mount
----------------------------------

Quoted 8 lines
Quoted 8 lines

I can boot into 2.4.x kernel, but when I try to boot to 2.6.10 kernel I get error message & kernel panic:

VFS: Cannot open root device "hdc8" or unknown-block(0,0) Please append a correct "root=" boot option

  Kernel panic - not syncing: VFS: Unable to mount root fs on
  unknown-block(0,0)

AZ> please make sure that the rootfs block device driver (IDE disk) was compiled AZ> into the kernel.

#
# ATA/ATAPI/MFM/RLL support
#
CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y

#
# Please see Documentation/ide.txt for help/info on IDE drives #
CONFIG_BLK_DEV_IDE_SATA=y
# CONFIG_BLK_DEV_HD_IDE is not set CONFIG_BLK_DEV_IDEDISK=y
CONFIG_IDEDISK_MULTI_MODE=y
CONFIG_BLK_DEV_IDECD=y
# CONFIG_BLK_DEV_IDETAPE is not set
# CONFIG_BLK_DEV_IDEFLOPPY is not set CONFIG_BLK_DEV_IDESCSI=y
# CONFIG_IDE_TASK_IOCTL is not set

#
# IDE chipset support/bugfixes
#
CONFIG_IDE_GENERIC=y
CONFIG_BLK_DEV_CMD640=y
# CONFIG_BLK_DEV_CMD640_ENHANCED is not set
# CONFIG_BLK_DEV_IDEPNP is not set
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
# CONFIG_BLK_DEV_OFFBOARD is not set
CONFIG_BLK_DEV_GENERIC=y
# CONFIG_BLK_DEV_OPTI621 is not set
CONFIG_BLK_DEV_RZ1000=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
# CONFIG_BLK_DEV_AEC62XX is not set
# CONFIG_BLK_DEV_ALI15X3 is not set
# CONFIG_BLK_DEV_AMD74XX is not set
# CONFIG_BLK_DEV_ATIIXP is not set
# CONFIG_BLK_DEV_CMD64X is not set
# CONFIG_BLK_DEV_TRIFLEX is not set
# CONFIG_BLK_DEV_CY82C693 is not set
# CONFIG_BLK_DEV_CS5520 is not set
# CONFIG_BLK_DEV_CS5530 is not set
# CONFIG_BLK_DEV_HPT34X is not set
# CONFIG_BLK_DEV_HPT366 is not set
# CONFIG_BLK_DEV_SC1200 is not set
CONFIG_BLK_DEV_PIIX=y
# CONFIG_BLK_DEV_NS87415 is not set
# CONFIG_BLK_DEV_PDC202XX_OLD is not set
# CONFIG_BLK_DEV_PDC202XX_NEW is not set
# CONFIG_BLK_DEV_SVWKS is not set
# CONFIG_BLK_DEV_SIIMAGE is not set
# CONFIG_BLK_DEV_SIS5513 is not set
# CONFIG_BLK_DEV_SLC90E66 is not set
# CONFIG_BLK_DEV_TRM290 is not set
# CONFIG_BLK_DEV_VIA82CXXX is not set
# CONFIG_IDE_ARM is not set
# CONFIG_IDE_CHIPSETS is not set
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y
# CONFIG_BLK_DEV_HD is not set

#
# SCSI device support
#
CONFIG_SCSI=y
CONFIG_SCSI_PROC_FS=y

#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y
# CONFIG_CHR_DEV_ST is not set
# CONFIG_CHR_DEV_OSST is not set
CONFIG_BLK_DEV_SR=m
# CONFIG_BLK_DEV_SR_VENDOR is not set
CONFIG_CHR_DEV_SG=y

Best regards, Oleg O. Ossovitskii
chief programmer, KGPA Ltd., West Russia
tel: +7(0112)46-23-40, fax: +7(0112)43-64-96, cell: +79022193956 mailto:[email protected], icq# 33366588

#7 lore raw
Quoted 18 lines · Oleg O. Ossovitskii

Hello, Alex!

Quoted 14 lines · you
Quoted 14 lines

--------------------------------
# For booting GNU/Linux
title GNU/Linux-2.6.x
kernel (hd0,1)/vmlinuz root=/dev/hdc8 rw devfs=mount

title GNU/Linux-2.4.x
kernel (hd0,1)/vmlinuz-2.4 root=/dev/hdc8 rw devfs=mount
----------------------------------

I can boot into 2.4.x kernel, but when I try to boot to 2.6.10 kernel I get error message & kernel panic:

Quoted 7 lines
Quoted 4 lines
Quoted 4 lines

VFS: Cannot open root device "hdc8" or unknown-block(0,0) Please append a correct "root=" boot option

  Kernel panic - not syncing: VFS: Unable to mount root fs on
  unknown-block(0,0)

AZ> please make sure that the rootfs block device driver (IDE disk) was compiled AZ> into the kernel.

can you try to following?

1) boot w/o devfs
2) check that the block device driver is loaded successfully and partition table is read properly
(look at kernel boot messages)

btw, I have no troubles switching my system between 2.4.x and 2.6.x

Signature · 1 line
Alex.
#8 lore raw

Hello, Alex!

Quoted 7 lines · you
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines

VFS: Cannot open root device "hdc8" or unknown-block(0,0) Please append a correct "root=" boot option

  Kernel panic - not syncing: VFS: Unable to mount root fs on
  unknown-block(0,0)

AZ> please make sure that the rootfs block device driver (IDE disk) was compiled AZ> into the kernel.

yes it compiled in the kernel

AZ> can you try to following?

AZ> 1) boot w/o devfs

No, my /dev directory is empty without devfs. It's mountpoint only

AZ> 2) check that the block device driver is loaded successfully
AZ> and partition table is read properly
AZ> (look at kernel boot messages)

As I can see (messages disappears too fast and Ctrl-PgUp don't work) ide driver loaded, but I'm not sure. How can I see kernel messages after kernel panic?

Best regards, Oleg O. Ossovitskii
chief programmer, KGPA Ltd., West Russia
tel: +7(0112)46-23-40, fax: +7(0112)43-64-96, cell: +79022193956 mailto:[email protected], icq# 33366588

#9 lore raw
Quoted 20 lines · Oleg O. Ossovitskii

Hello, Alex!

Quoted 7 lines · you
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines

VFS: Cannot open root device "hdc8" or unknown-block(0,0) Please append a correct "root=" boot option

  Kernel panic - not syncing: VFS: Unable to mount root fs on
  unknown-block(0,0)

AZ> please make sure that the rootfs block device driver (IDE disk) was compiled AZ> into the kernel.

yes it compiled in the kernel

AZ> can you try to following?

AZ> 1) boot w/o devfs

No, my /dev directory is empty without devfs. It's mountpoint only

Quoted 7 lines

AZ> 2) check that the block device driver is loaded successfully
AZ> and partition table is read properly
AZ> (look at kernel boot messages)

As I can see (messages disappears too fast and Ctrl-PgUp don't work) ide driver loaded, but I'm not sure. How can I see kernel messages after kernel panic?

1. serial console.
2. netconsole (linux-src/Documentation/networking/netconsole.txt)

Signature · 1 line
Alex.

A message that is not in the archive (sent off-list or not yet received): [email protected]

#11 lore raw
Quoted 20 lines · Oleg O. Ossovitskii

Hello, Alex!

Wednesday, February 9, 2005, 5:56:26 PM, you wrote:

AZ> 2) check that the block device driver is loaded successfully
AZ> and partition table is read properly
AZ> (look at kernel boot messages)

You're rigth! This is reason why I can't boot kernel 2.6.10

I have next HDD & DVD:
hda - IDE NEC DVD-RW ND-2500A
hdb - IDE Western Digitall (old 850 GB drive)
hdc - SATA (in legacy mode) Maxtor 80 GB (here Linux is placed)

I can boot from hdc Windows 2000, qnx4, linux-2.4.27, but when I try to boot to linux-2.6.10 I got something like

ide: 0x170-0x1F0 is busy

Quoted 7 lines

and so on... I can't give full error message, until I receive it via serial console

Sorry, it's not a ReiderFS bug, but I don't understand how grub-0.92 can take kernel from /dev/hdc2 and why kernel can't read /dev/hdc8???

May be it's a wrong kernel config, or wrong kernel option?

I would turn SATA (CONFIG_BLK_DEV_IDE_SATA) support off.

Quoted 22 lines

--- grub's menu.lst ---
....
# For booting GNU/Linux
title GNU/Linux-2.6.x
kernel (hd0,1)/vmlinuz root=/dev/hdc8 rw devfs=mount

title GNU/Linux-2.4.x
kernel (hd0,1)/vmlinuz-2.4 root=/dev/hdc8 rw devfs=mount
....
-----------------------

My harware list:

CPU: Pentium4 2.80 GHz
RAM: 512MB
MB:  ASUS P4P800

Best regards, Oleg O. Ossovitskii
chief programmer, KGPA Ltd., West Russia
tel: +7(0112)46-23-40, fax: +7(0112)43-64-96, cell: +79022193956 mailto:[email protected], icq# 33366588

Signature · 1 line
Alex.
#12 lore raw

Hello, Alex!

Quoted 1 line · you
Quoted 1 line

May be it's a wrong kernel config, or wrong kernel option?

AZ> I would turn SATA (CONFIG_BLK_DEV_IDE_SATA) support off.

I turned off support of SATA and now I can boot kernel-2.6 and use ReiserFS. Thaks for help & time You are wasted w/me. You are doung the great job, and ReiserFS is the best FS! (I didn't try yet Reiser4, but I plan to use it in future)

Best regards, Oleg O. Ossovitskii
chief programmer, KGPA Ltd., West Russia
tel: +7(0112)46-23-40, fax: +7(0112)43-64-96, cell: +79022193956 mailto:[email protected], icq# 33366588

#13 lore raw
In reply to Oleg O. Ossovitskii

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 5 lines · Oleg O. Ossovitskii

Hello!

I run self compiled kernel 2.4.27 w/devfs and want to upgrade to 2.6.10 w/devfs. All kernels without using initrd

as a side-note (and i did not see anyone mention it):
devfs is considered OBSOLETE and plans are to remove it asap. udev has replaced it.

Christian.
- --
BOFH excuse #250:

Program load too heavy for processor to lift. -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCD292C/PVm5+NVoYRAtqCAKDJJ6MaTu49nI7g9+Fxvjbo2L3KPwCgyTdg M1Z5lTQsP9+5R0Mcb3A+bks=
=829Y
-----END PGP SIGNATURE-----

#14 lore raw
In reply to Oleg O. Ossovitskii

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 1 line · On Wed, 9 Feb 2005 11:05:14 +0200 "Oleg O. Ossovitskii" <[email protected]> wrote:

# CONFIG_DEVFS_MOUNT is not set

Your kernel won't probably mount the devfs filesystem without this option. I am however not sure whether this will have any influence on the kernel mounting its root fs or not (since DEVFS is mounted under /dev, and when there's no /, where to mount it?). But you could try it anyway.

Regards,
Milan

- --

Milan Holzäpfel alias jagdfalke alias jag

Antworten direkt an mich                             Answers directly to me
gehen bitte an eine Addresse,                        go to an address one
die man hier finden kann:                            can find here, please:

Kontaktinfos sowie Contact infos as well as
Öff GnuPG-Schlüssel <URL:http://con.mjh.name/> GnuPG Public Key
GnuPG Fingerabdruck 4C8A 5FAF 5D32 6125 89D1 GnuPG Fingerprint

                        0CE5 DB0C AF4F 6583 7966



                    http://www.deppenleerzeichen.de/                        

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFCFKQ52wyvT2WDeWYRAt0HAKC7xSkMzDQhjYTntEOqGEig00CRUACgsH58 u/eQeSCpmy8sQDeSBv22aXg=
=0cZL
-----END PGP SIGNATURE-----