Linux system hard disk mount detailed description

  

Case 1: Know the windows file system format, and the windows disk corresponds to the sda* file under /dev/, only need to add

/dev/sda* /media/"New folder name" "File system format" defaults, utf8, umask=000 0 0


Case 2: Do not know the windows file system format, do not know the corresponding windows disk When the hard disk file sda*:


1. First enter the superuser privilege with the command su

2. Execute the command ls /dev/sda*


This will list the hard disk files, some 5, 6 and some more, generally less than 10. Set the number of hard disk files to Numble_of_sda

3. Execute the following commands in sequence, create a folder, and manually mount the hard disk.

mkdir media/sda1


mount /dev/sda1 /media/sda1

mkdir media/sda2

mount /dev/sda2 /Media/sda2

..........

mkdir media/sda9

mount /dev/sda1 /media/sda9 (if Numble_of_sda=9)


4. Then execute df -T


View the manually mounted hard disk in the file system list


File System 1K-block is used Available % Mounted Point

/dev/sda8 ext3 26004224 3262624 21420660 14% /
varrun tmpfs 225432 88 225344 1% /var/run
varlock tmpfs 225432 0 225432 0% /var /lock
procbususb usbfs 10240 96 10144 1% /proc/bus/usb
udev tmpfs 10240 96 10144 1% /dev
devshm tmpfs 225432 0 225432 0% /dev/shm
lrm tmpfs 225432 17580 207852 8% /lib/modules/2.6.17-10-generic/volatile
/dev/sda1 vfat 10231392 8134888 2096504 80% /media/sda1
/dev/sda5 vfat 20462832 17126864 3335968 84% /media /sda5
/dev/sda6 vfat 20462832 13325616 7137216 66% /media/sda6

5. From the list above you can see sda1 sda5 sda6 can be mounted, then We only need to.


/dev/sda1 /media/sda1 vfat defaults,utf8,umask=000 0 0
/dev/sda5 /media/sda5 vfat defaults,utf8,umask=000 0 0
/dev/sda6 /media/sda6 vfat defaults, utf8, umask=000 0 0

Add to the end of the /etc/fstab file, you can automatically hang each time you start the system The file system is loaded. Note vfat is the format of the file system. It is the same as the attribute value in the list listed by df -T. It may be in the format of fat32. Then delete the folder that does not mount the file system under /media/, such as sda2 sda3 sda4 sda7 sda8.


This is just based on the file system of my machine, which gives the content that needs to be added. In the specific operation process, refer to the contents of df-T list

Copyright © Windows knowledge All Rights Reserved