hard disk device names

Greg Hamilton gregh at object-craft.com.au
Tue Dec 2 17:26:21 PST 2003


disktool -l | grep Backup

Note to self: engage brain before annoying people with inane questions.

On 03/12/2003, at 11:55 AM, Greg Hamilton wrote:

> I have a USB hard drive which I use for backups. I use disktool to 
> mount the filesystem at the start of the backup and unmount it when 
> it's done. To use disktool this way I need to know the device name for 
> the USB drive. At the moment it is /dev/disk2s3. If I reformat the 
> drive it changes. Not really a problem, I can just modify the backup 
> script if the device name changes.
>
> It will become a problem when I get a few more drives and start 
> rotating them. Each drive will have a volume label something like 
> 'Backup_nn' but will have a different device name. The script won't 
> know which drive is currently attached to the machine. The drive won't 
> be mounted at the start of the backup.
>
> Is there a way to get a list of attached but un-mounted file systems 
> from which I could derive the device name for the attached 'Backup_nn' 
> drive?
>
> _______________________________________________
> MacOSX-admin mailing list
> MacOSX-admin at omnigroup.com
> http://www.omnigroup.com/mailman/listinfo/macosx-admin
>




More information about the MacOSX-admin mailing list