LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 03-06-2002, 07:42 AM   #1
guanyu
Member
 
Registered: Jul 2001
Distribution: RedHat 7.0,7.1,7.2,7.3,8.0. Sun Solaris
Posts: 111

Rep: Reputation: 15
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
 
Old 03-06-2002, 08:13 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 03-06-2002, 10:58 AM   #3
guanyu
Member
 
Registered: Jul 2001
Distribution: RedHat 7.0,7.1,7.2,7.3,8.0. Sun Solaris
Posts: 111

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


Reply



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
moving /home /root & /var to new partition CrashedAgain Linux - General 8 11-24-2005 10:44 AM
add new HD as /var, after installation kpachopoulos Linux - General 1 07-14-2005 04:59 PM
Incoming emails stuck in /var/spool/mail/home/ Nizhni Linux - Networking 0 01-21-2005 04:51 PM
Moving VAR TMP HOME OPT to new partitions JWatson Linux - Newbie 2 01-03-2005 04:54 AM
usb add on card mount external hardrive Peds222 Red Hat 1 09-10-2004 07:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration