Skip to contentSkip to conversation

Installing Fedora Core with root on Reiserfs

DISCUSSION Russell Coker 5 participants 8 messages Jul 18, 2005 – Jul 21, 2005 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 3 lines · Edward Shishkin

FC4-test3 (and perhaps FC4) installs its own version of grub which seems to interact incorrectly with reiserfs. The problem is that reiserfs.ko module located on reiserfs partition can not be loaded.

Firstly there is no situation in which reiserfs.ko will be loaded from a reiserfs partition.

If the root file system is reiserfs then reiserfs.ko will (or at least should) be included in the initrd. The GRUB support for ReiserFS is based on the file /boot/grub/reiserfs_stage1_5 which is only needed for /boot on ReiserFS.

Some people believe that /boot should be a separate file system to the root file system regardless of all other issues. All systems which use LVM for the root file system on Fedora (the default partitioning involves LVM) will have a separate /boot file system because GRUB apparently doesn't support LVM (yet).

So having a /boot with Ext2/3 is an easy solution to any ReiserFS booting issues, and a solution that will be forced on the users if they use LVM. When using a small /boot file system ReiserFS is not a good choice. A quick test showed that Ext3 gave 18M more usable disk space from a 100M file system than ReiserFS, this will essentially force all LVM users to use Ext3 for /boot.

Quoted 8 lines

1. (Requires some partition formatted by ext2).
At the end of installation process (after invitation to reboot) boot
from some rescue CD, mount reiserfs root partition (say to /mnt) and move all the compressed images (vmlinuz-xxx and initrd-xxx located at /mnt/boot) to your ext2 partition. Then edit the file /mnt/boot/grub/grub.conf pointing a new location for the images. Reboot and finish the installation
process.

This can be done automatically through the Anaconda GUI or through kickstart. Just specify that /boot is to be a separate partition of type Ext3.

Signature · 10 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page

-- 
fedora-test-list mailing list
[email protected]
To unsubscribe: 
http://www.redhat.com/mailman/listinfo/fedora-test-list
#2 lore raw
Quoted 12 lines · Russell Coker
Quoted 5 lines · Edward Shishkin

FC4-test3 (and perhaps FC4) installs its own version of grub which seems to interact incorrectly with reiserfs. The problem is that reiserfs.ko module located on reiserfs partition can not be loaded.

Firstly there is no situation in which reiserfs.ko will be loaded from a reiserfs partition.

Hmmm... actually this is a default situation when installing with root on reiserfs..

Quoted 2 lines

If the root file system is reiserfs then reiserfs.ko will (or at least should) be included in the initrd.

Right, but initrd is in /boot which is not something separate: it is on the same reiserfs root partition..

Quoted 23 lines

The GRUB support for ReiserFS is based on the file /boot/grub/reiserfs_stage1_5 which is only needed for /boot on ReiserFS.

Some people believe that /boot should be a separate file system to the root file system regardless of all other issues. All systems which use LVM for the root file system on Fedora (the default partitioning involves LVM) will have a separate /boot file system because GRUB apparently doesn't support LVM (yet).

So having a /boot with Ext2/3 is an easy solution to any ReiserFS booting issues, and a solution that will be forced on the users if they use LVM. When using a small /boot file system ReiserFS is not a good choice. A quick test showed that Ext3 gave 18M more usable disk space from a 100M file system than ReiserFS, this will essentially force all LVM users to use Ext3 for /boot.

Quoted 10 lines

1. (Requires some partition formatted by ext2).
At the end of installation process (after invitation to reboot) boot
from some rescue CD, mount reiserfs root partition (say to /mnt) and move all the compressed images (vmlinuz-xxx and initrd-xxx located at /mnt/boot) to your ext2 partition. Then edit the file /mnt/boot/grub/grub.conf pointing a new location for the images. Reboot and finish the installation
process.

This can be done automatically through the Anaconda GUI or through kickstart. Just specify that /boot is to be a separate partition of type Ext3.

#3 lore raw

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

Quoted 15 lines · Edward Shishkin
Quoted 12 lines · Russell Coker
Quoted 4 lines · Edward Shishkin

FC4-test3 (and perhaps FC4) installs its own version of grub which seems to interact incorrectly with reiserfs. The problem is that reiserfs.ko module located on reiserfs partition can not be loaded.

Firstly there is no situation in which reiserfs.ko will be loaded from a reiserfs partition.

Quoted 8 lines

Hmmm... actually this is a default situation when installing with root on reiserfs..

Quoted 2 lines

If the root file system is reiserfs then reiserfs.ko will (or at least should) be included in the initrd.

Right, but initrd is in /boot which is not something separate: it is on the same reiserfs root partition..

The situation you're describing is one that is well tested by now.

If the root filesystem is reiserfs, and /boot is a part of it, reiserfs.ko MUST be in the initrd. Otherwise, there is a chicken/egg problem and the system will not boot.

The initrd being on a reiserfs filesystem is fine since grub doesn't use any kernel services when it's executing. Grub loads the kernel and the initrd itself before transferring control to the kernel and uses no kernel services to do so. Grub has its own filesystem reading code which gets pointed to during installation.

So, if there is truly a problem with this, I'd look at Fedora's mkinitrd.

- -Jeff

- --
Jeff Mahoney
SuSE Labs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFC29H1LPWxlyuTD7IRAv6sAJ4wwM6ArTI+P8NeC2Xr2fMdiSW/6QCbB9wh /Co71RNi4Uq3a6tatRQDjiw=
=EHOF
-----END PGP SIGNATURE-----

#4 lore raw

Edward, please drive this to a solution. Thanks Jeff.

Hans

Quoted 49 lines · Jeff Mahoney
Quoted 3 lines · Edward Shishkin
Quoted 1 line · Russell Coker

On Monday 18 July 2005 06:01, Edward Shishkin <[email protected]>

Quoted 3 lines · wrote:
Quoted 3 lines
Quoted 3 lines

FC4-test3 (and perhaps FC4) installs its own version of grub which

seems

Quoted 8 lines
Quoted 8 lines
Quoted 3 lines

to interact incorrectly with reiserfs. The problem is that reiserfs.ko module located on reiserfs partition can not be loaded.

Firstly there is no situation in which reiserfs.ko will be loaded from a reiserfs partition.

Quoted 7 lines

Hmmm... actually this is a default situation when installing with root on reiserfs..

Quoted 2 lines

If the root file system is reiserfs then reiserfs.ko will (or at least should) be included in the initrd.

Right, but initrd is in /boot which is not something separate: it is

on the

Quoted 1 line

same reiserfs root partition..

The situation you're describing is one that is well tested by now.

If the root filesystem is reiserfs, and /boot is a part of it, reiserfs.ko MUST be in the initrd. Otherwise, there is a chicken/egg problem and the system will not boot.

The initrd being on a reiserfs filesystem is fine since grub doesn't use any kernel services when it's executing. Grub loads the kernel and the initrd itself before transferring control to the kernel and uses no kernel services to do so. Grub has its own filesystem reading code which gets pointed to during installation.

So, if there is truly a problem with this, I'd look at Fedora's mkinitrd.

-Jeff

--
Jeff Mahoney
SuSE Labs

#8 lore raw
In reply to Russell Coker
Quoted 4 lines · Russell Coker
Quoted 3 lines · Edward Shishkin

FC4-test3 (and perhaps FC4) installs its own version of grub which seems to interact incorrectly with reiserfs. The problem is that reiserfs.ko module located on reiserfs partition can not be loaded.

I can confirm that there is a reiserfs/GRUB problem in the final FC4 release too. (I assume it's the same problem, but I haven't investigated it.) FWIW - evidently not much - the relevant Fedora Bugzilla bug would appear to be 161306.

#5 lore raw
In reply to Jeff Mahoney
Quoted 11 lines · Jeff Mahoney
Quoted 5 lines
Quoted 2 lines

If the root file system is reiserfs then reiserfs.ko will (or at least should) be included in the initrd.

Right, but initrd is in /boot which is not something separate: it is on the same reiserfs root partition..

The situation you're describing is one that is well tested by now.

If the root filesystem is reiserfs, and /boot is a part of it, reiserfs.ko MUST be in the initrd. Otherwise, there is a chicken/egg problem and the system will not boot.

This works in all my tests. The reiserfs.ko module is apparently in the initrd.

Also if the original bug concerned a lack of reiserfs.ko in the initrd then re-running GRUB would not fix things.

I can't reproduce the bug, it just works for me.

Signature · 10 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page

-- 
fedora-test-list mailing list
[email protected]
To unsubscribe: 
http://www.redhat.com/mailman/listinfo/fedora-test-list
#6 lore raw
Quoted 19 lines · Russell Coker
Quoted 8 lines · Jeff Mahoney
Quoted 8 lines
Quoted 4 lines

If the root file system is reiserfs then reiserfs.ko will (or at least should) be included in the initrd.

Right, but initrd is in /boot which is not something separate: it is on the same reiserfs root partition..

Quoted 7 lines

The situation you're describing is one that is well tested by now.

If the root filesystem is reiserfs, and /boot is a part of it, reiserfs.ko MUST be in the initrd. Otherwise, there is a chicken/egg problem and the system will not boot.

Quoted 8 lines

This works in all my tests. The reiserfs.ko module is apparently in the initrd.

Also if the original bug concerned a lack of reiserfs.ko in the initrd then re-running GRUB would not fix things.

I can't reproduce the bug, it just works for me.

Sorry for the confusion.
My phrase "reiserfs.ko located on reiserfs" sounds bad, and I should clarify that the reiserfs.ko is contained in the initrd with other binaries/scripts, and this initrd looks fine from the standpoint of kernel/reiserfs, but not from the standpoint of grub/reiserfs-emulation. The logs obtained from serial console don't include anything about loading initrd, and there is the following detail: a dump created by debugreiserfs -d shows that the initrd (i_size: 1128235) is represented by an indirect item (276 4K-blocks), while grub found that this is not sector-aligned:

debugreiserfs:
--------------
| 0|54 17448 0x1 IND (1), len 1104, location 2992 entry count 0, fsck need 0, format new| 276 pointers
[ 1347049(276)]
^^^^^^^

grub:
--------------
grub> blocklist /boot/initrd-2.6.11-1.1286_FC4smp.img (hd0,4)10776392[10-512],10776393+15,10776408[0-10],10776408[10-512],10776409+15,...

      ^^^^^^^^^^^^^^^^

...,10778584[10-512],10778585+11
(the actual dump is large, so I have cut the middle)

This blocklist doesn't contain last zeroed sectors 10778596-10778599 occupied by the initrd, but I am not sure if it is essential. The "mysterious offset 10" looks more suspiciously.
I'll look at grub internals which are responsible for accessing reiserfs..

Thanks to everyone,
Edward.

#7 lore raw
Quoted 9 lines · Edward Shishkin

My phrase "reiserfs.ko located on reiserfs" sounds bad, and I should clarify that the reiserfs.ko is contained in the initrd with other binaries/scripts, and this initrd looks fine from the standpoint of kernel/reiserfs, but not from the standpoint of grub/reiserfs-emulation. The logs obtained from serial console don't include anything about loading initrd, and there is the following detail: a dump created by debugreiserfs -d shows that the initrd (i_size: 1128235) is represented by an indirect item (276 4K-blocks), while grub found that this is not sector-aligned:

Might this be related to the size of the ReiserFS file system?

I tested installs with the default partitioning (100M /boot) which worked OK. When you had the problem were you using a larger ReiserFS file system?

Signature · 10 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page

-- 
fedora-test-list mailing list
[email protected]
To unsubscribe: 
http://www.redhat.com/mailman/listinfo/fedora-test-list