Grub 功能表加上密碼

為了防止使用者誤觸 Clonezilla live 的還原選單,所以要在 Clonezilla live 的還原選單上加上密碼。
參考網頁:24.3. GRUB 2 Password Protection
修改方式:
1. 以 Linux Live CD 開機,這裡以 EzGO 12 xfce 為例
    選擇 在不需要安裝的情況下試用 ezgo 12(T)
[@more@]2. 開啟 終端機模擬程式

3. 切換成 root 身份
    $ sudo su –

4. 建立掛載目錄及掛載 Clonezilla 所在分割區
    # mkdir /mnt/sda3;mount /dev/sda3 /mnt/sda3

5. 修改 Grub 設定檔
     # vim /mnt/sda3/EFI/boot/grub.conf
     加上三個部份
     第一部份,設定使用者及密碼
     set superusers=”User”
     password User 123456
     第二部份,Windows 7 不用輸入使用者及密碼
     在 menuentry 加上 –unrestricted
     第三部分,Clonezilla live 加上使用者及密碼的選項
     在 menuentry 加上 –users User

6. 修改完畢後重新開機,要使用 Clonezilla live 做還原時,要輸入使用者及密碼