You are not logged in.

#1 2014-08-24 12:30:40

Ixium
Member
From: Groningen (Netherlands)
Registered: 2013-09-25
Posts: 10
Website

Problem copying files

As most of you guys know, it is possible to make a Windows USB-stick for booting, by formatting it as an NTFS-partition and copying all files from the install-DVD to the stick.

Formatting it as an NTFS-partition wasn't a problem, but when i copied all files to the USB-stick (in KDE) it didn't copy all files. I missed about 100 files, even though KDE said copying files completed.

I tought the USB-stick was damaged, so i tried 2 other sticks , but they gave the same result. I also tried it in 'konsole' copying all files by hand, but same result.

I searched in logs, but didn't find anything strange... dmesg didn't give read or write-failures on the stick.

I am clueless.

Suggestions anyone?

Cheerz


Mobo: Asus  P8H77-I :: CPU: Intel(R) Core(TM) i5-3450 CPU @ 3.10GHz :: Memory: Corsair 8GB DDR3 :: SSD: 128GB Samsung 830 Series  :: HDD: 1TB Samsung ::  Video: GeForce GTX 650 Ti

Offline

#2 2014-08-24 15:12:14

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,563
Website

Re: Problem copying files

Ixium wrote:

As most of you guys know ...

Nope, I didn't know that.  And after checking, it does not seem true.  You need to install the boot code too - allegedly a windows CD has a "BOOTSECT.EXE" for this purpose.

This is, however, quite clearly not an archlinux issue.  You should ask on a Windows forum.

Closing.

EDIT: Reopened at OP's request.  It seems this question has been covered on the microsoft.com domain, so (under the right conditions) it is certainly acceptable/legal.  As the OP has had this work on other systems but can't on arch, it may be appropriate here.

Last edited by Trilby (2014-08-25 17:29:40)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2014-08-25 18:33:21

Ixium
Member
From: Groningen (Netherlands)
Registered: 2013-09-25
Posts: 10
Website

Re: Problem copying files

Thank you for reopening my post Trilby.

I hope someone has also tried this and found a solution to this problem.

Cheerz,

Ixium


Mobo: Asus  P8H77-I :: CPU: Intel(R) Core(TM) i5-3450 CPU @ 3.10GHz :: Memory: Corsair 8GB DDR3 :: SSD: 128GB Samsung 830 Series  :: HDD: 1TB Samsung ::  Video: GeForce GTX 650 Ti

Offline

#4 2014-08-25 19:14:18

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Problem copying files

So when you try to copy one of the 100 problem files (and I mean using cp in a terminal) what exactly happens?

Offline

#5 2014-08-25 19:28:10

Ixium
Member
From: Groningen (Netherlands)
Registered: 2013-09-25
Posts: 10
Website

Re: Problem copying files

I didn't use cp... have to try that... I always use midnight commander for copying a lot of files. ~3000 files

But Midnight Commander completes the copy-command and KDE also completes.

but when look at the details of the usb-drive it only shows ~2800 files, so a lot of files are missing, and there is no copy-error.


Mobo: Asus  P8H77-I :: CPU: Intel(R) Core(TM) i5-3450 CPU @ 3.10GHz :: Memory: Corsair 8GB DDR3 :: SSD: 128GB Samsung 830 Series  :: HDD: 1TB Samsung ::  Video: GeForce GTX 650 Ti

Offline

#6 2014-08-25 19:48:34

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Problem copying files

Try using rsync to copy the files. Copying large hierarchies of files while preserving various properties is what it is designed to do. If you are really uncomfortable with the command line, then use grsync which is a GUI interface to rsync.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#7 2014-08-25 20:17:05

Ixium
Member
From: Groningen (Netherlands)
Registered: 2013-09-25
Posts: 10
Website

Re: Problem copying files

I am comfortable with cli, so that won't be much of a problem.
I thought rsync is only for TCP/UDP operations and not local.
I will try that. Thanx.


Mobo: Asus  P8H77-I :: CPU: Intel(R) Core(TM) i5-3450 CPU @ 3.10GHz :: Memory: Corsair 8GB DDR3 :: SSD: 128GB Samsung 830 Series  :: HDD: 1TB Samsung ::  Video: GeForce GTX 650 Ti

Offline

#8 2014-08-25 20:28:38

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Problem copying files

Ixium wrote:

I didn't use cp... have to try that... I always use midnight commander for copying a lot of files. ~3000 files

Sure, but you said there were only 100 that didn't copy. Seems logical to me to try copying one or more of them manually and check for error output.

Offline

#9 2014-08-25 20:33:38

Ixium
Member
From: Groningen (Netherlands)
Registered: 2013-09-25
Posts: 10
Website

Re: Problem copying files

problem is: 'what are the files that aren't copied?' is there a tool to compare the two trees?


Mobo: Asus  P8H77-I :: CPU: Intel(R) Core(TM) i5-3450 CPU @ 3.10GHz :: Memory: Corsair 8GB DDR3 :: SSD: 128GB Samsung 830 Series  :: HDD: 1TB Samsung ::  Video: GeForce GTX 650 Ti

Offline

#10 2014-08-25 20:36:29

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,563
Website

Re: Problem copying files

diff -r.

$ mkdir one
$ mkdir two
$ touch one/alpha
$ touch one/beta
$ cp one/* two/
$ touch one/gamma
$ diff -r one two
Only in one: gamma

Also, in rysnc's first step, it will compare the two locations and can be instructed to just output the list that still needs to be synced.  I don't know the flags to use for that off the top of my head, but the man page has it all.  Of course the man page for rsync is quite extensive as it is a very versatile tool.  Diff is much simpler for the immediate question of which files differ.

EDIT: note, I needed to go back and add '-r' to diff for this to be practical for your case.  Without -r (recursive) it will only check the top level of each of the directories which would likely not see the differences.

Last edited by Trilby (2014-08-25 20:45:52)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#11 2014-08-25 20:42:57

Ixium
Member
From: Groningen (Netherlands)
Registered: 2013-09-25
Posts: 10
Website

Re: Problem copying files

oke thanx... will try that too.

It's almost 11 PM here, will try that tomorrow wink


Mobo: Asus  P8H77-I :: CPU: Intel(R) Core(TM) i5-3450 CPU @ 3.10GHz :: Memory: Corsair 8GB DDR3 :: SSD: 128GB Samsung 830 Series  :: HDD: 1TB Samsung ::  Video: GeForce GTX 650 Ti

Offline

#12 2014-08-30 17:47:52

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Problem copying files

You should take a look at winusb, it's an application to create Windows USB boot media.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB