Quantcast
Channel: Active questions tagged automount - Ask Ubuntu
Viewing all articles
Browse latest Browse all 224

How can I auto mount a SSD on boot

$
0
0

I have 3 NVME M2 internal ssd's in my system, only the main SSD auto mounts. The other 2 I have to manually right click on them and choose mount for my gaming program Lutris to access it.

How can I auto mount this linux formatted, single partition, non-shared physical hard drive on boot?

my fstab

# /etc/fstab: static file system information.## Use 'blkid' to print the universally unique identifier for a# device; this may be used with UUID= as a more robust way to name devices# that works even if disks are added and removed. See fstab(5).## <file system> <mount point>   <type>  <options>       <dump>  <pass># / was on /dev/nvme0n1p2 during installationUUID=22e96bf2-fade-463d-8cc8-479247def942 /               ext4    errors=remount-ro 0       1# /boot/efi was on /dev/nvme0n1p1 during installationUUID=E8A3-41F6  /boot/efi       vfat    umask=0077      0       1/swapfile                                 none            swap    sw              0       0

This is from $ sudo blkid for the "STEAM" M2 SSD I wish to auto mount:

/dev/nvme2n1p1: LABEL="STEAM" UUID="39c64773-f637-41ee-b8ca-1439b61426b0" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="6b754125-761a-43a0-9592-c00ad3e55b26

Would the answer be to edit/add to my fstab with this line?

/dev/sda /mnt/steam ext4 defaults, 0 0

or do I need to add this command?

UUID=39c64773-f637-41ee-b8ca-1439b61426b0 /mnt/steam ext4 defaults 0 0

or this command?

UUID=39c64773-f637-41ee-b8ca-1439b61426b0 /mnt/steam auto nosuid,nodev,nofail,x-gvfs-show 0 0

I understand there are many options depending on what a user wants to do. In keeping with simplicity first, I only wish to auto mount a internal solid state hard drive, keeping all other default settings the same as the system is working after I mount it manually. Thank you all for your time and patience learning linux.

Taking all your kind advice, this is my edited fstab tested with mount -a

# /etc/fstab: static file system information.## Use 'blkid' to print the universally unique identifier for a# device; this may be used with UUID= as a more robust way to name devices# that works even if disks are added and removed. See fstab(5).## <file system> <mount point>   <type>  <options>       <dump>  <pass># / was on /dev/nvme0n1p2 during installationUUID=22e96bf2-fade-463d-8cc8-479247def942 /               ext4    errors=remount-ro 0       1# /boot/efi was on /dev/nvme0n1p1 during installationUUID=E8A3-41F6  /boot/efi       vfat    umask=0077      0       1/swapfile                                 none            swap    sw              0       0UUID=39c64773-f637-41ee-b8ca-1439b61426b0 /mnt/steam ext4 auto,nosuid,noatime,nodev,nofail,errors=remount-r,x-gvfs-show 0 0

Viewing all articles
Browse latest Browse all 224

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>