I belive it would be /dev/sda1 and not just sda - sda1 is going to be
the first partition on the usb stick. You can think of it as a hard
drive with multiple partitions - the main drive is hda and then the
partitions are hda1, hda2, etc.
As far as seeing the files on the drive, before unplugging the usb
drive, you must first unmount it, otherwise the files may not be written
and closed correctly.
umount /mnt/usb
Is this something you are going to be doing regularly, or just when
needed (ie. manual or automated)?
Martin
Bill Sandiford wrote:
Exactly what Johannes said, but based on the output of your /var/log/messages I
think the second step will be
mount /dev/sda /mnt/usb
-----Original Message-----
From: Johannes Vanderknyff [mailto:[email protected]]
Sent: Tuesday, June 16, 2009 3:13 PM
To: [email protected]
Cc: [email protected]
Subject: Re: [on-asterisk] Backup and restore to a USB stick
Hmmm. Doesn't look like it is "mounted" yet. I just googled "linux how
to mount usb drive"...
Create the directory
mkdir /mnt/usb
Next, mount the drive
mount /dev/sda1 /mnt/usb
Then, see if it works:
cd /mnt/usb
ls
You should see a list of the files on your USB drive.
Johannes
On Tue, Jun 16, 2009 at 3:07 PM, Henry L.Coleman<[email protected]> wrote:
This is what I get
r...@pbx:~ $ mount
/dev/hda2 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
-----------------
Henry L. Coleman
[VoIP-PBX.ca]
=================
Johannes Vanderknyff<
(NOTE: I don't know much about FreePBX)
If you can get to the console, type "mount" and that should give you a
listing of "mounted" filesystems.
If FreePBX mounted the USB drive, you'll be good to go and you can just copy
(cp) the files to that location.
Johannes
On Tue, Jun 16, 2009 at 1:48 PM, Henry L.Coleman <[email protected]>wrote:
Hi all, as many are aware FreePBX has a backup and restore function that
can schedule a backup of conf, cdr, and vmail.
This works very well but I need to back the files up to a USB stick instead
of a default backup directory.
My question (not being a good Linux man) is how do I the redirect the
backup path to this device.
When I plug the stick in, the consule indicates that the stick is
recognised and is working but does't tell me where
in the directory structure to find it.
Help please?
Henry L.Coleman [VoIP-PBX.ca]
-------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]