• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Safely removing USB drive  (Read 1372 times)
Skywalker
Newbie
*

Karma: 0
Posts: 19


View Profile
« on: June 14, 2009, 03:01:45 AM »

Hi,

Can somebody tell me how I  can Safely remove USB Hard drive with the Sheeva Plug.
I am always affraid when I just pull out the USB plug (USB Powered Drive). I cant imagine it to be safe.

So how should I actually do this with the plug ?

Kind regards,

Luke
Logged

dattaway
Jr. Member
**

Karma: 5
Posts: 91



View Profile WWW
« Reply #1 on: June 14, 2009, 06:11:27 AM »

Unmount and sync the drive first.  Usually unmounting will sync it.  They are made to hotswap.
Logged

Skywalker
Newbie
*

Karma: 0
Posts: 19


View Profile
« Reply #2 on: June 14, 2009, 10:21:24 AM »

Theoretically they are made for Hot swapping, but I wonder if the heads get the time to go to home position if you power them down. But that is another discussion.

I tried umount already, but the plug told me some process was using the drive, so I couldnt umount it.

How do I sync ? Do I first sync and then umount , or the other way around ?

Kind regards,

Luke
Logged

dattaway
Jr. Member
**

Karma: 5
Posts: 91



View Profile WWW
« Reply #3 on: June 14, 2009, 11:34:00 AM »

When powered down, the hard drive motor is switched into a generator and the head instantly tracks home with plenty of rpm's to spare.  All drives made in the last 20 years should do it.

If your hard drive is busy by some process, lsof can check to see what is tying it up.  For example,

lsof /dev/sdb1

...will list the processes using that partition.  You can pipe the list of things to be killed directly to "kill" with:

kill -HUP `lsof -t /dev/sdb1`

and then

umount /dev/sdb1;sync
Logged

Pages: [1]
Print
Jump to: