Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 12-16-2004, 03:08 AM   #1
Registered: Oct 2003
Posts: 568

Rep: Reputation: 30
HDD Duplication...

I have two hdd's in one machine, as follows:

extra drive (backup)

approx 512M
mounted at /boot

approx 1G
linux swap

approx 74G
mounted as root

I am trying to copy 3G worth of system files from hdb6 to hda1. The goal here, is that I can add an entry to lilo so that I can boot with either disk as my root drive. The reason being is that I need to use resize_reiserfs to shrink the size of hdb6's partition, and create a windows-readable partition using mtools with the newly created space. This can only be done, though, if hdb6 is not mounted. Live CD is not an option here.

I have tried dd, and got an input output error. dd dropped 1 record. I'm not sure if that was the exception, and it halted, or if there is more to it. The specific command I used was:
dd if=/dev/hdb6 of=/dev/hda1
I should also note, that I have tried just a normal copy+paste in a file manager, and it hangs at either /dev or /proc. Why is this? I understand that it may create a loop, especially when it gets to /dev/hda (being that I am writing to /dev/hda) How would you create the block devices on the new drive? Anyone seen any good info on the specifics of this?

Is this correct? Any suggestions?

Old 12-16-2004, 08:18 AM   #2
Registered: May 2003
Location: Wageningen, the Netherlands
Distribution: OS X & FreeBSD
Posts: 488

Rep: Reputation: Disabled
This is probably a silly question, but are you logged in as root when you try the dd thing? Allright, that probably didn't help much
On the other hand, I have found linux-on-a-floppy utilities like tomsrtbt of inestimable value in these situations. Perhaps you could try something like PAUD, for your situation?
Hope this helps.

Old 12-16-2004, 09:02 AM   #3
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407

Try this thread:
Old 12-16-2004, 05:25 PM   #4
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288

Rep: Reputation: 30
It is very difficult to duplicate a running linux partition, and simple to dup one that is not running, as you have found out. In particular, /dev and /proc cause major problems while active, but cp trivially when inactive. That's why a live cd (or an alternate linux boot) are _highly_ recommended.

>>Oh, the reason for the hang? Well, when /dev is active, it's not so much a filesystem as it is a collection of control and data ports for your hardware (via the associated drivers). But when inactive it is just an inert filesystem.
/proc is a series of files that display system info while active. Some of this is constantly changing so you will get a hang. When inactive /proc is empty. Just a single dir.

Last edited by kevinalm; 12-16-2004 at 05:37 PM.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
C source code duplication slzckboy Programming 6 07-30-2005 07:04 PM
Memory Allocation Duplication FiveStar Programming 7 07-28-2005 03:49 PM
Hard drive duplication trbdk3 Linux - General 4 12-25-2004 11:12 PM
xcdroast cd duplication problem lasalsademuerte Linux - Software 4 10-30-2003 05:49 PM
Server duplication with Rsync... capstone737 Member Success Stories 0 03-15-2003 10:59 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:39 PM.

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