View Single Post
  #8   (View Single Post)  
Old 1st January 2014
thirdm thirdm is offline
Spam Deminer
 
Join Date: May 2009
Posts: 248
Default

Oh, one other thing. I found it useful in syncing to usb to first check that the right drive was mounted. You know, you can have a lot of different things you might stick in a usb port. I was doing this before on slackware by using fstab to mount to a certain directory based on disk identifier somehow IIRC and checking in script that that directory was mounted to an sdaX or something before proceeding. I think now that I'm back to OpenBSD I can check with the disk uuid from disklabel: e.g. disklabel sd0a | grep '^duid: 2319282e388bd9dc', but haven't added this back in yet.

Last edited by thirdm; 1st January 2014 at 07:02 PM.
Reply With Quote