Page 1 of 1

SOLVED: Remove from /etc/fstab

Posted: Sun Oct 07, 2018 9:26 am
by TeamHodgdon
So, I am trying to remove an old 300gb drive to replace it with something more modern. It's part of the greyhole pool, but I have already migrated data out and removed it from the pool. I'm at the part where there's a big red banner in the wiki about removing the drive's entry from /etc/fstab. I see a ton of mentions of this in other posts, but I have no idea how to actually do it. I managed to display the contents of fstab. I know the drive's name and UUID.

I think this is a thing that everyone seems to know how to do, but I'm not able to figure it out. Thanks in advance for any help!

Edit: The drive is still physically connected to the HDA and I have not moved past migrating the data out of the pool and removing the drive from the pool.

Re: Remove from /etc/fstab

Posted: Sun Oct 07, 2018 9:59 am
by TeamHodgdon
Okay, so a little googling and I managed to get the fstab file open. Is it as simple as deleting the entire line with the UUID of the drive I want to delete?

Re: Remove from /etc/fstab

Posted: Sun Oct 07, 2018 10:09 am
by bigfoot65
Is it as simple as deleting the entire line with the UUID of the drive I want to delete?
For the most part, that will do it.

Recommend you do the following:

Code: Select all

sudo umount path_of_drive_mount
Replace the path_of_drive_mount with the path from the /etc/fstab. Once unmounted, you should be good.

Re: Remove from /etc/fstab

Posted: Sun Oct 07, 2018 11:02 am
by TeamHodgdon
All done, everything's good. Thanks for the sanity check!

Re: Remove from /etc/fstab

Posted: Sun Oct 07, 2018 11:04 am
by bigfoot65
No problem.

Marking as resolved.