FAQ   Search   Memberlist  
Profile    Log in to check your private messages    Register    Log in
Swapping HD

 
Post new topic   Reply to topic    BLAG Forum Index -> open discussion
View previous topic :: View next topic  
Author Message
blaggard
PostPosted: Mon May 24, 2004 5:30 pm    Post subject: Swapping HD Reply with quote

In my current configuration, I have setup the /home and a modest swap (in
addition to the swap on the primary HD) on a secondary 1 GB drive .

I want to swap this drive with a 10 GB drive - with possibly more than just
/home. Perhaps /MP3 :D

Question: How do I go about it? Can I just replace the drives and hope
things will work? What are the things I should look out for?

Any help in this regard is appreciated.

Thanks.

Blaggard

jebba
PostPosted: Mon May 24, 2004 8:22 pm    Post subject: Reply with quote

How are you going to copy over your current /home partition? If you can temporarily copy it over to the root drive, then it's easier. You then just pop in the new drive and copy /home back.

Recommended copy command:
Code:
cp -a /home /home-old


You'll need to partition the new drive, once it's connnected. Use the command:
Code:
/sbin/fdisk /dev/hdc

Where:
hda=primary master
hdb=primary slave
hdc=secondary master
hdd=secondary slave

You will also need to format the new drive. To format the new home partition:
Code:
/sbin/mke2fs -j -m0 /dev/hdc1

And to format the swap partition:
Code:
/sbin/mkswap /dev/hdc2


Of course you'll need to change hdc1/2 to match your setup. If you paste your /etc/fstab file here, I can tell you exactly what you should use.

Have fun :)

-Jeff

blaggard
PostPosted: Tue May 25, 2004 12:48 am    Post subject: Re: Swapping HD Reply with quote

Jeff,

Thanks for the reply.

I can copy my HOME directory temporarily to /tmp (as root). Then
following your advice, I should be install and copy back the directory.

Would you recommend reiserfs for this? Why or why not?

I have copied my /etc/fstab file:


Code:

LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
LABEL=/home             /home                   ext3    defaults        1 2
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
/dev/hdb2               swap                    swap    defaults        0 0
/dev/hda3               swap                    swap    defaults        0 0
/dev/cdrom              /mnt/cdrom              udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1             /mnt/cdrom1             udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0                /mnt/floppy             auto    noauto,owner,kudzu 0 0
/dev/hdc        /mnt/cdrom      auto    ro,noauto,user,exec     0 0
/dev/scd0       /mnt/cdrom1     auto    ro,noauto,user,exec     0 0

jebba
PostPosted: Tue May 25, 2004 1:19 am    Post subject: Reply with quote

I would stick with ext3. It is very common, reliable, ever-present, etc. Reiser may give you more headaches than it's optimizations are worth.

-Jeff

Display posts from previous:   
Post new topic   Reply to topic    BLAG Forum Index -> open discussion
Page 1 of 1

Protected by Anti-Spam ACP