Koozali.org: home of the SME Server

backup to USB Hard drive

Adam Thompson

backup to USB Hard drive
« on: December 23, 2003, 12:15:38 AM »
I am wondering / Hoping that I will be able to set up an external USB Hard drive to work in Version 6.0.
I did try this with version 5.6 but was not successful. Nor have I ever heard of anyone successfully doing this.
Some help or advice would be greatly appreciated.

Adam

Grub

Re: backup to USB Hard drive
« Reply #1 on: December 23, 2003, 01:52:28 AM »
How did you mount it, and what does fdisk /dev/sda (option p ) print ?

Arne

Re: backup to USB Hard drive
« Reply #2 on: December 23, 2003, 01:58:57 AM »
I was thinking about the same .. How do you mount it .. and then I remembered one thing .. I saw somewhere a few days ago a automount contrib, I wonder if that can be used (????)

I dont now if it could be the autofs modules at dungog ??

http://www.dungog.net/sme/files/index.php

One other problem: What kind of file system at the USB HD ? Ext2/EXT3/FAT32 ??


Arne

Re: backup to USB Hard drive
« Reply #4 on: December 23, 2003, 02:59:10 AM »
Testing on a 5.6. I'm wondering if this usb hd had not  got mounted if it were not because the filesystem of the ntfs were ntfs:

[root@testserver mnt] mount /dev/sda1 /mnt/test

mount: fs type ntfs not supported by kernel

Arne

Re: backup to USB Hard drive
« Reply #5 on: December 23, 2003, 03:21:45 AM »
As my USB hd did not mount because of ntfs a put in a USB memory stick.

I don't know if this have fat 16 or fat 32. (It had the filesystem when I bought it.)

I mounted it with this command:  mount /dev/sdb1 /mnt/test

And then I got connection.

I installed the autofs modules of Dungog, but I think this did not help. (Only for CD/Floppy/Zip).

I also did some experiments loading aditional usb kernel modules using
modprobe and modprobe -l

I don't know if this had any effect or if it were neccesarry.
There were actually one kernel module that were named usb-storage or something like that. Believe i did load that, but don't know if it were neccesarry or not.

Next step .. Will try to find a new usb hd .. Please leave a msg if you make it work with a USB HD !!

Arne

Re: backup to USB Hard drive
« Reply #6 on: December 23, 2003, 03:44:05 AM »
I made a reboot and a new test:

It appeared to be neccesarry to load one kernel module, the usb-storage.
I also made a misprint above /dev/sdb1 should be /dev/sda1

I don't know if the dungog modules is a part of this, I think not.

I think theese are the two commands that is neccessarry to set up the connections (at least it work on a memory stick.)

1. modprobe usb-storage
2. mount /dev/sda1 /mnt/test    (Have first set up the /mnt/test directory)


Hope this will work against a hd also. Do you have any ideas about which commands to use for copying over the right and neccessary files (if the connection is there) ?

Offline jpeters

  • *
  • 20
  • +0/-0
Re: backup to USB Hard drive
« Reply #7 on: February 20, 2004, 02:52:22 AM »
Quote from: "Arne"
I made a reboot and a new test:

It appeared to be neccesarry to load one kernel module, the usb-storage.
I also made a misprint above /dev/sdb1 should be /dev/sda1

I don't know if the dungog modules is a part of this, I think not.

I think theese are the two commands that is neccessarry to set up the connections (at least it work on a memory stick.)

1. modprobe usb-storage
2. mount /dev/sda1 /mnt/test    (Have first set up the /mnt/test directory)


Hope this will work against a hd also. Do you have any ideas about which commands to use for copying over the right and neccessary files (if the connection is there) ?


Arne,

I was successful using just the modprobe and mounting commands you suggested. I don't have dungog mods installed so I hope that answers if it was needed or not.

I'm not sure if this would help for copying files but I am using rsysnc -auv to backup all my important data to the external ikebana USB2 drive.

Jpeters
........................