Due to work requirements, you need to cancel the installation in Ubuntu and mount the Windows system partition through the "location" menu. After a long time, I tried various methods and finally found a suitable method. The specific process is summarized. First, you need to know the volume label of the Windows partition. Note: The "/dev/sda5" command is displayed through the fdisk-l command. The similar is not the volume label, but the device number. The procedure is as follows: 1) install mtools Software Package sudoapt-getinstallm
Due to work requirements, you need to cancel the installation in Ubuntu and mount the Windows system partition through the "location" menu. After a long time, I tried various methods and finally found a suitable method. The specific process is summarized.
First, you need to know the volume label of the Windows partition. Note: The "/dev/sda5" command is displayed through the fdisk-l command. The similar is not the volume label, but the device number. The process is as follows:
1) install the mtools Software Package
Sudo apt-get install mtools 2) use fdisk-l to view the device numbers of each partition of the local hard disk:
Sudo fdisk-l:
Disk/dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065*512 = 8225280 bytes
Disk identifier: 0x15d355a0
Device Boot Start End Blocks Id System
/Dev/sda1*1 10325 82935531 7 HPFS/NTFS
/Dev/sda2 10326 19305 72131850 f W95 Ext 'd (LBA)
/Dev/sda4 19306 19457 1220940 12 Compaq diagnostics
/Dev/sda5 10326 16699 51199123 + c W95 FAT32 (LBA)
/Dev/sda6 16700 18668 15815961 c W95 FAT32 (LBA)
"/Dev/sda5" is the device Number of the corresponding partition.
3) copy the mtools. conf file in the "/etc" directory as a new file "~ /. Mtoolsrc"
Cp/etc/mtools. conf ~ /. Mtoolsrc 4) edit the copied "~ /. Mtoolsrc "file, add the following command line to the last line:
Drive f: file = "/dev/sda4"
Drive g: file = "/dev/sda5"
Drive j: file = "/dev/sda6"
5) change the command prompt path to the "f:, g:, j:" partition set above, as shown in the "g:" partition
Sudo mcd g: Note: Since the partition corresponding to g has more than 50G, the http://ubuntuone.cn will report the following error when executing the command above:
Total number of sectors (102383934) not a multiple of sectors per track (63 )!
Add mtools_skip_check = 1 to your. mtoolsrc file to skip this test solution is very simple. According to the prompt, in the above ~ /. Add "mtools_skip_check = 1" to the mtoolsrc file.
6) view the current volume label "g :"
Sudo mlabel-s g: No volume name may be displayed.
7) add the "g:" partition volume label or change the "g:" partition original volume label to your favorite new volume Name:
Sudo mlabel g: winD8) check whether the change is successful
Sudo mlabel-s g:
After the volume label is modified, you can modify a key configuration file. Run the following command:
Sudo gedit/usr/share/hal/fdi/policy/10 osvendor/20-storage-methods.fdi Add the windows partition to Cancel automatic mounting after the following fields.
False
True
True
So far, all the work has been completed. Restart your computer and you will be able to see the Windows partition in the "location" menu. You will not be able to see the Windows partition in the "computer" menu.