LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-20-2013, 12:32 PM   #1
Gullible Jones
Member
 
Registered: Apr 2011
Posts: 142

Rep: Reputation: 10
journaling filesystems and SD cards


At the moment I am using a 16 GB class 4 SD card as the main drive on my netbook. It's formatted with ext4; in an effort to reduce wear and improve performance, I disabled the filesystem's journal. As far as performance and battery life go, that works extremely well.

However, I'm a little concerned about filesystem integrity without a journal. fsck times shouldn't be a problem, but how likely is irrepairable filesystem corruption in the event of an improper shutdown?

I would expect non-journaling filesystems to be safer than on a hard drive (since there's no hardware write cache). But if so, how much safer?
 
Old 09-20-2013, 05:47 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
Make a sample build. Then at various stages of work and non-work hit the power and see how bad it can get or not.
 
Old 09-21-2013, 09:19 AM   #3
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,112
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Quote:
However, I'm a little concerned about filesystem integrity without a journal. fsck times shouldn't be a problem, but how likely is irrepairable filesystem corruption in the event of an improper shutdown?
Having been in your shoes but using a ext2 file system and Puppeee as a frugal install.

On improper shutdown. The card would fill with writes and be unbootable. I could fix this though by leaving the card in. Booting any other Linux distro with Gparted on it via another
pendrive. Open the sd card in gparted. Unmount it first. Then right click and pick check
and then apply. When done. Shutdown and pull the pendrive. Reboot into my fixed Puppeee sd
card. Nothing was lost.
 
Old 09-22-2013, 07:04 AM   #4
Gullible Jones
Member
 
Registered: Apr 2011
Posts: 142

Original Poster
Rep: Reputation: 10
Thanks... The answer so far seems to be that it's reasonably safe, provided you can get fsck to work (or fsck from a live medium). Which is cool, because even a cheapo SD card gives very good performance.

Edit: actually it turns out you can use a small journal (less than 16 MB or thereabouts) without serious performance impact, so that's what I'll do, in the interest of stability.

Last edited by Gullible Jones; 09-22-2013 at 07:10 AM.
 
Old 09-22-2013, 04:34 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
Not sure I suggested reasonably safe. Test it for yourself and decide.

Safe is common backups, ups and any other feature to include improved filesystems.
 
Old 09-23-2013, 08:41 AM   #6
Gullible Jones
Member
 
Registered: Apr 2011
Posts: 142

Original Poster
Rep: Reputation: 10
Yeah, I got some nasty filesystem errors after suspending, and had to run fsck from a live CD. Journaling it is.

Edit: no, journaling doesn't make a difference, and the filesystem is actually clean and intact. I think this is some kind of issue with the mmc drivers that crops up on suspend.

Last edited by Gullible Jones; 09-23-2013 at 08:48 AM.
 
Old 09-23-2013, 07:11 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
A well hidden message in it?


Suspend is not power off. Suspend should never mess up the filesystem no matter what it is.

Last edited by jefro; 09-23-2013 at 07:13 PM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Filesystems supported by the kernel (/proc/filesystems) gacanepa Linux - Newbie 5 08-22-2013 02:15 PM
Wear leveling, Compression and Journaling Filesystem for SD cards romagnolo Linux - General 4 03-25-2013 04:51 PM
LXer: This week at LWN: Barriers and journaling filesystems LXer Syndicated Linux News 0 06-02-2008 01:40 PM
Checking consistency of journaling filesystems Darktyco Linux - Hardware 5 08-09-2004 08:18 PM
Journaling Filesystems for Linux jeremy Linux - General 3 12-04-2003 06:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration