我在 64Gb 闪存卡上安装了 ubuntu 14.04。不直播而我不是访客用户,100% 确定。我不记得我是如何创建它的,但是文件系统是 ext4,我没有交换。它工作正常,直到有一天所有保存的文件在定期重启后都被删除。所以系统行为看起来像 liveUSB。我无法永久保存/删除任何文件。每次重启后,所有新文件都会被删除。我之前遇到过“只读文件系统”的一些问题(文件系统自发变为只读),但简单的重启就足以修复它。我试过了fsck
,但我不确定合适的选择。欢迎任何建议或配置请求。谢谢!
df
输出:
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
输出
NAME FSTYPE LABEL MOUNTPOINT
fd0
sda
└─sda1 ext4 /
sr0
sudo lsblk -m
输出:
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
输出
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