WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Risk of data loss by changing from ext4 to ext2 for an USB?  (Read 3163 times)

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
Risk of data loss by changing from ext4 to ext2 for an USB?
« on: February 26, 2012, 07:50:48 AM »
hello,
I had choosen the ext4 format for a boot USB of my P4 HP DC7100 (with a full TCL install on it): this usb is only read (or few writing on it due to TC updates or other TC testfiles).
So far I am aware, ext4 would accelerate the wear of the memory stick in case of writing phase; ext2 would be a more appropriate format in case the USB stick is written. Correct?
Regarding reading speed: is ext4 or ext2 better?
So, I am thinking in changing to ext2 (because it is a boot USB, and everything run in RAM, this is probably not mandatory only due to the wear).
Last question: If I use GPARTED for changing from ext4 to ext2, it would delete all data?
Thanks.
And enjoy your week-end.
« Last Edit: February 26, 2012, 08:51:28 AM by floppy »
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Risk of data loss by changing from ext4 to ext2 for an USB?
« Reply #1 on: February 26, 2012, 08:55:34 AM »
Keep .ext4 Running system on ext2 which is not a journaling file system you are risking a lot. Journalig will not significantly reduce lifetime.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline oeai

  • Newbie
  • *
  • Posts: 22
  • 0 be 1 can 0 be if_0_then_1_else_0
    • Symbiants
Re: Risk of data loss by changing from ext4 to ext2 for an USB?
« Reply #2 on: July 21, 2015, 12:29:59 PM »
i got ext4-fs errors in ext2, maybe you're right and that's the cause of DOS and flash hard-format, that i've just did, will try with ext4 (it was ext3 before)
symbiants from space

Offline oeai

  • Newbie
  • *
  • Posts: 22
  • 0 be 1 can 0 be if_0_then_1_else_0
    • Symbiants
Re: Risk of data loss by changing from ext4 to ext2 for an USB?
« Reply #3 on: July 21, 2015, 10:19:31 PM »
i found that ext2 ext3 are not included into kernel config in 6.3
symbiants from space

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Risk of data loss by changing from ext4 to ext2 for an USB?
« Reply #4 on: July 22, 2015, 12:36:18 AM »

i found that ext2 ext3 are not included into kernel config in 6.3

According to kernel config ext2 and ext3 are handled by ext4 module.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline core-user

  • Full Member
  • ***
  • Posts: 191
  • Linux since 1999
Re: Risk of data loss by changing from ext4 to ext2 for an USB?
« Reply #5 on: July 22, 2015, 03:22:52 AM »
You can normally add the options noatime or relatime to your fstab entries to reduce writes to disk.
AMD, ARM, & Intel.

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: Risk of data loss by changing from ext4 to ext2 for an USB?
« Reply #6 on: July 22, 2015, 05:18:56 AM »
How to do this since fstab is autogenerated?
dCore user

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Risk of data loss by changing from ext4 to ext2 for an USB?
« Reply #7 on: July 22, 2015, 08:46:30 AM »
That is the default, so you don't need to.