Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old April 7th, 2009   #1
latebeat
Just Give Me the Beans!
 
Join Date: Jul 2006
My beans are hidden!
ext4 option "data=writeback" makes breaks my system

Hi there,
I'm new to linux so please forgive me if my questions are kinda "naive" or stupid!
I've read an article on how to speed-up ext4 by using the following options when mounting:
Code:
defaults,data=writeback,noatime,barrier=0,extents,journal_checksum
This is just a test pc, not my main pc so I don't mind the instability issues or the consequences of enabling writeback cache.
All other options work fine however when I add data=writeback in the /etc/fstab for my root partition the system doesn't boot with the following error:
Code:
Could not start the X server due to some internal error. blabla, please restart gdm when the problem is corrected
Any ideas on how to correct this and enable writeback cache?
latebeat is offline   Reply With Quote
Old April 7th, 2009   #2
latebeat
Just Give Me the Beans!
 
Join Date: Jul 2006
My beans are hidden!
Re: ext4 option "data=writeback" makes breaks my system

wow can't believe how popular ubuntu forums are! In just a couple of hrs my thread went to page 6!
latebeat is offline   Reply With Quote
Old April 7th, 2009   #3
sdennie
Ubuntu Café con Leche
 
sdennie's Avatar
 
Join Date: Jan 2007
Location: Buenos Aires
Beans: 3,564
Ubuntu 8.04 Hardy Heron
Re: ext4 option "data=writeback" makes breaks my system

Are you sure the two are related? If you tried to mount root with the wrong journal mode, you have problems very early (much earlier than trying to start gdm). Or, possibly, you've already run into the infamous ext4 bug where it zeros out files on a crash and some needed file has been zeroed.
__________________
Don't try to make something "fast" until you are able to quantify "slow".
sdennie is offline   Reply With Quote
Old April 7th, 2009   #4
tinivole
Should have gone to University
 
tinivole's Avatar
 
Join Date: Jan 2008
Location: UK
My beans are hidden!
Ubuntu 9.04 Jaunty Jackalope
Re: ext4 option "data=writeback" makes breaks my system

I second sdennie, it looks more like you are having a display driver issue, than a filesystem issue.

Are you able to login via the console? Press Alt+Ctrl+F1 and login with your name and password.

Then type in:
Code:
sudo shutdown now
You'll reach a new screen with several options.

Choose the one that says "Fix X". Then select the "Continue with Normal Boot".

Regards
Iain
tinivole is online now   Reply With Quote
Old April 24th, 2009   #5
67GTA
Fresh Brewed Ubuntu
 
67GTA's Avatar
 
Join Date: Jan 2007
Location: Kentucky, USA
Beans: 1,521
Re: ext4 option "data=writeback" makes breaks my system

I can confirm this with fresh Jaunty install using ext4. I added data=writeback to fstab for my root partition, and got the same error at next boot. Removed using recovery mode with nano, and booted normally afterwards.
__________________
"The only thing necessary for the triumph of evil is for good men to do nothing." Edmund Burke
67GTA is offline   Reply With Quote
Old April 28th, 2009   #6
eurgain
Just Give Me the Beans!
 
Join Date: Mar 2005
Beans: 75
Re: ext4 option "data=writeback" makes breaks my system

The problem is, that you cannot just add data=writeback to your fstab entry and expect everything to work well.

If you look at your logs, you will see that the system complains when mounting the root fs because it cannot change the journaling model by itself. It mounts the fs read-only, and it just happens that it is X that is the first process in the normal bootup sequence that throws a complete wobbly on account of this.

You need to use tune2fs to change the journal if you really want to do this. With the root partition mounted readonly (e.g., after one of your failed boot attempts -- but MAKE SURE IT IS RO) do:

# tune2fs -o journal_data_writeback /dev/sdXY

(where sdXY is the partition of interest)

Then, reboot, and all should work.

Look at my /etc/fstab for a system based on an ssd and you will see that it can work.

Code:
eurgain@juno:~$ cat /etc/fstab
UUID=57db94de-99f2-227a-83fe-3ca75c4d7f6e /               ext4    noatime,barrier=0,data=writeback,nobh,commit=100,nouser_xattr 0       1
/swapfile	none	swap	sw	0	0
tmpfs   /var/log    tmpfs   defaults,noatime,size=5M   0   0

fuchsia:/home   /mnt/fuchsia/home       nfs     bg,retry=20 0 0
A
__________________
Time is life; speed saves it.
LJK Setright
eurgain is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:29 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry