How to copy files from one HDD to other HDD using Ubuntu

Asked by maddox on 2007-08-20

Hello,

I am booting from Ubuntu ultimate CD and after loading it and I am able to see and browse my Laptop HHD (OS XP) files as well my USB (enclosure HHD) drive files . The problem I have is that I cannot copy files from USB (enclosure HDD) to laptop HDD. The error I am getting is " you don't have permission to write to this folder". Can someone tell me what is the procedure to copy files between HHD's?

Many thanks in advance,

Maddox

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
2007-08-22
Last reply:
2007-08-24

type this command on the terminal

$ sudo cp Origin Destiny

or try:

$ su
$ cp Origin Destiny

like

$ cp /home/user/file /media/xp/file2

maddox (polobilci) said : #2

Thanks Cesare for your help. Still doesn't work.
When I type $ su cp origin destiny
I get the following message : cp: cannot stat "origin": No such file or directory

But If I type: $ sudo apt--get install ntfs-3g

I get the message : mount your windows drive so you can read and write

My question here is "How to mount NTFS Volume or Drive"?

James Boyette (j-boyette) said : #3

Assuming it is the first partition of the first harddrive, /dev/hda1, open a terminal, Applications -> Accessories -> Terminal, and do

sudo mkdir /media/windows
sudo mount -t ntfs /dev/hda1 /media/windows
sudo ls -la /media/windows

maddox (polobilci) said : #4

James,

Thanks for helping me out here but being new to Ubutu/Linux I am having problems to Use Ubuntu to copy files from a USB DRIVE (enclosure HDD with OS XP) to a Laptop HHD (OS XP), where the Ubuntu is installed from CD.
 Here is what I am getting while trying to copy ;

Error while copying to "/media/disk-1/Data & IPT".

you don't have permissions to write to this folder.

Then while I am doing this I am getting stack and don't know what to do further , how to fix permission problems etc;

ubuntu@ubuntu:~$ sudo apt-get install ntfs-3g
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libntfs-3g2
The following NEW packages will be installed:
  libntfs-3g2 ntfs-3g
0 upgraded, 2 newly installed, 0 to remove and 111 not upgraded.
Need to get 117kB of archives.
After unpacking 332kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
  libntfs-3g2 ntfs-3g
Install these packages without verification [y/N]? y
Err http://repoubuntusoftware.info feisty/all libntfs-3g2 1:1.516-1~feisty0.1
  Could not resolve 'repoubuntusoftware.info'
Err http://repoubuntusoftware.info feisty/all ntfs-3g 1:1.516-1~feisty0.1
  Could not resolve 'repoubuntusoftware.info'
Failed to fetch http://repoubuntusoftware.info/./libntfs-3g2_3a1.516-1~feisty0.1_i386.deb Could not resolve 'repoubuntusoftware.info'
Failed to fetch http://repoubuntusoftware.info/./ntfs-3g_3a1.516-1~feisty0.1_i386.deb Could not resolve 'repoubuntusoftware.info'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
ubuntu@ubuntu:~$ sudo mount -t ntfs /dev/disk/ media/windows
mount: mount point media/windows does not exist
ubuntu@ubuntu:~$ sudo mkdir /media/windows
mkdir: cannot create directory `/media/windows': File exists
ubuntu@ubuntu:~$ sudo mount -t ntfs /dev/disk/ media/windows
mount: mount point media/windows does not exist

if i do this; I am not making progress either;

ubuntu@ubuntu:~$ sudo mkdir /media/windows
ubuntu@ubuntu:~$ sudo mount -t ntfs /dev/disk/ media/windows
mount: mount point media/windows does not exist
ubuntu@ubuntu:~$ sudo mount /dev/disk /mnt
mount: /dev/disk is not a block device

Does anyone know what I should do to solve my issue?

Many thanks in advance,

Maddox

mount: mount point media/windows does not exist <-- You're missing a slash :)
/dev/disk? That doesn't exist. You should refer to an existing partition.

lets say your windows partition is the /dev/sda1 or /dev/hda1 partition. If you don't know, then you can just try.
The location /media/windisk is just an example. You can use whatever you want. You can also use a mount point in your home, if you want, but it's customary to place them in /media or /mnt.

1) Create a mount point. You need administrative rights to do this, so: sudo mkdir /media/windisk
2) Mount the partition in the new directory: sudo mount -t ntfs /dev/hda1 /media/windisk

If that doesn't work, repeat the second step using /dev/sda1 instead.

Hope that helps :)

Can you help with this problem?

Provide an answer of your own, or ask maddox for more information if necessary.

To post a message you must log in.