New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Mount USB drive at system boot


Post Reply New Thread Subscribe

 
Thread Tools
KnaveOfHearts

 
Member Since: Jan 04, 2011
Posts: 2
KnaveOfHearts is on a distinguished road

KnaveOfHearts is offline
I have a Mac Mini PowerPC with OSX 10.4 installed. The Mac will be used as a "hub" file server for Unison synchronization of several "spoke" computers, each running Linux, Mac OS, or Windows. The Unison file synchronizer software will access the Mac from the spoke computers using ssh from the command line. In somewhat unfamiliar terrain, I still have gotten the basic setup working, except for one bit.

The drive for backup is a USB 2 hard drive, that I have formatted with hfs. By default, the Mac OS does not mount this drive unless someone logs in through the Mac's GUI. I do not want to have to log in through the Mac's GUI to mount the drive, and, in fact, I don't expect the Mac to have a monitor. With some experimentation, I have found that the following command suffices to manually mount the drive when logged in remotely as root:
mount -t hfs /dev/disk1s3 /redMyBook/

However, I would like to have the drive mounted once and only once, every time the system boots, without anyone having being logged in. That way, I can set Unison to sync the spokes using cron (or the equivalent). I am sure I can kludge something but there must be a best/proper way to set this up?

Thanks!
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,209
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
/etc/fstab is your key. Take a look at post #3 here. It's older but still looks to be accurate.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks
KnaveOfHearts

 
Member Since: Jan 04, 2011
Posts: 2
KnaveOfHearts is on a distinguished road

KnaveOfHearts is offline
Thanks vansmith, that was very useful, although not entirely accurate, for my configuration at least. That post recommends two things, an entry in fstab and an automount. The recommended automount:
Code:
sudo defaults write /Library/Preferences/SystemConfiguration/autodiskmount AutomountDisks
produced the following response:
Code:
AutomountDisks
2011-01-04 19:15:00.421 defaults[595] 
Rep argument is not a dictionary
Defaults have not been changed.
It turns out that all that was needed was to create fstab and give it an entry. I used:
Code:
UUID=<value of uuid>       /redMyBook      hfs     rw,auto 1       2
I am not sure this is 100% correct (in particular whether it should be hfs or hfs+; whether I need the ",auto"; whether it should be 1 2 or 0 0 or something else), but it does seem to work. I referred to the last couple posts in the following thread: Apple - Support - Discussions - Leopard and /etc/fstab ...
QUOTE Thanks

Post Reply New Thread Subscribe


« Can you use bundled Leopard disc on iMac G4? | Installing Skype - problems »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Mac OS X Boot Ubuntu from Usb thumb drive. Help please. Alexandermag89 Running Windows (or anything else) on your Mac 11 06-23-2011 08:51 PM
How to: Upgrade Hard Drive 2009 Macbook Pro 13 s2odin Apple Notebooks 9 12-04-2010 02:06 PM
Format and partition external drive if you want dual use Mac / PC michelangelo Other Hardware and Peripherals 0 05-08-2008 01:11 PM
Can I boot from an external USB drive? Lunatic Other Hardware and Peripherals 1 03-13-2007 12:33 AM
Cannot boot iMac from CD drive jhanshew Apple Desktops 0 01-05-2004 01:49 AM

All times are GMT -4. The time now is 09:26 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?