亚洲一卡2卡3卡4卡乱码,qvod 欧美 日韩,天天摸天天碰天天添,最近更新中文字幕在线,久久国产成人免费网站

找軟件用軟件,就到華軍軟件園! 軟件發(fā)布 AI產(chǎn)品榜
所在位置: 首頁(yè) — 教程攻略 — 教程 — 電腦軟件教程  —  Linux使用M...

Linux使用Mkdir時(shí)提示cannot create directory‘test’怎么辦?

作者:GiuliaQ 日期:2017-05-23

  有遇到Linux使用Mkdir時(shí)提示cannot create directory‘test’這個(gè)問(wèn)題的用戶,就用小編為你提供的這個(gè)解決方法進(jìn)行解決吧,相信這種方法會(huì)對(duì)你有所幫助的。

Linux使用Mkdir時(shí)提示cannot create directory‘test’怎么辦?

  問(wèn)題現(xiàn)象:接監(jiān)控組人員反饋,在某主機(jī)opt上當(dāng)創(chuàng)建目錄時(shí),提示為只讀Read-only file system,不允許寫(xiě)入或刪除,根據(jù)以往經(jīng)驗(yàn)這種問(wèn)題有三種可能:

  1、掛載時(shí)未給予w權(quán)限;

  2、分區(qū)出現(xiàn)問(wèn)題,需要fsck進(jìn)行修復(fù)處理;

  3、硬盤(pán)故障,需通過(guò)服務(wù)器原廠工具核實(shí)是否硬盤(pán)是否出現(xiàn)問(wèn)題,更換硬盤(pán)以免丟失數(shù)據(jù) 。

  注:有些人可能還會(huì)想到使用chattr 設(shè)置權(quán)限造成不能寫(xiě)和通過(guò)磁盤(pán)配額進(jìn)行配置,不過(guò)這兩種設(shè)置報(bào)錯(cuò)內(nèi)容和這個(gè)報(bào)錯(cuò)不同。

  解決方法:

  1、通過(guò)mount查看當(dāng)前參數(shù):

  # mount

  /dev/sda2 on / type ext3 (rw,acl,user_xattr)

  proc on /proc type proc (rw)

  sysfs on /sys type sysfs (rw)

  debugfs on /sys/kernel/debug type debugfs (rw)

  udev on /dev type tmpfs (rw)

  devpts on /dev/pts type devpts (rw,mode=0620,gid=5)

  /dev/sda5 on /boot type ext3 (rw,acl,user_xattr)

  /dev/sda9 on /home type ext3 (rw,acl,user_xattr)

  /dev/sda10 on /opt type ext3 (rw,acl,user_xattr)

  /dev/sda8 on /tmp type ext3 (rw,acl,user_xattr)

  /dev/sda6 on /usr type ext3 (rw,acl,user_xattr)

  /dev/sda7 on /var type ext3 (rw,acl,user_xattr)

  通過(guò)查看可以發(fā)現(xiàn),當(dāng)前掛載的權(quán)限是rw權(quán)限。

  2、fsck修復(fù)

 ?。踨oot@361way.com ~]# umount /opt/

  umount: /opt: device is busy

  umount: /opt: device is busy

 ?。踨oot@361way.com ~]# fuser -m /dev/sda10

  /dev/sda10: 11334

  [root@361way.com ~]# ps auxww|grep 11334

  apache 11334 0.0 0.3 14288 6404 ? S 09:47 0:00 /usr/sbin/httpd -k start -DSSL

  root 12184 0.0 0.0 4128 684 pts/0 R+ 09:50 0:00 grep 11334

 ?。踨oot@361way.com ~]# service httpd stop

  Stopping httpd: [ OK ]

  [root@361way.com ~]# umount /opt/

 ?。踨oot@361way.com ~]# fsck -V -a /dev/sda10

  fsck 1.39 (29-May-2006)

 ?。?sbin/fsck.ext3 (1) -- /opt] fsck.ext3 -a /dev/sda10

  /opt: recovering journal

  /opt: clean, 1890281/20971520 files, 6941812/20970849 blocks

  3、硬盤(pán)檢測(cè)

  這個(gè)可以根據(jù)OEM廠商提供的針對(duì)相關(guān)系統(tǒng)的工具而定,常用的如HP的hpacucli 、DELL的delldset、ATAE的disk_info_test等。

  

相關(guān)文章