如何让ubuntu启动后自动加载硬盘分区?
sudo gedit /etc/fstab
在文件的最后面加上
/dev/sda1 /media/WINXP auto rw 0 0
/dev/sda5 /media/TOOLS auto rw 0 0
/dev/sda6 /media/DATA auto rw 0 0
/dev/sda7 /media/BACKUP auto rw 0 0
即可。以后就可以通过访问/media下的WINXP、TOOLS、DATA和BACKUP 来访问WinXP下对应的CDEF盘了。
/etc/fstab内容部分摘于下:
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda8 during installation
UUID=23deda53-8892-4866-aab2-ec6ae7e2be49 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda9 during installation
UUID=ea32c310-9d8a-42c5-8819-59d3f9c7b042 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
/dev/sda1 /media/WINXP auto rw 0 0
/dev/sda5 /media/TOOLS auto rw 0 0
/dev/sda6 /media/DATA auto rw 0 0
/dev/sda7 /media/BACKUP auto rw 0 0