View Full Version : [ubuntu] Backup Commands from shell prompt

November 30th, 2010, 05:53 PM
I have 10.04 LTS in a netbook, during a package add process, a series of files were deleted one after another before I interupted the process, so the netbook does not start.

I have connected a seagate external drive for backup.

In the command prompt

root@username:~# ls //dev/disk/by-path shows:


ls //dev/disk/by-id shows


ls //dev/disk/by-label shows

FreeAgent\x20Drive ( yes, with a reverse slash)

ls //dev/disk/FreeAgentx29Drive merely returns

What is the syntax for copying the contents of the Ubuntu hard disk folder by folder? I tried

cp //home/username/filename //dev/disk/FreeAgent\x20Drive

The command is accepted,I tried the mv command with the same syntax for another file, that command was also accpeted, but when I connected the Drive to another ubuntu computer and examined the contents, I did not find the files.
Am I making an error in the command?

Thank you.

November 30th, 2010, 07:48 PM
Where is the disk mounted when you connect it. If it's auto-mounted, it should show up in /media. You may need to be root, to move the files to the external drive, depending on ownership.

December 1st, 2010, 06:12 AM
Thank You.

The system does not load the desktop, goes as far as command prompt root@computername:~# ls /media shows names of usb drives that were once connected. The disk does not show up.

This after a reboot.

Now what do I do?