Linux system automatically mounts USB removable hard disk

Source: Internet
Author: User
<span id="Label3"></p><p><p>It is not difficult to mount a USB device on a Linux system, and it is easy to mount a USB device with a simple mount Command. But if you mount a USB drive that is divided into multiple partitions, the partition you mount may mount to a different path when you reboot the System. In order to avoid this problem, we must ensure that the Multi-partition USB mobile hard drive mounts to the Linux system by the hardware ID of the body to mount to that path up.</p></p><p><p><br></p></p><p><p>first, to have the Linux system recognize the ntfs-formatted hard disk, Install</p></p><p><p>sudo apt-get install ntft-3g<br></p></p><p><p>Create several directories on the system to mount the removable hard disk</p></p><p><p>sudo mkdir/mnt/disk1</p></p><p><p>sudo mkdir/mnt/disk2</p></p><p><p>sudo mkdir/mnt/disk3</p></p><p><p>sudo mkdir/mnt/disk4</p></p><p><p>Then use the Fdisk-l to view the drive letter of the USB removable hard disk</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><span style="color:#34bd26;">[email protected]</span> <span style="color:#5330e1;">~ $</span> sudo fdisk-l</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><br></p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">disk/dev/mmcblk0:15.9 GB, 15931539456 bytes</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">4 heads, sectors/track, 486192 cylinders, Total 31116288 sectors</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">Units = sectors of 1 * MB = bytes</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">Sector size (logical/physical): bytes/512 bytes</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">I/O size (minimum/optimal): bytes/512 bytes</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">Disk Identifier:0xa6202af7</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><br></p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">Device Boot Start End Blocks Id System</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">/dev/mmcblk0p1 8192 122879 57344 c W95 FAT32 (LBA)</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">/DEV/MMCBLK0P2 122880 31116287 15496704-up Linux</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><br></p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">disk/dev/sda:500.1 GB, 500107862016 bytes</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">255 heads, sectors/track, 60801 cylinders, Total 976773168 sectors</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">Units = sectors of 1 * MB = bytes</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">Sector size (logical/physical): bytes/512 bytes</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">I/O size (minimum/optimal): bytes/512 bytes</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">Disk identifier:0xf91440c6</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><br></p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">Device Boot Start End Blocks Id System</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">/DEV/SDA1 204796619 102398278+ 7 Hpfs/ntfs/exfat</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">/dev/sda2 204796620 976768064 385985722+ f W95 Ext ' d (LBA)</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">/dev/sda5 204796683 614389859 204796588+ 7 Hpfs/ntfs/exfat</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">/dev/sda6 614389923 976768064 181189071 7 Hpfs/ntfs/exfat</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(52,189,38);background-color:rgb(0,0,0);">[email protected] <span style="color:#f5f5f5;"> </span><span style="color:#5330e1;">~ $</span><span style="color:#f5f5f5;"> </span></p></p><p><p><span style="color:#f5f5f5;">J</span></p></p><p><p><span style="color:rgb(0,0,0);">Next is the key step to see the hardware ID of the USB drive</span></p></p><p><p><span style="color:rgb(0,0,0);"></span></p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><span style="color:#34bd26;">[email protected]</span> <span style="color:#5330e1;">~ $</span> Ls-la/dev/disk/by-id</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">Total 0</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">Drwxr-xr-x 2 root root and Sep 21:48 <span style="color:#5330e1;">.</span></p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">Drwxr-xr-x 6 root root 1 1970 <span style="color:#5330e1;">.</span></p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0);"><span style="color:#f5f5f5;">lrwxrwxrwx 1 root root 9 Sep 21:48 </span>ata-hitachi_hts545050b9a300_120208pbg408p7hxnzbv.<span style="color:#f5f5f5;"> </span> <span style="color:#999900;"> /.. /SDA</span></p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0);"><span style="color:#f5f5f5;">lrwxrwxrwx 1 root root ten Sep 21:48 </span>ata-hitachi_hts545050b9a300_120208pbg408p7hxnzbv-part1-<span style="color:#f5f5f5;"> </span> <c 5> . /.. /SDA1 </c></p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0);"><span style="color:#f5f5f5;">lrwxrwxrwx 1 root root ten Sep 21:48 </span>ata-hitachi_hts545050b9a300_120208pbg408p7hxnzbv-part2-<span style="color:#f5f5f5;"> </span> <c 2> . /.. /sda2 </c></p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0);"><span style="color:#f5f5f5;">lrwxrwxrwx 1 root root ten Sep 21:48 </span>ata-hitachi_hts545050b9a300_120208pbg408p7hxnzbv-part5-<span style="color:#f5f5f5;"> </span> <c 5> . /.. /sda5 </c></p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0);"><span style="color:#f5f5f5;">lrwxrwxrwx 1 root root ten Sep 21:48 </span>ata-hitachi_hts545050b9a300_120208pbg408p7hxnzbv-part6-<span style="color:#f5f5f5;"> </span> <c 2> . /.. /sda6 </c></p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">lrwxrwxrwx 1 root root 1 1970 <span style="color:#34bbc7;">MEMSTICK-SL16G_0X2833B5CB</span> . <span style="color:#999900;"> /.. /mmcblk0</span></p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">lrwxrwxrwx 1 root root, Sep-21:48 <span style="color:#34bbc7;">memstick-sl16g_0x2833b5cb-part1</span> . <span style="color:#999900;"> /.. /mmcblk0p1</span></p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">lrwxrwxrwx 1 root root, Sep-21:48 <span style="color:#34bbc7;">memstick-sl16g_0x2833b5cb-part2</span> . <span style="color:#999900;"> /.. /MMCBLK0P2</span></p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">lrwxrwxrwx 1 root root 9 Sep 21:48 <span style="color:#34bbc7;">scsi-sgeneric_external_120208pbg408p7hxnzbv</span> . <span style="color:#999900;"> /.. /SDA</span></p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0);"><span style="color:#f5f5f5;">lrwxrwxrwx 1 root root Sep 21:48 </span>scsi-sgeneric_external_120208pbg408p7hxnzbv-part1.<span style="color:#f5f5f5;"> </span> <span style="color:#999900;"> /.. /SDA1</span></p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0);"><span style="color:#f5f5f5;">lrwxrwxrwx 1 root root Sep 21:48 </span>scsi-sgeneric_external_120208pbg408p7hxnzbv-part2.<span style="color:#f5f5f5;"> </span> <span style="color:#999900;"> /.. /sda2</span></p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0);"><span style="color:#f5f5f5;">lrwxrwxrwx 1 root root Sep 21:48 </span>scsi-sgeneric_external_120208pbg408p7hxnzbv-part5.<span style="color:#f5f5f5;"> </span> <span style="color:#999900;"> /.. /sda5</span></p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(52,187,199);background-color:rgb(0,0,0);"><span style="color:#f5f5f5;">lrwxrwxrwx 1 root root Sep 21:48 </span>scsi-sgeneric_external_120208pbg408p7hxnzbv-part6.<span style="color:#f5f5f5;"> </span> <span style="color:#999900;"> /.. /sda6</span></p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">lrwxrwxrwx 1 root root 9 Sep 21:48 <span style="color:#34bbc7;">wwn-0x5000cca6addb20a6</span> . <span style="color:#999900;"> /.. /SDA</span></p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">lrwxrwxrwx 1 root root Sep 21:48 <span style="color:#34bbc7;">wwn-0x5000cca6addb20a6-part1</span> . <span style="color:#999900;"> /.. /SDA1</span></p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">lrwxrwxrwx 1 root root Sep 21:48 <span style="color:#34bbc7;">wwn-0x5000cca6addb20a6-part2</span> . <span style="color:#999900;"> /.. /sda2</span></p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">lrwxrwxrwx 1 root root Sep 21:48 <span style="color:#34bbc7;">wwn-0x5000cca6addb20a6-part5</span> . <span style="color:#999900;"> /.. /sda5</span></p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">lrwxrwxrwx 1 root root Sep 21:48 <span style="color:#34bbc7;">wwn-0x5000cca6addb20a6-part6</span> . <span style="color:#999900;"> /.. /sda6</span></p></p><p><p><span style="color:#999900;"><br></span></p></p><p><p><span style="color:rgb(0,0,0);">Modify The/etc/fstab file after locating the hardware ID</span></p></p><p><p><span style="color:rgb(0,0,0);"></span></p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><span style="color:#34bd26;">[email protected]</span> <span style="color:#5330e1;">~ $</span> Cat/etc/fstab</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">PROC/PROC proc Defaults 0 0</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">/dev/mmcblk0p1/boot VFAT Defaults 0 2</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">/DEV/MMCBLK0P2/EXT4 Defaults,noatime 0 1</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"># A swapfile is not a swap partition, so no using swapon|off from here on, use Dphys-swapfile swap[on|off] for that</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">/dev/sda1/mnt/disk1 ntfs-3g defaults,noexec,umask=0000 0 0</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">/dev/sda2/mnt/disk2 ntfs-3g defaults,noexec,umask=0000 0 0</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">/dev/sda5/mnt/disk3 ntfs-3g defaults,noexec,umask=0000 0 0</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">/dev/sda6/mnt/disk4 ntfs-3g defaults,noexec,umask=0000 0 0</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><br></p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">/dev/disk/by-id/scsi-sgeneric_external_120208pbg408p7hxnzbv-part1/mnt/disk1 ntfs-3g defaults,noexec,umask=0000 0 0</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">/dev/disk/by-id/scsi-sgeneric_external_120208pbg408p7hxnzbv-part2/mnt/disk2 ntfs-3g defaults,noexec,umask=0000 0 0</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">/dev/disk/by-id/scsi-sgeneric_external_120208pbg408p7hxnzbv-part5/mnt/disk3 ntfs-3g defaults,noexec,umask=0000 0 0</p></p><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);"><p style="margin-top:0px;margin-bottom:0px;font-size:10px;font-family:Monaco;color:rgb(245,245,245);background-color:rgb(0,0,0);">/dev/disk/by-id/scsi-sgeneric_external_120208pbg408p7hxnzbv-part6/mnt/disk4 ntfs-3g defaults,noexec,umask=0000 0 0</p></p><p><p><span style="color:rgb(0,0,0);"><br></span><br></p></p><p><p>After rebooting the system, it was found that the system automatically loaded the USB removable hard Disk.</p></p><p><p><br></p></p><p><p><br></p></p><p><p><br></p></p><p><p><br></p></p><p><p>This article is from the "rookie geek" blog, please be sure to keep this source http://raspjason.blog.51cto.com/8565009/1694437</p></p><p><p>Linux system automatically mounts USB removable hard disk</p></p></span>

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.