2011年5月7日 星期六

[Computer] 啟動Ubuntu後如何自動掛載其他分割區/How to auto mount another partitions when boot Ubuntu

開機時如何自動掛載Windows NTFS 分割區,並允許所有使用者能讀取/寫入

打開終端機輸入以下指令:

sudo mkdir /media/Win7Data
sudo cp /etc/fstab /etc/fstab.backup
sudo gedit /etc/fstab

在最後加上

/dev/sda1 /media/windows ntfs nls=utf8,umask=0222 0 0
按照 /etc/fstab 的設定自動重新掛載一次 (不用重開機)      

sudo mount -a

From YaYa-Ubuntu 站-楊奕農 
 
 
第二種方式:
藉由PySDM圖形化介面來操作
詳細有下面Step by step圖片教學
這邊不加累述 
How To Auto-mount Your NTFS Partition In Ubuntu 
http://maketecheasier.com/auto-mount-your-ntfs-partition-in-ubuntu/2009/04/14 

[Computer] 改Ubuntu開機選單/Editing Grub2 Bootloader

menu.lst file will not be present in newer versions of grub.So if u try to open it you will get a blank file.
proceed as follows.
1.open /boot/grub/grub.cfg as root user.
2.type sudo gedit /boot/grubgrub.cfg in terminal to open it in write mode.
3.Now you can see something called menuentry which is nothing but different booting options like ubuntu generic,ubuntu memtest,windows etc. which is repeated 5 to 6 times in the format
###some text
menu entry
//some text related to menu entry
###some text
(Ctrl+f and type menuentry to find it)
4.Find the para which has menuentry with windows7/xp/vista(depending on your windows version).generally it will be the last entry.
5.Cut that para i.e., from
###some text
menuentry windows 7
//some related text
###some text
and paste it just before the para of ubuntu generic menuentry i.e., just above its ###.
6.save it.

Note:Keep a copy of the original file in case u want to restore the default.but by this technique u can change the boot order as u like.


From Ubuntu Geek