4

I am running macOS High Sierra 10.13.6. When I look for /etc/fstab file, I found /etc/fstab.hd file (no /etc/fstab file was present), and the file content says IGNORE THIS FILE.

But when I google, there are many articles still talking about /etc/fstab such as this link. So should I create and use /etc/fstab file? If it's not recommended, what is the recommended config file then?

3

afaik, fstab doesn't exist by default. You have to create one, first time.

From your linked instructions...

7) Edit (or create) an fstab file by typing the following and pressing enter:
sudo vifs

Will do precisely that, edit - or create - an fstab file.
Once you've got it set up, it ought to work as expected. I have mine set with ACLs so it will let me edit it without jumping through hoops every time. iirc, by default it's set to root/wheel.

fstab.hd seems to be a red herring, but no amount of Googling has turned up what it is or was used for :/

  • thanks a lot for the answer. so does it mean /etc/fstab is safe to be used in macos? I am just afraid it's not a recommended way. – sgon00 Aug 4 '18 at 6:45
  • It's absolutely fine, once you've got it set up. – Tetsujin Aug 4 '18 at 6:50
  • Curious... what do you think you need to use it for? – Marc Wilson Aug 5 '18 at 19:52
  • I use it so clones, boot camp & spare drives don't auto-mount at boot. – Tetsujin Aug 6 '18 at 6:23
  • How do you specify a mount point containing spaces? I want to mount a separate drive to /Users/davec/Music/iTunes/iTunes Media/Music and have failed with all three methods, soft quotes, hard quotes, and escapes. – tgunr Apr 4 at 2:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .