我最近使用 Gparted 从实时 CD 更改了包含 Ubuntu 安装的分区的大小。我还将其从一个地方移动到另一个地方。这是我第一次尝试,第一次尝试时我点击了取消按钮。第二次尝试时我完成了任务。但现在我看到“计算机”文件夹的大小缩小了 2GB。现在我想知道系统文件是否正常,因为我之前已经从主文件夹备份了我的文件。我该怎么做?
一些信息:
在 /var/log/syslog 中发现相关错误
(AE_ERROR); disabling ASPM [ 12.287674] EXT4-fs (sda3): re-mounted. Opts: errors=remount-ro [ 40.663974] quiet_error: 150 callbacks suppressed
[ 40.663979] Buffer I/O error on device sdb, logical block 1
[ 40.663984] Buffer I/O error on device sdb, logical block 1
[ 40.663991] Buffer I/O error on device sdb, logical block 1
[ 40.664026] Buffer I/O error on device sdb, logical block 0
[ 40.664032] Buffer I/O error on device sdb, logical block 0
[ 40.664038] Buffer I/O error on device sdb, logical block 0
[ 40.664044] Buffer I/O error on device sdb, logical block 0
[ 40.664050] Buffer I/O error on device sdb, logical block 0
[ 40.664056] Buffer I/O error on device sdb, logical block 0
[ 40.664062] Buffer I/O error on device sdb, logical block 0
[1401354046.120788] [nm-dns-dnsmasq.c:396] update(): dnsmasq owner not found on bus: Could not get owner of name 'org.freedesktop.NetworkManager.dnsmasq': no such name
etc/fstab 的内容
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda3 during installation
# UUID=9bf1abba-55b4-466f-8f63-f0c2a94534b2 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=5110-FE96 /boot/efi vfat defaults 0 1
# swap was on /dev/sda2 during installation
UUID=f16a051b-9c39-4d67-9bbc-48ba711004ed none swap sw 0 0
“mount”命令的输出
/dev/sda3 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /sys/firmware/efi/efivars type efivarfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
/dev/sda1 on /boot/efi type vfat (rw)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=likhon)
答案1
首先检查/var/log/syslog
是否有任何错误。如果您发现任何具体错误,请在此处发布。
pvdisplay
如果您使用基于 lvm 的安装,请检查、vgdisplay
和的输出lvdisplay
并验证它们;或者使用fdisk
/parted
命令。
如果您怀疑任何数据丢失或损坏,您可以fsck
从救援模式运行修改后的分区。