Welcome to the most active Linux Forum on the web.
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 03-07-2004, 12:13 PM   #1
LQ Newbie
Registered: Feb 2003
Location: NJ
Posts: 13

Rep: Reputation: 0
How can I get one harddrive alone when it was split up between 2?

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

[root@main /]# df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hdb1             39571244   4509712  33051404  13% /
none                    451912         0    451912   0% /dev/shm
/dev/tmpMnt             193687        14    183673   1% /tmp
/dev/hda1               101089     13266     82604  14% /boot

My fstab
LABEL=/                 /                       ext3    defaults,usrquota,grpquota      1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
/dev/hda2               swap                    swap    defaults        0 0
/dev/cdrom              /mnt/cdrom              udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/tmpMnt             /tmp                    ext2 loop,nosuid,noexec,rw 0 0
My Dilemma

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.
Old 03-07-2004, 12:35 PM   #2
Registered: Feb 2004
Location: denver
Distribution: slackware && freeBSD && rh9
Posts: 92

Rep: Reputation: 15
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


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
split string izza_azhar Programming 6 01-18-2005 08:24 PM
Installing linux on 2nd harddrive(dual boot) windows on seperate harddrive lysol Linux - Software 25 08-03-2004 09:33 AM
Need to replace full harddrive with new, larger harddrive pearlr Linux - Newbie 1 01-02-2004 12:59 PM
Split Problem bullstrong Linux - Software 1 11-07-2003 01:01 AM
SPLIT DNS ... Anyone??? kofi Linux - Networking 3 09-02-2002 04:40 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:00 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
Open Source Consulting | Domain Registration