fuse-ext2
fuse-ext2 copied to clipboard
FS corruption?
I'm using fuse-ext2 on macosx to edit files on an SD card containing Raspbian (to boot a Raspberry Pi). I've put the SD card in and mounted it like this:
sudo -s
mkdir /Volumes/root
fuse-ext2 -o force /dev/disk2s2 /Volumes/root
I then edit some files on the SD card and then do this:
sync
umount /Volumes/root
and physically remove the card and put it back in the Raspberry Pi. However, the files I edited are corrupted - sometimes they are truncated, sometimes they are replaced with random binary content.
My ignorance of macosx is fairly profound - is there something else I'm supposed to do when unmounting the drive? Or have I found a bug in fuse-ext2 somewhere?
i can not verify your test, with git master build. I will try with raspbian sd card also.
dd if=/dev/zero of=fs.ext2 bs=4096 count=10000000
/usr/local/sbin/mkfs.ext4 fs.ext2
fuse-ext2 fs.ext2 /Volumes/alper -o rw+
cp -a test.files /Volumes/alper
umount /Volumes/alper
/usr/local/sbin/e2fsck fs.ext2