Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mounting ext3 with data=writeback for root partition?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
mdpye
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2002
Posts: 102
Location: Nottingham, England

PostPosted: Thu Jul 18, 2002 1:59 pm    Post subject: Mounting ext3 with data=writeback for root partition? Reply with quote

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. :roll:

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
View user's profile Send private message
mdpye
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2002
Posts: 102
Location: Nottingham, England

PostPosted: Thu Jul 18, 2002 3:18 pm    Post subject: Reply with quote

Found it:

rootflags=data=writeback

passed to the kernel is what I needed.
_________________
Cheers, MP
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Thu Jul 18, 2002 3:45 pm    Post subject: Reply with quote

Cool! I was actually looking for that too.
Back to top
View user's profile Send private message
mdpye
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2002
Posts: 102
Location: Nottingham, England

PostPosted: Thu Jul 18, 2002 4:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
swingarm
l33t
l33t


Joined: 08 Jun 2002
Posts: 627
Location: Northern Colorado

PostPosted: Thu Jul 18, 2002 6:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
mdpye
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2002
Posts: 102
Location: Nottingham, England

PostPosted: Fri Jul 19, 2002 9:32 am    Post subject: Reply with quote

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
View user's profile Send private message
CoronaLover
Retired Dev
Retired Dev


Joined: 20 Jun 2002
Posts: 163
Location: Rosh-ha'ayin, Israel

PostPosted: Fri Jul 19, 2002 11:25 am    Post subject: Reply with quote

10x 10x 10x
Back to top
View user's profile Send private message
mdpye
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2002
Posts: 102
Location: Nottingham, England

PostPosted: Fri Jul 19, 2002 4:36 pm    Post subject: Reply with quote

CoronaLover wrote:
10x 10x 10x


Eh?
_________________
Cheers, MP
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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