其他分享
首页 > 其他分享> > 记一次跟目录报只读权限的问题 /dev/sda3 on / type ext4 (ro,relatime,data=ordered)

记一次跟目录报只读权限的问题 /dev/sda3 on / type ext4 (ro,relatime,data=ordered)

作者:互联网

tqxd#  mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=8115120k,nr_inodes=2028780,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=1629448k,mode=755)


/dev/sda3 on / type ext4 (ro,relatime,data=ordered)


securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=38,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=19483)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/sda2 on /boot type ext4 (rw,relatime,data=ordered)
/dev/sda1 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/sdb1 on /data type ext4 (rw,relatime,data=ordered)
lxcfs on /var/lib/lxcfs type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1629444k,mode=700,uid=1000,gid=1000)
tqxd# mount -o remount,rw /
mount: /: mount point not mounted or bad option.
tqxd# mount -o remount,rw /
mount: /: mount point not mounted or bad option.

分区修复

tqxd# fsck -fvy /
fsck from util-linux 2.31.1
e2fsck 1.44.1 (24-Mar-2018)
Pass 1: Checking inodes, blocks, and sizes
Inodes that were part of a corrupted orphan linked list found.  Fix? yes

Inode 524314 was part of the orphaned inode list.  FIXED.
Inode 1053613 extent tree (at level 1) could be shorter.  Fix? yes

Deleted inode 3691939 has zero dtime.  Fix? yes

Inode 3691940 was part of the orphaned inode list.  FIXED.
Inode 3691941 was part of the orphaned inode list.  FIXED.
Inode 3691942 was part of the orphaned inode list.  FIXED.
Inode 3691943 was part of the orphaned inode list.  FIXED.
Inode 4357253 was part of the orphaned inode list.  FIXED.
Inode 4357263 was part of the orphaned inode list.  FIXED.
Inode 4357264 was part of the orphaned inode list.  FIXED.
Inode 4357265 was part of the orphaned inode list.  FIXED.
Inode 4852152 was part of the orphaned inode list.  FIXED.
Inode 4877346 was part of the orphaned inode list.  FIXED.
Inode 4891372 was part of the orphaned inode list.  FIXED.
Inode 4891373 was part of the orphaned inode list.  FIXED.
Inode 6570718 was part of the orphaned inode list.  FIXED.
Inode 6570720 was part of the orphaned inode list.  FIXED.
Pass 1E: Optimizing extent trees
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Block bitmap differences:  -(8081408--8089599) -(8108044--8109864) -(9250816--9256959) -(9279488--9281535) -(9291776--9293823) -(9297920--9306111) -(9404416--9406463) -(9746432--9748479) -(9768960--9785343) -(9791488--9793535) -(9799680--9801727) -(9805031--9805545) -(9806848--9807785) -(9807872--9822207) -(9830912--9831420) -(9834496--9838591) -(9842688--9844735) -(9854976--9857023) -(9859072--9863167) -(9893888--9906175) -(9908224--9909158) -(10776576--10778623) -(10817536--10819199) -17366057 -17366064 -19408856 -(19411194--19411195) -(19414031--19414032)
Fix? yes

Free blocks count wrong for group #246 (11168, counted=19360).
Fix? yes

Free blocks count wrong for group #247 (24404, counted=26225).
Fix? yes

Free blocks count wrong for group #282 (1679, counted=7823).
Fix? yes

Free blocks count wrong for group #283 (3030, counted=15318).
Fix? yes

Free blocks count wrong for group #287 (1741, counted=3789).
Fix? yes

Free blocks count wrong for group #297 (7399, counted=9447).
Fix? yes

Free blocks count wrong for group #298 (8123, counted=26555).
Fix? yes

Free blocks count wrong for group #299 (3667, counted=21504).
Fix? yes

Free blocks count wrong for group #300 (678, counted=13475).
Fix? yes

Free blocks count wrong for group #301 (1695, counted=3743).
Fix? yes

Free blocks count wrong for group #302 (21589, counted=32764).
Fix? yes

Free blocks count wrong for group #328 (27539, counted=29587).
Fix? yes

Free blocks count wrong for group #330 (16000, counted=17664).
Fix? yes

Free blocks count wrong for group #529 (1, counted=3).
Fix? yes

Free blocks count wrong for group #592 (18679, counted=18684).
Fix? yes

Free blocks count wrong (15591725, counted=15690274).
Fix? yes

Inode bitmap differences:  -524314 -(3691939--3691943) -4357253 -(4357263--4357265) -4852152 -4877346 -(4891372--4891373) -6570718 -6570720
Fix? yes

Free inodes count wrong for group #64 (2, counted=3).
Fix? yes

Free inodes count wrong for group #450 (32, counted=37).
Fix? yes

Free inodes count wrong for group #531 (665, counted=669).
Fix? yes

Free inodes count wrong for group #592 (0, counted=1).
Fix? yes

Directories count wrong for group #592 (1748, counted=1747).
Fix? yes

Free inodes count wrong for group #595 (1813, counted=1814).
Fix? yes

Free inodes count wrong for group #597 (7573, counted=7575).
Fix? yes

Directories count wrong for group #597 (460, counted=458).
Fix? yes

Free inodes count wrong for group #802 (122, counted=124).
Fix? yes

Free inodes count wrong (5244971, counted=5244987).
Fix? yes


/dev/sda3: ***** FILE SYSTEM WAS MODIFIED *****
/dev/sda3: ***** REBOOT SYSTEM *****

     1988549 inodes used (27.49%, out of 7233536)
        2738 non-contiguous files (0.1%)
         644 non-contiguous directories (0.0%)
             # of inodes with ind/dind/tind blocks: 0/0/0
             Extent depth histogram: 1911067/407/1
    13221086 blocks used (45.73%, out of 28911360)
           0 bad blocks
           2 large files

     1611223 regular files
      297080 directories
          30 character device files
           1 block device file
           0 fifos
        3162 links
       80201 symbolic links (77030 fast symbolic links)
           5 sockets
------------
     1991702 files

重新已读写的方式挂载

tqxd#  mount -o rw,remount /
tqxd# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            7.8G     0  7.8G   0% /dev
tmpfs           1.6G  976K  1.6G   1% /run
/dev/sda3       109G   49G   54G  48% /
tmpfs           7.8G     0  7.8G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           7.8G     0  7.8G   0% /sys/fs/cgroup
/dev/sda2       976M  216M  694M  24% /boot
/dev/sda1       511M  6.1M  505M   2% /boot/efi
/dev/sdb1       916G   99G  771G  12% /data
tmpfs           1.6G     0  1.6G   0% /run/user/1000

再一次检验

tqxd# mount 
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=8115120k,nr_inodes=2028780,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=1629448k,mode=755)


/dev/sda3 on / type ext4 (rw,relatime,data=ordered)


securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=38,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=19483)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/sda2 on /boot type ext4 (rw,relatime,data=ordered)
/dev/sda1 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/sdb1 on /data type ext4 (rw,relatime,data=ordered)
lxcfs on /var/lib/lxcfs type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1629444k,mode=700,uid=1000,gid=1000)

 

标签:relatime,rw,ordered,nosuid,cgroup,ro,type,nodev
来源: https://blog.csdn.net/baidu_38432732/article/details/117035488