shred on ext3 partition - journaled or not?
I've an ext3 partition /dev/sda7 and I want to know with what journaling options this was mounted: (because I want to use shred on it)
fstab entry: Code:
UUID=...... /media/sda7 ext3 defaults 0 2 Code:
/dev/sda7 /media/sda7 ext3 rw 0 0 Code:
Filesystem features: has_journal ext_attr resize_inode dir_index More importantly Is there any way to verify what journaling mode is used on this (or any other) partition? The reason I ask is that shred (man shred) is not reliable on data=journal mode. |
My experience is that shred works fine on partitions with journaling. My understanding is that it doesn't work well on files within journaled partitions.
So I just unmount the partition and then do shred -z -v -n 3 /dev/sda7. I've tried recovery using foremost and photorec at different times and wasn't able to get anything back. Though that's hardly a scientific guarantee... :D |
Default ext3 journaling mode is ordered,meaning that it only log changes to filesystem metadata but flushes file data updates to disk before making changes to filesystem metadata.If you haven't changed default settings then that's the mode you have.All three modes can be activated and deactivated in /etc/fstab entry for ext3 filesystem.To change it do,for example;
Code:
/dev/hda1 /opt ext3 data=writeback 1 0 |
Quote:
Thanks |
Quote:
|
"grep -i data= /proc/mounts"
|
Solved
Quote:
|
All times are GMT -5. The time now is 04:16 PM. |