FedoraForum.org - Fedora Support Forums and Community
Results 1 to 3 of 3
  1. #1
    brasse Guest

    Mounting ext3 root file system with mount option data=journal

    Hello!

    I am trying to get my FC3 installation to boot with the root file system mounted with the mount option data=journal. However, I have had no luck.

    I have tried to edit grub.conf to have the kernel command line look like this:
    kernel /boot/vmlinuz-2.6.10-1.770_FC3smp ro root=LABEL=/ rootflags=data=journal rhgb quiet

    I have tried this with and without editing /etc/fstab to use various mount options for the root file system:

    defaults
    data=journal
    defaults,data=journal

    None of these combinations work. Either the computer does not boot at all with error messages regarding writing to a read only file system, or the computer boots but mount -l does not show that the root file system is mounted with data=journal.

    Have anyone here got this to work? If so, how? All suggestions will be greatly appriciated!

    Regards,
    Mattias

  2. #2
    Join Date
    May 2006
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think I managed that after a few experiments. I hope that the following procedure helps those who also googled this question.

    The values show are for a Fedora 10 with the root fs under LVM. Check proper kernel and initrd image names under the /boot/ directory.

    The steps are:

    1 - as root, edit /etc/fstab as suggested (replace "defaults" by "noatime,data=journal").
    ("noatime" was not asked for. Is just to test some speedup - be careful not to loose the original tabulation - I guess the TABS where lost in transcription).

    Code:
    /dev/VolGroup00/rootvol /                       ext3    noatime,data=journal        1 1
    2 - as root, run
    Code:
    mkinitrd -v --fstab=/etc/fstab /boot/initrd-2.6.27.5-117.journal.i686.img 2.6.27.5-117.fc10.i686
    This will create a new file /boot/initrd-2.6.27.5-117.journal.i686.img

    3 - as root edit /etc/grub.conf and add an entry like:
    Code:
    title Fedora Test
            root (hd0,0)
            kernel /vmlinuz-2.6.27.5-117.fc10.i686 rootflags=data=journal ro
            initrd /initrd-2.6.27.5-117.journal.i686.img
    Then reboot, and choose the "Fedora Test" target on the next boot.
    It worked for me.
    Last edited by jpluis; 11th May 2009 at 10:32 AM. Reason: minor rephrasing

  3. #3
    Join Date
    Oct 2004
    Location
    London, UK
    Posts
    4,991
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this thread is 4 years old.

    In any case, if you have a livecd or can dual boot then you can change the journal mode on the unmounted root partition

    Code:
    tune2fs -o journal_data /dev/sdX
    (or if using LVM, apply to the LV in /dev/VolGroup00/)

    and then the OP's edit to fstab to add option 'data=ordered' and grub.conf to specify 'rootflags=data=journal' will work.

Similar Threads

  1. Replies: 7
    Last Post: 5th February 2013, 12:00 PM
  2. Replies: 0
    Last Post: 30th July 2009, 10:27 PM
  3. Replies: 5
    Last Post: 7th May 2009, 08:59 AM
  4. Replies: 0
    Last Post: 13th February 2009, 12:00 AM
  5. How to mount ext3 file system in RAM?
    By viklahan in forum Using Fedora
    Replies: 4
    Last Post: 23rd October 2008, 11:57 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •