国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統(tǒng) > Linux > 正文

linux中掛載硬盤報(bào)錯(cuò)youmustspecifythefilesystemtype

2024-08-27 23:55:36
字體:
供稿:網(wǎng)友
  linux中掛載硬盤報(bào)錯(cuò)提示 you must specify the filesystem type,意思是告訴我們必須要指定一個(gè)系統(tǒng)分區(qū)了,由于自己能看懂幾句英文,所以解決起來也方便了,下面一起來整個(gè)操作流程吧.
 
  今天自己的虛擬機(jī)磁盤用完成,于是想加一磁盤,當(dāng)掛載時(shí)發(fā)現(xiàn)報(bào)錯(cuò)you must specify the filesystem type,注,我的系統(tǒng)環(huán)境是lcentos6.3裝在virtualbox的虛擬機(jī).
 
  原來是因?yàn)樵摯疟P沒有格式分區(qū)導(dǎo)致的于是有了以下操作.
 
  1)先查看一下當(dāng)前的系統(tǒng)情況,新加的盤是sdb,代碼如下:
 
  [root@test ~]# lsblk
  NAME                        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
  sr0                          11:0    1  1024M  0 rom   
  sda                           8:0    0     8G  0 disk  
  ├─sda1                        8:1    0   500M  0 part /boot
  └─sda2                        8:2    0   7.5G  0 part  
    ├─VolGroup-lv_root (dm-0) 253:0    0   6.6G  0 lvm  /
    └─VolGroup-lv_swap (dm-1) 253:1    0   992M  0 lvm  [SWAP]
  sdb                           8:16   0     8G  0 disk
  2)嘗試掛載,報(bào)錯(cuò),代碼如下:
 
  [root@test ~]# mount /dev/sdb /disk
  mount: you must specify the filesystem type
  3)格式化該磁盤,代碼如下:
 
  [root@test ~]# mkfs.ext3 /dev/sdb  
  mke2fs 1.41.12 (17-May-2010)
  /dev/sdb is entire device, not just one partition!
  無論如何也要繼續(xù)? (y,n) y
 
  文件系統(tǒng)標(biāo)簽=
 
  操作系統(tǒng):Linux
 
  塊大小=4096 (log=2)
 
  分塊大小=4096 (log=2)
 
  Stride=0 blocks, Stripe width=0 blocks
  524288 inodes, 2097152 blocks
  104857 blocks (5.00%) reserved for the super user
  第一個(gè)數(shù)據(jù)塊=0.
 
  Maximum filesystem blocks=2147483648
  64 block groups
  32768 blocks per group, 32768 fragments per group
  8192 inodes per group --phpfensi.com
  Superblock backups stored on blocks:  
      32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
  正在寫入inode表:完成.
 
  Creating journal (32768 blocks): 完成
  Writing superblocks and filesystem accounting information: 完成
  
  This filesystem will be automatically checked every 27 mounts or
  180 days, whichever comes first.  Use tune2fs -c or -i to override.
  [root@test ~]#
  4)掛載成功,代碼如下:
 
  [root@test ~]# cd /disk/
  [root@test disk]# ls
  lost+found
  5)增加開機(jī)啟動(dòng),代碼如下:
 
  tmpfs                   /dev/shm                tmpfs   defaults        0 0
  devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
  sysfs                   /sys                    sysfs   defaults        0 0
  proc                    /proc                   proc    defaults        0 0
  /dev/sdb                /disk                   ext3    defaults        0 0。
 

(編輯:武林網(wǎng))

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 噶尔县| 商丘市| 长春市| 留坝县| 仙桃市| 东丽区| 海伦市| 平远县| 东乡族自治县| 关岭| 佛学| 中山市| 浑源县| 乐平市| 辽宁省| 策勒县| 罗城| 东宁县| 通海县| 岳普湖县| 同江市| 马关县| 都江堰市| 叙永县| 宜城市| 彭阳县| 石渠县| 泰来县| 任丘市| 宁化县| 呈贡县| 临湘市| 天峻县| 蛟河市| 开封市| 盱眙县| 渝北区| 龙泉市| 麦盖提县| 沂南县| 白玉县|