Hard Disk mounting in Linux

Source: Internet
Author: User
Tags superuser permission
Article Title: Detailed description of Hard Disk mounting in Linux. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic categories I: Know the format of the windows file system, you only need to add
 
/Dev/sda */media/"New Folder name" "File System Format" defaults, utf8, umask = 000 0 0
 
Scenario 2: when you do not know the windows File System format or the hard disk file sda * corresponding to windows disks:
 
1. Run the su command to access the superuser permission.
 
2. Execute the command ls/dev/sda *
 
At this time, the hard disk files will be listed, with 5 or 6 files and more files, generally under 10 files. Set the number of hard disk files to Numble_of_sda.
 
3. Execute the following commands in sequence to create a folder and manually mount the hard disk.
 
  
     
      
Mkdir media/sda1mount/dev/sda1/media/sda1mkdir media/sda2mount/dev/sda2/media/sda2 .......... Mkdir media/sda9mount/dev/sda1/media/sda9 (if Numble_of_sda = 9)
     

 
4. Then run df-T.
 
View manually mounted hard disks in the file system list
 
  
     
      
File System 1 K-block used available % mount point/dev/sda8 ext3 26004224 3262624 21420660 14%/varrun tmpfs 225432 88 225344 1%/var/runvarlock tmpfs 225432 0 225432 0%/var/ lockprocbususb usb fs 10240 96 10144 1%/proc/bus/usbudev tmpfs 10240 96 10144 1%/devdevshm tmpfs 225432 0 225432 0%/dev/shmlrm tmpfs 225432 17580 207852/lib/modules/2.6.17- 10-generic/volatile/dev/sda1 vfat 10231392 8134888 2096504/media/sda1/dev/sda5 vfat 80% 20462832 17126864 3335968/media/sda5/dev/sda6 vfat 84% 20462832 13325616 7137216 /media/sda6
     


5. From the bottom of the list above, we can see that sda1 sda5 sda6 can be mounted.
 
  

     
      /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
     

 
After you add it to the end of the/etc/fstab file, you can automatically mount the file system each time you start the system. Note that vfat is the format of the file system. It must be the same as the attribute value in the list listed by df-T. It may be in the format of fat32. Delete the folder without a file system attached to/media/, such as sda2 sda3 sda4 sda7 sda8.
 
Here we only provide the content to be added based on the file system of our sub-host. For details about the operation, refer to the df-T list.
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.