Pelican Parts
Parts Catalog Accessories Catalog How To Articles Tech Forums
Call Pelican Parts at 888-280-7799
Shopping Cart Cart | Project List | Order Status | Help



Go Back   Pelican Parts Forums > Miscellaneous and Off Topic Forums > Off Topic Discussions


Reply
 
LinkBack Thread Tools Rate Thread
Author
Thread Post New Thread    Reply
Registered
 
slodave's Avatar
 
Join Date: Sep 2005
Location: Encino Man
Posts: 22,394
Garage
Send a message via Skype™ to slodave
Linux question

Hi!

I have been using Linux for about 10 years and have found almost all answers to my problems via the web or just plain messing around until it works. Now I am stuck. I need to be able to plug and unplug two USB hard drives. The catch is that they are used for backing up and need to be swapped out each day. I have done this before without problem, but twice now (two different computers) the drives get assigned /dev/sdb and /dev/sdc. The backup program flips out cause it is expecting both drives to be /dev/sdb. How can I change the drive number? Someone mentioned using udev, but I can not figure out what to do. Any help would be greatly appreciated!

Thanks!!!

Dave

EDIT: autofs is coded to use /dev/sdb. I can't go in on a daily basis and change the config file for autofs.

__________________
Make sure to check out my balls in the Pelican Parts Catalog! 917 inspired shift knobs.

'84 Targa - Arena Red - AX #104
'07 Toyota Camry Hybrid - Yes, I'm that guy...
'01 Toyota Corolla - Urban Camouflage - SOLD
Old 04-19-2006, 04:04 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #1 (permalink)
Registered
 
id10t's Avatar
 
Join Date: Mar 2003
Posts: 10,320
grep the dmesg output to see what device it is assigned to, then mount it appropriately.
Code:
dmesg | grep -A 3 scsi[0-9]\ \:\ SCSI\ emulation\ for\ USB\ Mass\ Storage | tail -1 | cut -f 3 -d " " | cut -f 1 -d :
gives it to me on my home debian box... of course, you'd want toa adjust the grep for a different key or improve it to a regular expression to make sure you are getting the right thing to mount. Maybe.

So tell autofs to ignore it, and write a wrapper script to handle the mounting and just call the wrapper at the start of your backup script.
__________________
“IN MY EXPERIENCE, SUSAN, WITHIN THEIR HEADS TOO MANY HUMANS SPEND A LOT OF TIME IN THE MIDDLE OF WARS THAT HAPPENED CENTURIES AGO.”
Old 04-19-2006, 04:36 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #2 (permalink)
Registered
 
slodave's Avatar
 
Join Date: Sep 2005
Location: Encino Man
Posts: 22,394
Garage
Send a message via Skype™ to slodave
I am actually using a backup program - Yosemite Backup. No backup script. Not sure if I could tell YB to run a script before and after. I will look into that. Finding the scsi/usb drive is not an issue.

This has worked before. I had two identical WD usb drives and things worked well until we noticed that one had a very slow throughput. It was RMA'd and the one that came back has a different model number even though they look the same and have the same capacity.

Dave

__________________
Make sure to check out my balls in the Pelican Parts Catalog! 917 inspired shift knobs.

'84 Targa - Arena Red - AX #104
'07 Toyota Camry Hybrid - Yes, I'm that guy...
'01 Toyota Corolla - Urban Camouflage - SOLD
Old 04-19-2006, 04:49 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #3 (permalink)
Reply


 


All times are GMT -8. The time now is 09:53 AM.


 
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0
Copyright 2025 Pelican Parts, LLC - Posts may be archived for display on the Pelican Parts Website -    DMCA Registered Agent Contact Page
 

DTO Garage Plus vBulletin Plugins by Drive Thru Online, Inc.