Mount: you must specify the filesystem type
Mount: you must specify the filesystem type
問題描述
[root@test1 ~]# mount /dev/sdb2 /var/lib/mysql/
mount: you must specify the filesystem type
問題原因:檢視硬碟系統,未格式化磁碟/dev/sdb2
問題解決:格式化成ext3檔案系統
[root@test1 ~]# mkfs.ext3 /dev/sdb2
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
1048576 inodes, 4194300 blocks
209715 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
128 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000
Writing inode tables: done
Creating journal (32768 blocks):
done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 38 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
掛載成功:
[root@test1 ~]# mount /dev/sdb2 /var/lib/mysql/
[root@test1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-LogVol01
22G 19G 2.0G 91% /
tmpfs 520M 0 520M 0% /dev/shm
/dev/sda1 485M 33M 427M 8% /boot
/dev/sdb2 16G 173M 15G 2% /var/lib/mysql
[root@test1 ~]#
問題描述
[root@test1 ~]# mount /dev/sdb2 /var/lib/mysql/
mount: you must specify the filesystem type
問題原因:檢視硬碟系統,未格式化磁碟/dev/sdb2
問題解決:格式化成ext3檔案系統
[root@test1 ~]# mkfs.ext3 /dev/sdb2
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
1048576 inodes, 4194300 blocks
209715 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
128 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000
Writing inode tables: done
Creating journal (32768 blocks):
done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 38 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
掛載成功:
[root@test1 ~]# mount /dev/sdb2 /var/lib/mysql/
[root@test1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-LogVol01
22G 19G 2.0G 91% /
tmpfs 520M 0 520M 0% /dev/shm
/dev/sda1 485M 33M 427M 8% /boot
/dev/sdb2 16G 173M 15G 2% /var/lib/mysql
[root@test1 ~]#
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29500582/viewspace-1369392/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- You can‘t specify target table ‘Person‘ for update in FROM clause
- The connection to the server 10.10.0.2:6443 was refused - did you specify the right host or port?Server
- mysql中You can’t specify target table for update in FROM clMySql
- before install octave package you must be install gcc-fortranPackageGC
- fuse: mountpoint is not empty fuse: if you are sure this is safe, use the ‘nonempty‘ mount optionNone
- 區塊鏈概念 That You Must Know 第四期(3)區塊鏈
- npm報錯 TypeError [ERR_INVALID_ARG_TYPE]: The “path“ argument must be of type string.Received undefineNPMError
- PropertyReferenceException: No property courseId found for type CoursePic! Did you mean ‘courseid‘?Exception
- MySQL:You must reset your password using ALTER USER statement before executing this statement.MySql
- PHP Filesystem 簡介PHP
- UE5 打包安卓後出現permission required you must approve this premission in app settings: storage彈窗安卓UIAPPREM
- Please specify (single) host string for connection:
- linux mountLinux
- 直接用 appium 可以連線真機,用 pycharm 執行指令碼時報錯 “'platformVersion' must be of type string”APPPyCharm指令碼Platform
- mount 的使用
- Are you sure you understand the responsive layout?
- 無法寫入檔案 Filesystem
- Flutter:VM snapshot must be valid. Check failed: vm. Must be able to initializeFlutterAI
- 掛載mount指令
- 使用 Laravel-filesystem-oss web 直傳LaravelWeb
- go-filesystem 檔案管理器Go
- find: paths must precede expression:Express
- [20230322]mount systemd.txt
- mount 學習筆記筆記
- 磁碟掛載mount,umount
- cannot convert (type interface {}) to type int: need type assertion
- error initializing graphdriver: devmapper: Base Device UUID and Filesystem verifErrordevAPPUI
- Ubuntu mount命令用法詳解Ubuntu
- mount error(5): Input/output errorError
- Linux命令之mount掛載Linux
- [20210418]ORA-14767 Cannot specify this interval with existing high bounds.txt
- Xamarin Essentials應用教程檔案系統FileSystem
- Qt QWidget Must construct a QApplication before a QWidgetQTStructAPP
- Property "visible" must be accessed with "$data.visible"
- HITSC_4_Data Type and Type Checking
- why you can be in netherland
- Best Wishes「兔」You!
- NFS mount results in "vmount: operation not permitted" errorNFSMITError
- 「擴充套件包」Laravel-filesystem-oss 2.0 釋出套件Laravel