close

分割磁區這種事, 久了不用還是會忘記.

 

fdisk ,  p 看一下目前分配狀況, n建立新的partition , w 存檔離開.

有時會遇到錯誤訊息

The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.

 

用partprobe 指令解決就好了.


再來用mkfs -t 看你想format成什麼fs.

 

/etc/fstab 要寫UUID , UUID可以用這個指令查.

ls -l /dev/disk/by-uuid

lrwxrwxrwx 1 root root 10 Nov  2 15:53 67a94b14-4825-43af-a42b-06d53bda5263 -> ../../sda3
lrwxrwxrwx 1 root root 10 Nov  2 15:37 f6efce91-7d5e-4b7b-8bd2-241b1a2eee95 -> ../../sda2
lrwxrwxrwx 1 root root 10 Nov  2 15:37 f92a662f-b42f-40bb-9ad5-4f431504b2d9 -> ../../sda1

 

arrow
arrow
    全站熱搜

    mool 發表在 痞客邦 留言(0) 人氣()