Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I only have access to the command line I need to backup my data (on the user folder) to a pen.

I don't know where/how can I do this is order to access the pen, and then do the cp command.

How can we do this?

Thanks.

share|improve this question

1 Answer

up vote 1 down vote accepted

1. Find what the drive is called

You'll need to know what the drive is called to mount it. To do that fire off:

sudo fdisk -l

You're looking for a partition that should look something like: /dev/sdb1. Remember what it's called.

2. Create a mount point

Create a new directory in `/media` so you can mount the drive onto the filesystem:

    sudo  mkdir /media/usb

3. Mount!

sudo mount /dev/sdb1 /media/usb

When you're done, just fire off:

sudo umount /media/usb
share|improve this answer
I can't vote up. :( Sorry. I missed my normal user. :( Can I please ask if cp -r * /media/usb will copy ALL files and folders ? – MEM Apr 29 '11 at 0:56
I'd use rsync -- something like: rsync -avh ~/directory/ /media/usb/ – Oli Apr 29 '11 at 1:13
Thank you. Then I can perhaps burn a reconvery cd or somehting? – MEM Apr 29 '11 at 1:31
@user15301 I don't know for that. Sounds like something for another question! – Oli Apr 29 '11 at 1:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.