Since I installed Ubuntu 12.10 with wubi and installed it on the system disk, I only gave 20 GB space, so I wanted to store the common content in the Windows data disk.
So I want the system to automatically mount several windows partitions at startup.
You can perform the following settings:
1. Run the blkid command to view the uuid of several disks.
root@ubuntu:~# blkid/dev/loop0: UUID="5f5f8f64-fb81-4c22-a142-29efe6c01463" TYPE="ext4" /dev/sda1: UUID="ECC4ED6AC4ED378A" TYPE="ntfs" /dev/sdb1: UUID="4CB0789FB0789166" TYPE="ntfs" /dev/sdb5: UUID="047E-1AF0" TYPE="vfat" /dev/sdb6: UUID="237D-1AF7" TYPE="vfat" /dev/sdb7: UUID="FC00852D0084EFC6" TYPE="ntfs"
We can see that my system has two hard disks, SDA and SDB.
My SDA is an SSD disk used to install the system. SDB is a common hard disk data disk.
So my system automatically mounted sdb1 5 6 7
After finding the uuid and type, you can set the fstab.
2. Modify fstab
Vim/etc/fstab
# <File system> <mount point> <type> <Options> <dump> <pass>
/Host/Ubuntu/disks/root. Disk/ext4 loop, errors = remount-ro 0 1
/Host/Ubuntu/disks/swap. Disk none swap loop, SW 0 0
UUID = fc00852d0084efc6/Media/g_windows NTFS defaults, locale = zh_CN.UTF-8 0 0
UUID = 047e-1af0/Media/d_windows vfat defaults, iocharset = utf8 0 0
UUID = 237d-1af7/Media/f_windows vfat ults, iocharset = utf8 0 0
UUID = 4cb0789fb0789166/Media/e_windows NTFS defaults, locale = zh_CN.UTF-8.
The four lines in the black box are added by myself. After WQ is saved, restart it!
Note that you must first create
/Media/e_windows and other folders. Exercise caution when modifying the settings. If the changes are modified, the startup may fail.
But of course there is a solution. don't worry too much. If it is broken, read the following article:
Open and edit the Ubuntu root. Disk File. How to Use winhex