Find the answer to your Linux question:
Results 1 to 9 of 9
have been running PclinuxOS 07 on hda 60GB run out of space now have drive split up as / and /home . I have installed new WD 250GB drive as ...
  1. #1
    Just Joined!
    Join Date
    Mar 2007
    Location
    Newcastle, Australia
    Posts
    80

    hdb hda copy for new drive

    have been running PclinuxOS 07 on hda 60GB run out of space now have drive split up as / and /home . I have installed new WD 250GB drive as slave. I want to move my root and /home dirs to hdb (new drive) and use hda as test drive.

    Can I do it ?

    I have everything set so sweet I just don't want to have to redo it.

    PS I have tried a command like dd if=/dev/hda of=/dev/hdb however I do not seem to get any reponse good or bad when I use it.

  2. #2
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    955
    You need to partition the new drive first with fdisk or one of its relatives. Make the partitions where / and /home are to go and create native Linux filesystems on them with mkfs. Then try copying.
    "I'm just a little old lady; don't try to dazzle me with jargon!"

  3. #3
    Just Joined! benerivo's Avatar
    Join Date
    Nov 2006
    Posts
    18
    This link may help, although I can't verify that it works...
    http://beans.seartipy.com/2006/09/24...ent-partition/

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Quote Originally Posted by benerivo
    This link may help, although I can't verify that it works...
    http://beans.seartipy.com/2006/09/24...ent-partition/
    thats an excellent tutorial and will definitely work.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Just Joined!
    Join Date
    Mar 2007
    Location
    Newcastle, Australia
    Posts
    80
    It appears to be all working on the new drive. I did have to "fsck -y" on first boot as it reported drive errors but now seems okay (cross fingers) .

    Thanks for the reply's most appreciated

  6. #6
    Just Joined!
    Join Date
    Mar 2007
    Location
    Newcastle, Australia
    Posts
    80

    Side Effect

    There is only one side effect - the files in my home directory are read only. So I logged in as root and used the "chown -R /home/flebber" to change permissions however it said files are read only cannot change permissions so I added user flebber to wheel, adm and video (may as well while I am doing it) but still files in home drive are read only any ideas.

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    how did you copy files? "cp -a" keeps permissions, symlinks and ownership too.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  8. #8
    Just Joined!
    Join Date
    Mar 2007
    Location
    Newcastle, Australia
    Posts
    80
    I dragged and dropped them in konqueror

  9. #9
    Just Joined!
    Join Date
    Mar 2007
    Location
    Newcastle, Australia
    Posts
    80
    I am redoing it with "cp -a". I can see that the first few folders root has ownership of.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...