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. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-06-2002, 08:42 AM
|
#1
|
Member
Registered: Jul 2001
Distribution: RedHat 7.0,7.1,7.2,7.3,8.0. Sun Solaris
Posts: 111
Rep:
|
Add new hardrive /home and /var
Hi guys
My situation like this. Add another 4.3 G for /home and /var
3.0 G for /home and 1.3 /var
first of all, I just make partition by using cfdisk partition 3.0 for my new hard drive and 1.3G for /var.
1. mount /dev/hdd1/ /export/newhome
2. cd /export/newhome/home--->it does point back to my /home(orginal home) and listed all the user direcotries.
What is next? I am not sure. Do I need to delete /export/newhome
and edit my fstab to make sure it will link to my new hard drive? And how to edit fstab (RH 7.2) Thank you.
Guanyu
|
|
|
03-06-2002, 09:13 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
well, i'd recommend mounting the new home partition as /export/home, and then copy the data across to the new partition by something like
find -xdev /home | cpio -dpv /export
which should clone /home to /export/home
then just edit the fstab file and add a relevant lne like
/dev/hdb1 /home ext3 defaults 1 1
you can mount the partiton, and it won't remove the original one, if you unmounted it, the old home would reappear as if by magic. so when you're confidnet it's working ok, you'll need to specifially remove it, ususally by user single user mode.
|
|
|
03-06-2002, 11:58 AM
|
#3
|
Member
Registered: Jul 2001
Distribution: RedHat 7.0,7.1,7.2,7.3,8.0. Sun Solaris
Posts: 111
Original Poster
Rep:
|
Thank Chris. What if I copy the /home to my /export, the remail space for my /home? Is it going to be blank? recently, my /home is 2G. I don't wan leave it blank or do nothing for it. That's why I wanna link both /home and /export/home (new hdd) together instead of the /home to /export/home.
Thank you
Guanyu
|
|
|
All times are GMT -5. The time now is 12:18 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|