Now I want to do a custom mount point where the downloads will be placed.
So I have this another 64GB USB flash drive and I want to automatically mount at system startup to the /home/pi/Downloads.
This is how I succeed.
Look all mounted IDs:
sudo blkidNote down PARTUUID for /dev/sda1:/dev/mmcblk0: PTUUID="cd33d910" PTTYPE="dos"
/dev/mmcblk0p1: LABEL="boot" UUID="109A-9113" TYPE="vfat" PARTUUID="cd33d910-01"
/dev/mmcblk0p2: UUID="673b8ab6-6426-474b-87d3-71bff0fcebc3" TYPE="ext4" PARTUUID="cd33d910-02"
/dev/sda1: UUID="8d4fdcd3-d118-4056-91b1-0e8cf9e62bc0" TYPE="ext4" PARTUUID="6d255a34-01"Edit file system tab:sudo vi /etc/fstabMake sure you add extra new line at the end:proc /proc proc defaults 0 0
PARTUUID=cd33d910-01 /boot vfat defaults 0 2
PARTUUID=cd33d910-02 / ext4 defaults,noatime 0 1
# a swapfile is not a swap partition, no line here
# use dphys-swapfile swap[on|off] for that
PARTUUID=6d255a34-01 /home/pi/Downloads ext4 defaults 0 1I the fstab has this line with my new device than I can mount this additional storage instantly with:sudo mount /home/pi/DownloadsAfter reboot make sure the pi is owner:sudo chown pi:pi /home/pi/Downloads
No comments:
Post a Comment