Artix Linux Forum

Artix Linux => System => Topic started by: KoO-i3 on 09 October 2020, 00:37:51

Title: [SOLVED] Auto mount internel drives
Post by: KoO-i3 on 09 October 2020, 00:37:51
I have two internal drives that I would like to auto mount at startup. I have tried editing fstab but I just can't get right, could I get some help with this please.

The two drive inquestion are both ntfs and store my music folders
Code: [Select]
sdb                                                                                    
├─sdb1                                                                                
└─sdb2 ntfs         New Volume     E01CBBD21CBBA248                      680.8G    27% /run/media/koo/New Volume
sdc                                                                                   
├─sdc1                                                                                
└─sdc2 ntfs         Storage        640841240840F718                        256G    45% /run/media/koo/Storage

This is a copy of my fstab file.

Code: [Select]
# /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>
UUID=93f09d99-a371-4307-ad49-0654cf9b5097 /              ext4    defaults,noatime,discard 0 1
UUID=270efedc-f7d1-4115-8ce3-c0efc33fea07 /home          ext4    defaults,noatime,discard 0 2
tmpfs                                     /tmp           tmpfs   defaults,noatime,mode=1777 0 0

Thanks
Title: Re: Auto mount internel drives
Post by: phoenix_king_rus on 09 October 2020, 08:26:19
/run is a tmpfs filesystem, so you need to either create mountpoints before mounting or change mountpoints
Title: Re: Auto mount internel drives
Post by: linuxer on 09 October 2020, 16:23:16
I have two internal drives that I would like to auto mount at startup. I have tried editing fstab but I just can't get right, could I get some help with this please.

The two drive inquestion are both ntfs and store my music folders
Code: [Select]
sdb                                                                                    
├─sdb1                                                                                
└─sdb2 ntfs         New Volume     E01CBBD21CBBA248                      680.8G    27% /run/media/koo/New Volume
sdc                                                                                   
├─sdc1                                                                                
└─sdc2 ntfs         Storage        640841240840F718                        256G    45% /run/media/koo/Storage

This is a copy of my fstab file.

Code: [Select]
# /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>
UUID=93f09d99-a371-4307-ad49-0654cf9b5097 /              ext4    defaults,noatime,discard 0 1
UUID=270efedc-f7d1-4115-8ce3-c0efc33fea07 /home          ext4    defaults,noatime,discard 0 2
tmpfs                                     /tmp           tmpfs   defaults,noatime,mode=1777 0 0

Thanks

Create mount points, find UUIDs with blkid and mount them at /etc/fstab
Title: Re: Auto mount internel drives
Post by: KoO-i3 on 11 October 2020, 02:25:03
Thanks for the feed back.

I tried every option I could think of in fstab and still could not get it to auto mount my drive on bootup. And never got one boot error.
Commands I used.
cat /proc/mounts
sudo blkid

But last night while using spacefm I right clicked one of the drives then Settings>Auto Mount>Mount Volumes and added one of the drive to the list now the drive auto mounts on bootup even without opening spacefm.
https://ibb.co/9qtYnKP (https://ibb.co/9qtYnKP)
(https://i.ibb.co/9qtYnKP/2020-10-11-10-11.png)