mount_usb_drive_on_boot
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| mount_usb_drive_on_boot [2016/07/28 20:38] – created walkeradmin | mount_usb_drive_on_boot [2017/02/01 16:15] (current) – walkeradmin | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| \\ | \\ | ||
| \\ | \\ | ||
| - | Having created a partition, formatted it and mounted it, the mounting temporary and will be lost upon reboot. To mount it at boot we can do the following: | + | Having created a partition, formatted it and mounted it, the mounting |
| \\ | \\ | ||
| \\ | \\ | ||
| Line 10: | Line 10: | ||
| | | ||
| (on my system that is the SD card we booted from and a single USB Hard Disk) | (on my system that is the SD card we booted from and a single USB Hard Disk) | ||
| + | | ||
| total 0 | total 0 | ||
| lrwxrwxrwx 1 root root 15 Jul 28 20:33 0403-0201 -> ../ | lrwxrwxrwx 1 root root 15 Jul 28 20:33 0403-0201 -> ../ | ||
| Line 21: | Line 21: | ||
| | | ||
| The assignment ending in /sda1 is what I am interested in. | The assignment ending in /sda1 is what I am interested in. | ||
| + | \\ | ||
| + | Note Down the value of the drive you wish to mount | ||
| + | | ||
| + | 6af40af7-759f-4ee5-afea-882e9f58f17e (in this example) | ||
| + | \\ | ||
| + | Get the uid, gid for pi user and group using: | ||
| + | | ||
| + | id | ||
| + | | ||
| + | uid=1000(pi) gid=1000(pi) groups=1000(pi), | ||
| + | | ||
| + | Here we can see the uid for pi is 1000 (I am assuming you are using the pi account) | ||
| + | \\ | ||
| + | Lets create a mount point and call it NewDisk | ||
| + | | ||
| + | sudo mkdir / | ||
| + | \\ | ||
| + | To Mount the Disk | ||
| + | | ||
| + | sudo mount /dev/sda1 / | ||
| \\ | \\ | ||
| + | | ||
| | | ||
mount_usb_drive_on_boot.1469738331.txt.gz · Last modified: (external edit)
