User Tools

Site Tools


mount_usb_drive_on_boot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mount_usb_drive_on_boot [2016/07/28 21:47] walkeradminmount_usb_drive_on_boot [2023/03/09 22:35] (current) – external edit 127.0.0.1
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 is temporary and will be lost upon reboot. To mount it at boot we can do the following:
 \\  \\ 
 \\  \\ 
Line 34: Line 34:
     Here we can see the uid for pi is 1000 (I am assuming you are using the pi account)     Here we can see the uid for pi is 1000 (I am assuming you are using the pi account)
 \\  \\ 
-    Mount the USB Drive and then check if it is accessible at /media/NEWDRIVE +    Lets create a mount point and call it NewDisk  
- +     
-    sudo mount -t ntfs-3g -o uid=1000,gid=1000,umask=007 /dev/sda1 /media/NASDRIVE+    sudo mkdir /mydisk    <-- This creates a mount point (a folder) to mount our diskthe folder is called mydisk 
 +\\  
 +    To Mount the Disk 
 +     
 +    sudo mount /dev/sda1 /NewDisk    <--- bear in mind that your disk might not be sda1 
 +\\ 
  
          
  
          
mount_usb_drive_on_boot.1469738848.txt.gz · Last modified: 2023/03/09 22:35 (external edit)