- Joined
- Jan 4, 2011
- Messages
- 2
- Reaction score
- 0
- Points
- 1
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!
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!