LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-22-2006, 08:26 PM   #1
NetRAVEN5000
Member
 
Registered: May 2005
Distribution: Ubuntu 9.04
Posts: 320

Rep: Reputation: 30
Help Copying Partition


I copied my Windows partition to my external drive not too long ago, now I can't seem to copy it back!
When I do: "dd if=/dev/sda1 of=/dev/hda1" it does stuff for a littlw while but then it kinda just hangs there, and if I'm in an actual terminal, it'll give me the login prompt again after a while. . . wtf? And for some reason Knoppix doesn't even access my external drive at all. . .
 
Old 03-24-2006, 08:27 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 3,018

Rep: Reputation: 400Reputation: 400Reputation: 400Reputation: 400Reputation: 400
First, make sure both sda1 and hda1 are not mounted when you run the dd command.

Second, for hda, check the drive with the manufacturer's diagnostic utilities which are downloadable from all the majors on their websites. dd can hang like that when it hits bad sectors and the diagnostic utilities can detect and repair bad sectors although running a thorough test can take a long time. Basically, they check every block with writes and reads and mark any block that doesn't pass so the block won't be used by the drive.

Finally, you may want to take a look at partimage for your windows imaging needs as it is faster than dd and more flexible, e.g. images are compressed saving space, only used blocks are imaged saving time and space, image file can be broken down into specified sized chunks for copying to external media, etc:

http://www.partimage.org/download.en.html

For slack, get the static binary and just unzip it and move the executable wherever you want. Partimage works flawlessly on FAT32 and is generally reliable on NTFS even though NTFS support is stated as experimental.
 
  


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
Help copying a Windows98 partition? IsaacKuo Linux - General 6 09-02-2005 07:32 PM
copying root system to another partition TheOneAndOnlySM Linux - General 5 06-01-2005 04:03 PM
Copying partition to another partiion sigma957 Debian 2 12-14-2004 03:25 PM
Copying Partition? dun_noe Debian 4 10-16-2004 01:23 PM
copying from win partition Nechos Linux - Software 4 09-29-2003 11:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:20 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