From: David Cantrell Date: 23:28 on 12 Mar 2007 Subject: Mounting disks under OS X I have some disks which go to sleep if you don't use them often enough. Yeah, they wake up if you poke them, but waiting for them to spin up is annoying. So I wrotea little cron job to periodically poke them by touching a file. This is a Mac, so they get mounted at boot time in /Volumes/$diskname. Those directories don't really exist until it tries to mount the disk. When it mounts the disk, it first creates the directory (which must not previously exist), then says "wakey wakey Mr. Disc rise and shine it's a glorious day here in Dave's flat!". There's enough time between it creating the directory and the disk waking up that sometimes my cron jobs that run every minute get a chance to go "ooh, somewhere I can touch a file!". Then when the disk has stretched, yawned, scratched its arse and so on OS X goes "oh noes, teh file is in ur directory!!! lolcats!!!" and so creates another directory called "/Volumes/$diskname 1" and mounts it there. Without bothering to even make a cute honking noise like what every other error seems to. At which point all my other fucking cron jobs go wrong, backups don't happen, dogs lie down with cats, blah blah blah. Bah. So now the cron jobs check that there's actually a filesystem mounted before doing anything.
From: Peter da Silva Date: 04:18 on 13 Mar 2007 Subject: Re: Mounting disks under OS X On Mar 12, 2007, at 6:28 PM, David Cantrell wrote: > This is a Mac, so they get mounted at boot time in /Volumes/$diskname. Yeh. Hateful. I tried setting them up to automount somewhere sane, and they stuck them in /volumes anyway, so I statically mounted them in fstab, and Finder decided they weren't there, so I installed AMD, and then Finder went totally postal, and I had to reboot, so I finally gave up. Hateful.
From: David Cantrell Date: 12:49 on 13 Mar 2007 Subject: Re: Mounting disks under OS X On Mon, Mar 12, 2007 at 11:18:02PM -0500, Peter da Silva wrote: > On Mar 12, 2007, at 6:28 PM, David Cantrell wrote: > >This is a Mac, so they get mounted at boot time in /Volumes/$diskname. > Yeh. > Hateful. That's not really what I hate. I don't care *where* they mount, provided that they all mount as subdirs of the same directory, and that each disk always mounts in precisely the same place. On Mon, Mar 12, 2007 at 09:27:12PM -0700, Phil Pennock wrote: > On 2007-03-12 at 23:28 +0000, David Cantrell wrote: > > I have some disks which go to sleep if you don't use them often enough. > > Yeah, they wake up if you poke them, but waiting for them to spin up is > > annoying. > This happens even after unchecking: > System Preferences > Energy Saver > (each power mode) > Sleep tab > > "Put the hard disk(s) to sleep when possible" Yes. I suppose the really hateful thing is that if OS X insists on mounting disks in a particular place it has to create a directory there at all before mounting them. My cron jobs are^Wwere also hateful for not bothering to check that I was writing to the filesystems I thought I was writing to.
From: Peter da Silva Date: 13:02 on 13 Mar 2007 Subject: Re: Mounting disks under OS X Right now I'm hating that Mail.app thinks "quote level" belongs in the "format" menu. On Mar 13, 2007, at 7:49 AM, David Cantrell wrote: > That's not really what I hate. I don't care *where* they mount, > provided that they all mount as subdirs of the same directory, and that > each disk always mounts in precisely the same place. I haven't yet had this happen to me, but I'm just waiting for a thumb drive with the wrong name to be slotted in my laptop when I plug in my backup drive. I've had too much experience with that kind of thing happening as a result of ad-hoc namespaces overlapping in the past.
Generated at 10:27 on 16 Apr 2008 by mariachi