在mdk2008.1中,重新格式化分割區後不能開機


是/etc/fstab中,用UUID來表示磁碟分割區的關係

vi /etc/fstab
# Entry for /dev/sda1 :
UUID=0078c170-c6c3-4b93-96e6-bf7423a7cfb5 / ext3 defaults 1 1
# Entry for /dev/sdb1 :
UUID=5bd21a28-0041-4411-9b6e-298976a3c330 /backup ext3 defaults 1 2
# Entry for /dev/sda6 :
UUID=2a010233-46e1-40d7-b29e-1d95bb9661c6 /home ext3 defaults 1 2
none /proc proc defaults 0 0
# Entry for /dev/sda5 :
UUID=e3850b02-9ae5-4f4e-88ea-243c69f9d6ad swap swap defaults 0 0


查詢硬碟的UUID

ls /dev/disk/by-uuid/ -lh
lrwxrwxrwx 1 root root 10 2009-02-26 10:20 0078c170-c6c3-4b93-96e6-bf7423a7cfb5 -> ../../sda1
lrwxrwxrwx 1 root root 10 2009-02-26 10:20 2a010233-46e1-40d7-b29e-1d95bb9661c6 -> ../../sda6
lrwxrwxrwx 1 root root 10 2009-02-26 10:20 5bd21a28-0041-4411-9b6e-298976a3c330 -> ../../sdb1
lrwxrwxrwx 1 root root 10 2009-02-26 10:20 e3850b02-9ae5-4f4e-88ea-243c69f9d6ad -> ../../sda5

參考資料:http://b2d.phc.edu.tw/modules/tadbook2/view.php?book_sn=32&bdsn=1201

留言

熱門文章