SOLVED: Mounting hard drives in fstab

mosslack
Posts: 4
Joined: Sun Feb 18, 2018 9:03 pm

SOLVED: Mounting hard drives in fstab

Postby mosslack » Sun Feb 18, 2018 9:40 pm

Greetings all. Okay this may be more about Fedora, but I thought I would ask here first. I've been into computers since the early 80's, built a Sinclair ZX-81 and I was hooked. Over the years I've mainly stayed with Windows and OS X, but I have dabbled in Linux from time to time. I know enough to get myself into trouble which is what happened this time. I won't go into the problem cause I did manage to get myself out of that one, but suffice to say I don't want to repeat it again so here goes...

My server is running Fedora server 25, as outlined in the Amahi guide and that part is working fine. The hard drives of this computer are a small 40 Gb drive for the OS and plug-ins, etc. and 3 - 1 Tb data drives which I would like to have access to 2 of these drives via my home network. All are formatted as fat32 and the OS drive is XFS.

Long story short, I know, too late, I would like to setup fstab to mount these data drives on startup. I used this command to mount the 2 drives and they are working just fine:

mount -t vfat /dev/sdb2 /mnt/Data (Data hard drive) (UUID-66d10b9c-dfec-4942-89bd-bb30096611f4)

mount -t vfat /dev/sdc2 /mnt/AVD (AVD hard drive) (UUID-bb0448b2-5806-496d-be23-879c9a15a820)

I don't really want to type this in each time I startup the system so I would like to put the mounts into fstab so they will automatically be mounted each time the computer is booted. I did use the blkid command to get the UUID for each drive partition so I will be using that instead of the device names.

The config file needs to be setup so anyone who accesses the drive has the ability to read or write the files. (I am the only user on this network)

I appreciate any help on this as the last time I tried I bricked the system and I don't want to have to go through all I had to go through again to fix it if at all possible. :)

Eventually I will be adding Plex media server on this system so I will probably be back at that time with more questions. For now I will be happy if I can get his done.

Thanks for your time.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Mounting hard drives in fstab

Postby bigfoot65 » Mon Feb 19, 2018 1:22 pm

ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

mosslack
Posts: 4
Joined: Sun Feb 18, 2018 9:03 pm

Re: Mounting hard drives in fstab

Postby mosslack » Mon Feb 19, 2018 2:49 pm

Cool. Thanks!

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Mounting hard drives in fstab

Postby bigfoot65 » Mon Feb 19, 2018 3:37 pm

Happy to help.

Can we mark this as resolved?
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

mosslack
Posts: 4
Joined: Sun Feb 18, 2018 9:03 pm

Re: Mounting hard drives in fstab

Postby mosslack » Mon Feb 19, 2018 4:05 pm

Absolutely. I restarted Fedora and cleared all of the test directories I created under the /mnt directory. Then I used the wizard to setup the shares the right way. Works like a charm! Many thanks!

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Mounting hard drives in fstab

Postby bigfoot65 » Mon Feb 19, 2018 4:43 pm

Glad it worked out.

Marking resolved.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 9 guests