How can I get one harddrive alone when it was split up between 2?
Hello,
When I purchased my server from my provider, they made the redhat partitions incorrect. My Setup I have 2 40 gig Harddrives; I wanted one to be the primary, and the second to be the backup HD that I would make nightly backups to. My HD Configuration Code:
[root@main /]# df -k My fstab Code:
LABEL=/ / ext3 defaults,usrquota,grpquota 1 1 Unfortunatly, everything is all setup and when I went to go and setup my backups, I saw this discrepancy. So I cant format and reinstall redhat, it would be too much to redo everything. If you see above, /dev/hdb1 is one of the 40 gig HDs, the second one obviously. But it you look at /boot, its on the first HD, and only 100 megs of the first HD is set to /boot. That makes the other 39 some odd gigs non-partitioned. My Question I would like to know how I can get all the data, / , on /dev/hda1, have /boot as /dev/hda2 and my backup drive as /dev/hdb1. Is this possible without reformatting? Thank you very much. |
boot from a bootdisk, mount hdb1 on /tmproot1, mount hda? on /tmproot2
just copy everything on hdb1 to hda? with 'cp -a * /' then edit your fstab to mount hda? as / you need to use a bootdisk so that you arnt copying active devices and processes when you cp -a |
All times are GMT -5. The time now is 05:23 PM. |