Tutorial - Automount Usb Device
1.List all usb devices:
sudo blkid
2. Create the directory where you want to mount the partition:
mkdir /mnt/MyDir
3. Edit /etc/fstab add line:
/dev/sda[X] /mnt/MyDir [ext4] defaults,noatime 0 0
instead of X and ext4 go with appropriate key words
Ex: for me is: /dev/sda1 /mnt/MyDir ext4 defaults,noatime 0 0
Last step reboot or you can mount everything right now:
sudo mount /dev/sda1 /mnt/MyDir
sudo blkid
2. Create the directory where you want to mount the partition:
mkdir /mnt/MyDir
3. Edit /etc/fstab add line:
/dev/sda[X] /mnt/MyDir [ext4] defaults,noatime 0 0
instead of X and ext4 go with appropriate key words
Ex: for me is: /dev/sda1 /mnt/MyDir ext4 defaults,noatime 0 0
Last step reboot or you can mount everything right now:
sudo mount /dev/sda1 /mnt/MyDir
Comentarii