Re: Additional HardDisk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks ... it really helped, but for copying file system i used the following:
 
cd /home
pax -pe -rvw . /mnt/hd2
 
 
and after step 5 /home directory needs to be created, i was thinking that it get created automatically
mkdir /home
 
 
----- Original Message -----
From: IAK Tanoli
Sent: Sunday, April 11, 2004 10:14 PM
Subject: Re: Additional HardDisk

Step 1:
Create partitions using fdisk
e.g fdisk /dev/hdb (for primary slave)
 
Step 2:
Create file system using mkfs.ext3
e.g mkfs.ext /dev/hdb1
 
Step 3:
mount partitions
# mkdir /mnt/hd2
# mkdir /mnt/hd3
 
# mount /dev/hdb1 /mnt/hd2
# mount /dev/hdb2 /mnt/hd3
 
Step 4:
copy dir. to that paritions
# cp -rf /home /mnt/hd2
# cp -rf /var /mnt/hd3
 
Step 5:
rename old directories
 
# mv -f /home /homeold
# mv -f /var /varold
 
Step 6:
Add to fstab
 
# vi /etc/fstab
/dev/hdb1    /home auto defaults 0 0
/dev/hdb2    /var auto defaults 0 0
Step 7:
Reboot system and make sure that every this is ok and all data in /home and /var is there.
 
Step 8:
After surity of step 7 delete /homeold and /varold
# rm -rf /homeold
# rm -rf /varold
 
 
regards
 
 

 

 

Bilal Dar <bdar@xxxxxxxxxxxxxxx> wrote:
Dear All,
 
My harddrive got full, so I added another one. Now I do not know how to expand the older filesystems, I just made partitions using filesystem. How can I format it using ext3 and move /home /var to the new harddisk.
 
Thanks.
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


--

________________
Imtiaz Ahmed Khan
Sr. System Consultant
ANTS Consultiing


Org: ANTS Consulting
URL: http://ants.com.pk/
Eml: sendtoimtiaz@xxxxxxxxx
Mob: +92300-2128278
___________________________________


Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th


--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux