LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-04-2013, 08:45 AM   #1
Vodkaholic1983
Member
 
Registered: May 2010
Distribution: Windows / Debian
Posts: 163

Rep: Reputation: 0
Can I copy files from a ntfs drive on ubuntu server?


Hello all, I am a windows user and my CPU died on me the other day

Now I have a 3TB hard driver which has all my media on from my windows pc and I want to move it to my ubuntu server if this can be done?

Ive put the HDD into a external hard drive case and plugged it into the server.

Code:
fdisk -l

Disk /dev/sda: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000af9bd

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048    39063551    19530752   82  Linux swap / Solaris
/dev/sda2   *    39063552    48828415     4882432   83  Linux
/dev/sda3        48828416  1465147391   708159488   83  Linux

Disk /dev/sdb: 2000.4 GB, 2000397852160 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907027055 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000c4a5b

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048  3907024895  1953511424   fd  Linux RAID autodetect

Disk /dev/sdc: 2000.4 GB, 2000397852160 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907027055 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00006463

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1            2048  3907024895  1953511424   fd  Linux RAID autodetect

Disk /dev/sdd: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x0003e7d0

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1            2048  3907028991  1953513472   fd  Linux RAID autodetect

Disk /dev/md0: 6001.2 GB, 6001187618816 bytes
2 heads, 4 sectors/track, 1465133696 cylinders, total 11721069568 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 524288 bytes / 1572864 bytes
Disk identifier: 0x00000000

Disk /dev/md0 doesn't contain a valid partition table

WARNING: GPT (GUID Partition Table) detected on '/dev/sdi'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdi: 801.6 GB, 801569726464 bytes
256 heads, 63 sectors/track, 97071 cylinders, total 1565565872 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xea8fccae

   Device Boot      Start         End      Blocks   Id  System
/dev/sdi1               1  4294967295  2147483647+  ee  GPT
Now I am not very good with commands so I was kind of hoping some one would be able to step by step me on what I would need to do to move this media from A to B

I know it's asking alot but I don't want to lose this media.

Cheers
 
Old 05-04-2013, 09:21 AM   #2
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
If you have a graphical interface in your server you could just do that through the file browser
If you dont have a graphical interface you can do that with the cp command in the command line such as
Code:
cp /dev/sdb1/ /home/user/Music
I think that will copy everything to your Music folder so make sure you have enough room for it

you could also mount your hard drive to an existing folder in your system
Code:
sudo mount -t ntfs /dev/sdb1 /home/user/Public
then do
Code:
cd /home/user/Public
then do
Code:
ls -l
that will display all the folders in sdb1
from there you could use the cp command to copy your data into a desired folder or use cd to go further into your folders in sdb1.

Remember to replace user with the user name you have in your server

Good luck to you

Last edited by TroN-0074; 05-04-2013 at 09:23 AM.
 
Old 05-04-2013, 09:29 AM   #3
Vodkaholic1983
Member
 
Registered: May 2010
Distribution: Windows / Debian
Posts: 163

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TroN-0074 View Post
If you have a graphical interface in your server you could just do that through the file browser
If you dont have a graphical interface you can do that with the cp command in the command line such as
Code:
cp /dev/sdb1/ /home/user/Music
I think that will copy everything to your Music folder so make sure you have enough room for it

you could also mount your hard drive to an existing folder in your system
Code:
sudo mount -t ntfs /dev/sdb1 /home/user/Public
then do
Code:
cd /home/user/Public
then do
Code:
ls -l
that will display all the folders in sdb1
from there you could use the cp command to copy your data into a desired folder or use cd to go further into your folders in sdb1.

Remember to replace user with the user name you have in your server

Good luck to you
Thanks is there any reason why my 3tb is showing up as 800gb ?

And no I don't have a graphic interface
 
Old 05-04-2013, 09:33 AM   #4
Vodkaholic1983
Member
 
Registered: May 2010
Distribution: Windows / Debian
Posts: 163

Original Poster
Rep: Reputation: 0
Also got this

Code:
 sudo mount -t ntfs /dev/sdi1 /home/media/USB
NTFS signature is missing.
Failed to mount '/dev/sdi1': Invalid argument
The device '/dev/sdi1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
 
Old 05-04-2013, 10:03 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,669

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
fdisk does not work with gpt formatted drives. To see how the drive is partitioned use parted or gdisk.

parted /dev/sdi print

Once you determine the partition that contains the data you can mount it as:

mount -t ntfs-3g /dev/sdix /home/media/USB (replace x with the actual partition number)
 
Old 05-04-2013, 10:10 AM   #6
Vodkaholic1983
Member
 
Registered: May 2010
Distribution: Windows / Debian
Posts: 163

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
fdisk does not work with gpt formatted drives. To see how the drive is partitioned use parted or gdisk.

parted /dev/sdi print

Once you determine the partition that contains the data you can mount it as:

mount -t ntfs-3g /dev/sdix /home/media/USB (replace x with the actual partition number)
Thanks

that command gave me this

Code:
 parted /dev/sdi print
Model: Toshiba StorE HDD (scsi)
Disk /dev/sdi: 802GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End    Size   File system  Name                          Flags
 1      17.4kB  134MB  134MB               Microsoft reserved partition  msftres
Still showing as 800gb? Wish ?I knew more about linux lol
 
Old 05-05-2013, 03:44 AM   #7
Vodkaholic1983
Member
 
Registered: May 2010
Distribution: Windows / Debian
Posts: 163

Original Poster
Rep: Reputation: 0
Anyone else any ideas?

Cheers
 
Old 05-05-2013, 06:03 AM   #8
Vodkaholic1983
Member
 
Registered: May 2010
Distribution: Windows / Debian
Posts: 163

Original Poster
Rep: Reputation: 0
looks like it was the usb bay which was causing the problems. Ive put the HDD into the computer and its come up as 3TB now

Code:
Disk /dev/sdb: 3000.6 GB, 3000592982016 bytes
256 heads, 63 sectors/track, 363376 cylinders, total 5860533168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xae09847c

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1  4294967295  2147483647+  ee  GPT
Partition 1 does not start on physical sector boundary.
I still can't seem to mount it tho

Code:
mount -t ntfs-3g /dev/sdb1 /home/media/USB2
Gave me this

Code:
 mount -t ntfs-3g /dev/sdb1 /home/media/USB2
NTFS signature is missing.
Failed to mount '/dev/sdb1': Invalid argument
The device '/dev/sdb1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
Parted gave me this tho

Code:
parted /dev/sdb print
Error: The backup GPT table is not at the end of the disk, as it should be.
This might mean that another operating system believes the disk is smaller.
Fix, by moving the backup to the end (and removing the old backup)?
Fix/Ignore/Cancel?
Warning: Not all of the space available to /dev/sdb appears to be used, you can
fix the GPT to use all of the space (an extra 4294967296 blocks) or continue
with the current setting?
Fix/Ignore?
Ignore gave me this

Code:
 Ignore
Model: ATA ST3000DM001-1CH1 (scsi)
Disk /dev/sdb: 3001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number  Start   End    Size   File system  Name                          Flags
 1      17.4kB  134MB  134MB               Microsoft reserved partition  msftres

Last edited by Vodkaholic1983; 05-05-2013 at 06:09 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I copy files from Windows workstations to an Ubuntu server with VSS support? Syllinger Linux - Server 1 12-20-2011 12:41 AM
[SOLVED] Will (K)Ubuntu be able to read/copy/alter files on NTFS drives? mak2653 Linux - Newbie 2 04-07-2010 01:57 PM
Copy files from NTFS to NTFS ThaHackBoy Linux - Hardware 2 05-21-2005 06:36 PM
copy ntfs files alb1954 Feather 1 09-15-2004 07:38 AM
Cannot Copy Files From Network FAT32/NTFS Drive to My Local Linux Drive michaelh Linux - Networking 3 10-29-2002 10:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration