View previous topic :: View next topic |
Author |
Message |
mdpye Tux's lil' helper
Joined: 18 Apr 2002 Posts: 102 Location: Nottingham, England
|
Posted: Thu Jul 18, 2002 1:59 pm Post subject: Mounting ext3 with data=writeback for root partition? |
|
|
I have moved to ext3 and would like to use data=writeback on my root filesystem for better performance, but as it is mounted data=ordered by the kernel at boot up and you can't change the mode on remount, just putting data=writeback in /etc/fstab is not going to work.
How can I pass mount options to the kernel? I've tried appending a few likely looking strings using lilo, but no joy so far. Can anyone help? _________________ Cheers, MP |
|
Back to top |
|
|
mdpye Tux's lil' helper
Joined: 18 Apr 2002 Posts: 102 Location: Nottingham, England
|
Posted: Thu Jul 18, 2002 3:18 pm Post subject: |
|
|
Found it:
rootflags=data=writeback
passed to the kernel is what I needed. _________________ Cheers, MP |
|
Back to top |
|
|
BradN Advocate
Joined: 19 Apr 2002 Posts: 2391 Location: Wisconsin (USA)
|
Posted: Thu Jul 18, 2002 3:45 pm Post subject: |
|
|
Cool! I was actually looking for that too. |
|
Back to top |
|
|
mdpye Tux's lil' helper
Joined: 18 Apr 2002 Posts: 102 Location: Nottingham, England
|
Posted: Thu Jul 18, 2002 4:28 pm Post subject: |
|
|
With most people using gentoo on their desktop machines, I'm sure writeback would be the most popular journal type for ext3, as it offers the same level of protection as reiserfs and xfs, so I think I'll drop a note at bugs.gentoo.org to have it included in the documentation.
For now I'll drop it in hints and tips... _________________ Cheers, MP |
|
Back to top |
|
|
swingarm l33t
Joined: 08 Jun 2002 Posts: 627 Location: Northern Colorado
|
Posted: Thu Jul 18, 2002 6:06 pm Post subject: |
|
|
Newbie type question.
Do I put that under the opts category for the partition I want to use it on? For example:
/dev/sda3 / noatime,rootflags=data=writeback
Thanks,
Kent |
|
Back to top |
|
|
mdpye Tux's lil' helper
Joined: 18 Apr 2002 Posts: 102 Location: Nottingham, England
|
Posted: Fri Jul 19, 2002 9:32 am Post subject: |
|
|
Only if that partition is not your root partition, and then it would read
/dev/sda3 /home ext3 noatime,data=writeback 0 0
For your root ("/") partition, the one shown below you must use your boot loader to pass the option to the kernel. Now I am an old lilo fan, and I have no experience with grub, but I add
append = "rootflags=data=writeback"
to my kernel image in /etc/lilo.conf.
...googling...
OK, the Gentoo FAQ suggests that to pass options to the kernel with grub, you can simply write than after the kernel image, so the line will look something like
kernel /boot/bzImage rootflags=data=writeback
Hope that helps. _________________ Cheers, MP |
|
Back to top |
|
|
CoronaLover Retired Dev
Joined: 20 Jun 2002 Posts: 163 Location: Rosh-ha'ayin, Israel
|
Posted: Fri Jul 19, 2002 11:25 am Post subject: |
|
|
10x 10x 10x |
|
Back to top |
|
|
mdpye Tux's lil' helper
Joined: 18 Apr 2002 Posts: 102 Location: Nottingham, England
|
Posted: Fri Jul 19, 2002 4:36 pm Post subject: |
|
|
CoronaLover wrote: | 10x 10x 10x |
Eh? _________________ Cheers, MP |
|
Back to top |
|
|
|