Hide Mount Icon

Moderators: jhartley, MSR734, nola

Hide Mount Icon

Post by churnd » Sat Dec 08, 2012 4:02 pm

Is there a way to not show a mounted icon for certain ZFS filesystems in Finder, but still browse it via command line? I have a drive I'm dedicating to storing snapshots & don't want to see it in Finder.
churnd Offline


 
Posts: 9
Joined: Sat Sep 15, 2012 8:28 am

link

Post by grahamperrin » Sat Dec 08, 2012 5:28 pm

With the property suggested at viewtopic.php?p=3459#p3459 you'll see a volume only when the file system is mounted. Backups can occur without a mount.

You'll see the file system when using the command line to browse, but I assume that browsing backups will be infrequent.
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: Hide Mount Icon

Post by churnd » Sun Dec 09, 2012 9:24 am

When I create a zfs pool of a single drive with canmount=noauto, it mounts & shows up in Finder. Which property did you mean exactly, or is there some other way of keeping it from showing up?
churnd Offline


 
Posts: 9
Joined: Sat Sep 15, 2012 8:28 am

canmount=noauto, chflags(1)

Post by grahamperrin » Mon Dec 10, 2012 12:52 pm

OK, so maybe canmount=noauto is not intended for use with a file system at the root of a pool.

Either that, or there's room for improvement to ZEVO … maybe with 1.1.1 the dynamic import is without regard to the canmount property. 
#zevo

Alternatively

Maybe use chflags(1) to flag the root of the volume as hidden.
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: canmount=noauto, chflags(1)

Post by churnd » Mon Dec 10, 2012 10:00 pm

grahamperrin wrote:OK, so maybe canmount=noauto is not intended for use with a file system at the root of a pool.

Either that, or there's room for improvement to ZEVO … maybe with 1.1.1 the dynamic import is without regard to the canmount property. 
#zevo

Alternatively

Maybe use chflags(1) to flag the root of the volume as hidden.


chflags hidden is a pretty clever idea. :) Seems like it works great. Just do
Code: Select all
chflags hidden /Volumes/pool
, then restart Finder & /Volumes/pool is mounted, but doesn't show up in Finder. Subsequent ZFS filesystems on "pool" do. The entire directory structure is browseable via command line. Solves my problem 100%!
churnd Offline


 
Posts: 9
Joined: Sat Sep 15, 2012 8:28 am

Re: Hide Mount Icon

Post by churnd » Wed Dec 12, 2012 5:46 am

Experimenting with this more, I think ZEVO would be better off mounting only the pool itself in Finder, while leaving the subsequent ZFS filesystems as just folders (albeit maybe with a special folder icon, not a drive icon). Reason for this being is if I have 10 filesystems, I'm going to have 11 ZEVO icons on my desktop. That's a lot. I realize ZFS filesystems are actual "disk partitions" & this request is probably not feasible, but just a thought. Maybe there's a better way to resolve this. I'm interested in what other users do.
churnd Offline


 
Posts: 9
Joined: Sat Sep 15, 2012 8:28 am

desktop view of ZEVO volumes

Post by grahamperrin » Thu Dec 13, 2012 1:11 am

There's a preference to hide child file systems but as you probably know, no show = no index.

My Finder preference to show as little as possible on the desktop began years ago, no regrets. To me, it always seemed illogical to show on the desktop something that's truly not on the desktop. Whenever I want a list of volumes,

Shift-Command-C
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom


Return to General Discussion

Who is online

Users browsing this forum: ilovezfs and 5 guests

cron