• sudo fdisk /dev/sdb
    切割 partition
  • sudo mkfs.ext4 /dev/sdb1
    格式化(有顯示 UUID)$ sudo mkfs.ext4 /dev/sdb1 mke2fs 1.42.12 (29-Aug-2014) Creating filesystem with 488378390 4k blocks and 122101760 inodes Filesystem UUID: 40cd86ca-dd95-40fe-9fdf-ac2243b91d9c Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 102400000, 214990848 Allocating group tables: done Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done
  • sudo vi /etc/fstab
    編輯 fstab 加上下列文字UUID=40cd86ca-dd95-40fe-9fdf-ac2243b91d9c /data ext4 errors=remount-ro 0 2
  • sudo mkdir /data
    建立掛載目錄
  • sudo reboot
    重開機測試

參考資料

台南小新 發表在 痞客邦 PIXNET 留言(0) 人氣()