LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   journaling filesystems and SD cards (https://www.linuxquestions.org/questions/linux-hardware-18/journaling-filesystems-and-sd-cards-4175477899/)

Gullible Jones 09-20-2013 12:32 PM

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?

jefro 09-20-2013 05:47 PM

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.

rokytnji 09-21-2013 09:19 AM

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.

Gullible Jones 09-22-2013 07:04 AM

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.

jefro 09-22-2013 04:34 PM

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.

Gullible Jones 09-23-2013 08:41 AM

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.

jefro 09-23-2013 07:11 PM

A well hidden message in it?


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


All times are GMT -5. The time now is 08:38 PM.