硬件: 分割區及開機
Prev
Next

硬件: 分割區及開機

圖像顯示分割區編輯工具

  1. 安裝 qtparted 套件(請參閱

  2. 安裝完成後,在K選單系統QtParted打開 open QtParted.

檢查硬碟用量及檢視分割區列表

  1. K選單系統設定打開系統設定,選擇 進階標籤然後選擇 磁碟 & 檔案系統

  2. 每個分割區將在可用磁碟及檔案系統內列出及其詳細資料。

在終端機列出已掛載的裝置

  1. Open Konsole by going to KMenuSystemKonsole - Terminal Program.

  2. 要列出已掛載的裝置,輸以下列指令然後按輸入 鍵:

    mount

列表就會顯示裝置 (例如硬碟分割區)、掛載點 (用來存取檔案的位置)、檔案系統種類及掛載選項。

本項例子以hda2 硬碟分割區掛載為 '/',檔案系統為 ext3。掛載分割區有兩個選項:可以容許裝置讀取及寫入;另一個選項是出現任何錯誤下裝置將重新掛載為只能讀取。


/dev/hda2 on / type ext3 (rw,errors=remount-ro)

掛載/卸載Windows 分割區

NTFS 或 FAT32

請參考步驟4 有關NTFS 裝置;請參考步驟5有關 FAT32 裝置;NTFS 只容許 讀取FAT32則容許 讀取寫入

  1. 參閱 the section called “檢查硬碟用量及檢視分割區列表”

  2. Open Konsole by going to KMenuSystemKonsole - Terminal Program.

  3. 首先,建立打算掛載分割區的目錄位置。方法是輸入下列的指令然後按輸入鍵(假如問及密碼,就請輸入你的用戶密碼然後按輸入鍵):

    sudo mkdir /media/windows
    
  4. 下一步,輸入以下指令來掛載NTFS 視窗分割區並只容許讀取資料,然後按 輸入 鍵 (假如問及密碼,就請輸入你的用戶密碼然後按輸入 鍵):

    sudo mount /dev/hdaX /media/windows/ -t ntfs -o ro,umask=0222
    
  5. 假如你的視窗分割區使用FAT32 檔案系統,是能夠安全地容許讀取及寫入資料。方法是輸入下列的指令然後按輸入 鍵(假如問及密碼,就請輸入你的用戶密碼然後按輸入 鍵):

    sudo mount /dev/hdaX /media/windows/ -t vfat -o umask=0000
    

    Note

    以你的正確分區裝置名稱更改/dev/hdaX

  6. 要卸載分割區,請輸入下列指令然後按輸入(假如問及密碼,就請輸入你的用戶密碼然後按輸入 鍵):

    sudo umount /media/windows/
    

在系統啟動時掛載視窗分割區

  1. 參閱 the section called “檢查硬碟用量及檢視分割區列表”

  2. Open Konsole by going to KMenuSystemKonsole - Terminal Program.

  3. 首先,建立打算掛載分割區的目錄位置。方法是輸入下列的指令然後按輸入鍵(假如問及密碼,就請輸入你的用戶密碼然後按輸入鍵):

    sudo mkdir /media/windows
    
  4. 下一步,把你掛載裝置的設定檔案備份,以管理權限在文字編輯器打開檔案。輸入以下指令然後按 輸入 鍵 (假如問及密碼,就請輸入你的用戶密碼然後按輸入鍵):

    sudo cp /etc/fstab /etc/fstab_backup
    
  5. 按下Alt+F2來編輯你的/etc/fstab ,然後在Run Command對話匣輸入kdesu kate /etc/fstab然後按 OK 鍵。

  6. If your Windows partition uses the NTFS filesystem, append the following line at the end of file:

    /dev/hdaX /media/windows ntfs ro,umask=0222 0 0
    

    If your Windows partition uses the FAT32 filesystem, it is safe to allow read-write access to the partition. Append the following line at the end of the file:

    /dev/hdaX /media/windows vfat umask=0000 0 0

    instead of the one above.

    Note

    以你的正確分區裝置名稱更改/dev/hdaX

  7. 儲存及關閉所編輯的檔案。

  8. 參閱 the section called “重新掛載 /etc/fstab 而無需重新啟動”

重新掛載 /etc/fstab 而無需重新啟動

  1. Open Konsole by going to KMenuSystemKonsole - Terminal Program.

  2. At the prompt, type the following and then press the Enter key (if asked for a password, enter your user password and press the Enter key):

    sudo mount -a
    

在啟動時自動執行系統指令

有時你可以在系統開始時加入自訂的指令,從而讓電腦每次啟動時執行。請參閱以下步驟如何設定。

  1. Open Konsole by going to KMenuSystemKonsole - Terminal Program.

  2. 以管理權限編輯 crontab,在終端機輸入下列指令然後按 輸入 鍵。(假如問及密碼,就請輸入你的用戶密碼然後按輸入鍵):

    sudo crontab -e
    
  3. 插入以下行列:

    @reboot /home/user/command
    

    Note

    以你指令的全部路徑代替/home/user/command

  4. Save the file and exit. If using Nano as the default command line editor, press Ctrl+X followed by Y for Yes and then the Enter key.

在開機時更改預設的作業系統

  1. Open Konsole by going to KMenuSystemKonsole - Terminal Program.

  2. 把你的開機設定檔備份。在終端機輸入下列指令然後按 輸入 鍵 (假如問及密碼,就請輸入你的用戶密碼然後按輸入鍵):

    sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
    
  3. Edit the menu.lst file by pressing Alt+F2 and then typing kdesu kwrite /boot/grub/menu.lst followed by pressing the OK button.

  4. 找尋該行:

    ...
    預設 0
    ...
    

    然後以這行替代:

    預設 X_次序

  5. 儲存及關閉所編輯的檔案。

讓開機選單顯示

開機選單是預設為隱藏的,你需要按下 Esc 來查閱開機選單。根據以下步驟,開機選單就會預設為顯示。

  1. Open Konsole by going to KMenuSystemKonsole - Terminal Program.

  2. 把你的開機設定檔備份。在終端機輸入下列指令然後按 輸入 鍵 (假如問及密碼,就請輸入你的用戶密碼然後按輸入鍵):

    sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
    
  3. Edit the menu.lst file by pressing Alt+F2 and then typing kdesu kwrite /boot/grub/menu.lst in the Run Command dialog followed by pressing the OK button.

  4. Locate the following line:

    # hiddenmenu
    

    and uncomment it by removing the # in front of the line so that it looks like:

    hiddenmenu
    

  5. 儲存及關閉所編輯的檔案。

更時開機選單的等待時間

  1. Open Konsole by going to KMenuSystemKonsole - Terminal Program.

  2. 把你的開機設定檔備份。在終端機輸入下列指令然後按 輸入 鍵 (假如問及密碼,就請輸入你的用戶密碼然後按輸入鍵):

    sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
    
  3. Edit the menu.lst file by pressing Alt+F2 and then typing kdesu kwrite /boot/grub/menu.lst in the Run Command dialog followed by pressing the OK button.

  4. 找尋該行:

    ...
    timeout 3
    ...
    

    然後以這行替代:

    等待時間 X_seconds
    

  5. 儲存及關閉所編輯的檔案。

Prev
Next
Home