Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: imcintyre on February 24, 2007, 05:47:08 PM

Title: Unplug/Disconnect USB Drive/Device (Solved)
Post by: imcintyre on February 24, 2007, 05:47:08 PM
I just finished running dar2 backup to usb drive. Worked well.

With windows there was the whole stop the usb device etc. Is there a procedure like this for SME 7.1 or just pull the plug?

Thx in advance for your help
Title: Re: Unplug/Disconnect USB Drive/Device
Post by: byte on February 24, 2007, 07:17:57 PM
Quote from: "imcintyre"

Is there a procedure like this for SME 7.1 or just pull the plug?


Make sure it's not mounted before pulling plug.
Title: Unplug/Disconnect USB Drive/Device (Solved)
Post by: imcintyre on February 24, 2007, 08:52:39 PM
Well I ran dar2, and used target as /media/usbdisk. I am a noob so I don't know too much.

How do I unmount it?

Thx in advance
Title: Unplug/Disconnect USB Drive/Device (Solved)
Post by: sonoracomm on February 24, 2007, 10:00:42 PM
umount /media/usbdisk
Title: Unplug/Disconnect USB Drive/Device (Solved)
Post by: imcintyre on February 24, 2007, 10:53:46 PM
Forgive my ignorance but I tried that code

Quote
umount /media/usbdisk


and got the following:

Quote
[root@mcserver1 ~]# unmount/media/usbdisk
-bash: unmount/media/usbdisk: No such file or directory
[root@mcserver1 ~]# umount/media/usbdisk
-bash: umount/media/usbdisk: No such file or directory
Title: Unplug/Disconnect USB Drive/Device (Solved)
Post by: cactus on February 24, 2007, 11:43:40 PM
Quote from: "imcintyre"
Forgive my ignorance but I tried that code

Quote
umount /media/usbdisk


and got the following:

Quote
[root@mcserver1 ~]# unmount/media/usbdisk
-bash: unmount/media/usbdisk: No such file or directory
[root@mcserver1 ~]# umount/media/usbdisk
-bash: umount/media/usbdisk: No such file or directory
Doing the same time twice won't help you ;-)

Add a space between umount and /media/usbdisk just like in the example, that should work.
Title: Unplug/Disconnect USB Drive/Device (Solved)
Post by: imcintyre on February 25, 2007, 04:09:13 AM
:shock: It wasn't the same thing, I mispelt, and as it turned out I missed a space too.

Anyhow, in the meantime I shut down the server, unplugged it and then removed the drive.

I'll back up tonight and if I have any problems I'll return here.

Thx again
Title: Unplug/Disconnect USB Drive/Device (Solved)
Post by: imcintyre on February 25, 2007, 04:17:09 PM
all good thx.
Title: Re: Unplug/Disconnect USB Drive/Device
Post by: judgej on February 26, 2007, 01:12:15 AM
Quote from: "imcintyre"
I just finished running dar2 backup to usb drive. Worked well.

With windows there was the whole stop the usb device etc. Is there a procedure like this for SME 7.1 or just pull the plug?


After dar2 completes, it will automatically unmount the USB disk anyway. That is why your umount command failed: the disk was already unmounted.

After that, just pull the plug or turn it off.

-- JJ
Title: Unplug/Disconnect USB Drive/Device (Solved)
Post by: imcintyre on February 26, 2007, 04:46:25 AM
I saw that when I ran the verbose version or bothered to read what there was. Thx again