Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Bildbearbeiter

macrumors newbie
Original poster
Mar 23, 2013
3
0
Zurich
Hi there folks,
I am ashamed / embrassed :D - I managed to hide an external Volume yesterday using terminal - though it was'nt what I needed in the end... Now I need to unhide the volume but cannot find the correct Terminal Code to do this... I'm running mac os x 10.13.4

Is there anyone out there that can assist me? Hold my hand in code terms :(

fyi - I used this code to hide it...
1) Make sure the disk you want to prevent mounting at boot is mounted.
2) Launch Terminal.
3) Run the following command to print out information about the disk:
diskutil info /Volumes/<volume that shouldn't be mounted>
4) Locate the line that starts with: Volume UUID:. Select the UUID (Universal Unique Identifier) that follows on the rest of the line. It will be something that looks like XXXXXXXXXXXXXXXXXXXXXX. Your value will be different
5) Copy the UUID to the clipboard.
6) Navigate to /etc by typing the following and pressing enter:
cd /etc
7) Edit (or create) an fstab file by typing the following and pressing enter:
sudo vifs
8) Enter the following line, substituting the UUID you copied in step 5). (Note: vifs uses the value of the EDITOR environment variable to pick the text editor to use. This article assumes you are using the default value of vim.) In vim, the editor starts in command mode. To add a new line, use the arrow keys to move to the end of the document and press the o key to append a new line and enter edit mode. Then type the following:
UUID=XXXXXXXXXXXXXXXXXXXXXX none hfs rw,noauto
and press the return key.
9) Type escape to return to command mode and then type ZZ (shift key down) to save and exit vifs (or some other method to save and exit if you are using something other than vim).
10) Type the following and press enter to reset the auto mounter:
sudo automount -vc
11) Quit Terminal


Thank you Guys n Gals...
B
 

Bildbearbeiter

macrumors newbie
Original poster
Mar 23, 2013
3
0
Zurich
Hi there folks,
I am ashamed / embrassed :D - I managed to hide an external Volume yesterday using terminal - though it was'nt what I needed in the end... Now I need to unhide the volume but cannot find the correct Terminal Code to do this... I'm running mac os x 10.13.4

Is there anyone out there that can assist me? Hold my hand in code terms :(

fyi - I used this code to hide it...
1) Make sure the disk you want to prevent mounting at boot is mounted.
2) Launch Terminal.
3) Run the following command to print out information about the disk:
diskutil info /Volumes/<volume that shouldn't be mounted>
4) Locate the line that starts with: Volume UUID:. Select the UUID (Universal Unique Identifier) that follows on the rest of the line. It will be something that looks like XXXXXXXXXXXXXXXXXXXXXX. Your value will be different
5) Copy the UUID to the clipboard.
6) Navigate to /etc by typing the following and pressing enter:
cd /etc
7) Edit (or create) an fstab file by typing the following and pressing enter:
sudo vifs
8) Enter the following line, substituting the UUID you copied in step 5). (Note: vifs uses the value of the EDITOR environment variable to pick the text editor to use. This article assumes you are using the default value of vim.) In vim, the editor starts in command mode. To add a new line, use the arrow keys to move to the end of the document and press the o key to append a new line and enter edit mode. Then type the following:
UUID=XXXXXXXXXXXXXXXXXXXXXX none hfs rw,noauto
and press the return key.
9) Type escape to return to command mode and then type ZZ (shift key down) to save and exit vifs (or some other method to save and exit if you are using something other than vim).
10) Type the following and press enter to reset the auto mounter:
sudo automount -vc
11) Quit Terminal


Thank you Guys n Gals...
B
[doublepost=1533124090][/doublepost]ah ha solved
remove the no before auto - Doh.
UUID=XXXXXXXXXXXXXXXXXXXXXX none hfs rw,auto
[doublepost=1533124132][/doublepost]Solved - Please close thread
 

KoolAid-Drink

macrumors 68000
Sep 18, 2013
1,814
844
USA
Just a note for others - the free Onyx utility hides/unhides volumes easily, as well, if you don't want to muck around in the Terminal.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.