I have ubuntu 14.04 installed on my 64Gb flash card. It is not live and I am not guest user, 100% sure. I don't remember how exactly I created it, but filesystem is ext4 and I have no swap. It worked fine until the day all saved files have been removed after regular reboot. So system behavior look like liveUSB. I can save/delete no files permanently. All new files are erased after each reboot. I had some issues with 'read-only file system' before (file system spontaneously turns to read-only), but simple reboot was enough to fix it. I have tried fsck
, but I am not sure of appropriate options. Any suggestions or configuration requests are welcome. Thank you!
df
output:
Filesystem 1K-blocks Used Available Use% Mounted on
udev 2012448 4 2012444 1% /dev
tmpfs 404648 1312 403336 1% /run
/dev/sda1 60793916 52100200 5589104 91% /
none 4 0 4 0% /sys/fs/cgroup
tmpfs 65536 1272 64264 2% /tmp
none 5120 0 5120 0% /run/lock
none 2023236 292 2022944 1% /run/shm
none 102400 40 102360 1% /run/user
tmpfs 10240 780 9460 8% /var/log
sudo lsblk -f
output
NAME FSTYPE LABEL MOUNTPOINT
fd0
sda
└─sda1 ext4 /
sr0
sudo lsblk -m
output:
NAME SIZE OWNER GROUP MODE
fd0 4K root floppy brw-rw----
sda 58,9G root disk brw-rw----
└─sda1 58,9G root disk brw-rw----
sr0 1024M root cdrom brw-rw----
sudo e2fsck -cf /dev/sdb1
output
e2fsck 1.42.9 (4-Feb-2014)
Checking for bad blocks (read-only test): 0.00% done, 0:00 elapsed. (0/0/0 err
done
/dev/sdb1: Updating bad block inode.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sdb1: ***** FILE SYSTEM WAS MODIFIED *****
/dev/sdb1: 662079/3866624 files (0.5% non-contiguous), 13244484/15441152 blocks
df
,sudo lsblk -f
,sudo lsblk -m
– sudodus Jan 05 '17 at 16:35sudo e2fsck -cf /dev/sdx1
Now the drive letter x is a, but in the live system or another computer, it will probably be another letter, maybe b or c. Check that withlsblk
(as before). – sudodus Jan 05 '17 at 18:49e2fsck
output. It seems that my drive is not totally broken, is it? I don't completely understand whetherfsck
is used to repair the drive or just check it? – peremeykin Jan 05 '17 at 21:27df
. – sudodus Jan 05 '17 at 21:36sync
to flush the buffers. Wait until the prompt returns. And shutdown the computer after that. It should increase the chance that the files are really saved before things are turned off. – sudodus Jan 05 '17 at 21:39fsck
). Also I can't delete any files to free space. I have triedsync
earlier with no effect. – peremeykin Jan 05 '17 at 21:47