LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 12-16-2004, 02:08 AM   #1
PenguinPwrdBox
Member
 
Registered: Oct 2003
Location: /illinois/chicago
Distribution: Slackware/Gentoo/FC/RHEL
Posts: 568

Rep: Reputation: 30
HDD Duplication...


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

/dev/hda1
30G
reiserfs
extra drive (backup)

/dev/hdb1
approx 512M
mounted at /boot
ext2fs

/dev/hdb5
approx 1G
linux swap

/dev/hdb6
approx 74G
reiserfs
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:
Code:
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?

TIA!!!
 
Old 12-16-2004, 07:18 AM   #2
JunctaJuvant
Member
 
Registered: May 2003
Location: Wageningen, the Netherlands
Distribution: OS X
Posts: 488

Rep: Reputation: 31
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.

JJ
 
Old 12-16-2004, 08:02 AM   #3
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
PPB,

Try this thread:

http://www.linuxquestions.org/questi...hreadid=224324
 
Old 12-16-2004, 04:25 PM   #4
kevinalm
Member
 
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 04:37 PM.
 
  


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


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


All times are GMT -5. The time now is 09:11 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration