In LINUX, VFAT and NTFS partitions are automatically mounted upon startup. author: vcdog test environment: RHAS5Windows can be both FAT partitions or NTFS. by default, linux does not support NTFS. However, we can compile the NTFS module. For details, see www.chinaunix.net. make sure that the original article is complete. 1) log on to the terminal as a root user and go
In LINUX, the VFAT and NTFS partitions are automatically mounted when started.
Author: vcdog
Test Environment: rh as 5
Windows can be a FAT partition or NTFS partition. by default, linux does not support NTFS. However, we can compile the NTFS module.
Reference: www.chinaunix.net
Ensure that the original text is complete for any reposted content
1) log on to the terminal as root and create a directory under /.
For example, in Windows, c, d ,...... Disk
We need to create the corresponding/win/c,/win/d ...... Directory
Later we will talk about attaching a win disk to the corresponding directory under/win.
2) partition information automatically mounted during Linux startup is stored in the/etc/fstab file.
You can open it and see the following (the partition is slightly different ):
LABEL = // ext3 defaults 1 1
LABEL =/boot1/boot ext3 defaults 1 2
Tmpfs/dev/shm tmpfs defaults 0 0
Devpts/dev/pts devpts gid = 5, mode = 620 00
Sysfs/sys sysfs defaults 0 0
Proc/proc defaults 0 0
LABEL = SWAP-hda9 swap ULTS 00
The above record is the system default, so we don't have to go into it, as long as we know that it records the information of the partitions automatically mounted at startup. But we can see that it does not contain Windows partitions.
Next we will add the Windows partition.
3.) let's take a look at the added content:
LABEL =/boot1/boot ext3 defaults 1 2
Tmpfs/dev/shm tmpfs defaults 0 0
Devpts/dev/pts devpts gid = 5, mode = 620 00
Sysfs/sys sysfs defaults 0 0
Proc/proc defaults 0 0
LABEL = SWAP-hda9 swap ULTS 00
/Dev/hda1/win/C vfat
Defaults, codepage = 936, iocharset = cp936 00
/Dev/hda5/win/D vfatdefaults, codepage = 936, iocharset = cp936 0 0
/Dev/hda9/win/F ntfsdefaults, UTF-8, umask = 0222 0 0
~
The following describes how to add content:
/Dev/hda? It is the partition number corresponding to the Win disk. you can find the hard disk information in the "Hardware Browser ".
.
/Win /? It is the directory under/Win after the win disk is mounted. The directory is in 1 .)
Created.
Vfat indicates that the mounted partition is in the FAT format.
Defaults tells Linux to automatically mount the disk when it is started.
Codepa ...... Make sure that the Chinese file name of the VFAT partition can be properly displayed; otherwise, garbled characters will be displayed.
Utf8 allows the Chinese file names in the NTFS partition to be displayed normally.
Okay. modify your/etc/fstab file, save, reboot!
Cd/win /? Haha, see the familiar c, d ,...... Disk?
If you are using Linux on the character interface, you can stop it.
If you are using Xwinfows, continue!
4.) return to the desktop
Right-click and select "New initiator" to open a dialog box.
Enter "Win_C disk" after the name ",
Change "program" to "connection ",
In the above "URL", enter "/win/c"
You can also select the icon you like.
In this way, a starter is settled on your desktop. you only need to double-click it to open drive c.
Isn't that refreshing!
You can create a starter for each disk and place it on the desktop.
It will be much more convenient in the future.
Wish you success!
!