LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-30-2005, 06:24 AM   #1
asifqaiyum
LQ Newbie
 
Registered: May 2005
Location: Pakistan
Distribution: Fedora Core3
Posts: 15

Rep: Reputation: 0
How to add /home partition after installing linux


Hi All,

I just want to ask simple question: Is there any way to add /home paritition after installing linux?

Basically, right now, i have just one "/" root partition, but now i want to add another partition for user files.....I am using Fedora Core3.

What I think is I will free one of my windows partition and then format it with /home in linux...but I am curious about the after all effects on /home folder on the root partition.....????

Can anyone help me to take out of this problem???

Thanks,
Asif Qaiyum, Islamabad.
 
Old 07-30-2005, 06:37 AM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
I'm going to assume you either have extra space on your current hard drive, or that you are adding a new hard drive. I'll be referring to the new partition as /dev/hdb1, but you'll need to use the drive and partition number that corresponds to the partition you create.

There are multiple ways to do this, but here is what I've done before.
1. create a new partition on the empty space of your hard drive.
2. mount your new partition.
Code:
mount /dev/hdb1 /mnt/new
3. backup the /home directory  
Code:
tar cvjfp home.tar.bz2  /home/*
3. move the tarball to /mnt/new  
Code:
mv ./home.tar.bz2 /mnt/new
4. umount /mnt/new and remount as /home.
Code:
 umount /mnt/new && mount /dev/hdb1 /home
5. unpack your tarball.
Code:
cd /home && tar xvjpf ./home.tar.bz2 /home
6. Edit your /etc/fstab to reflect to new mount point.


This should take care of it.

Last edited by musicman_ace; 07-30-2005 at 06:40 AM.
 
  


Reply


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
Resizing Windows partition to add LINUX latino Linux - General 2 02-21-2005 03:58 PM
how to make partition for /home after installing FC2 mike_sh Linux - Hardware 5 07-04-2004 05:28 PM
how to partition hard drive for dual boot xp-home and linux system sabaki Linux - Laptop and Netbook 5 03-06-2004 03:10 PM
Sharing a harddrive partition (NTFS) on Linux with Windows XP Home. squall14716 Linux - General 21 10-07-2003 06:06 PM
How to add new partition before Linux partition in an existing Linux box? ashutosh Linux - Software 3 04-23-2002 04:26 AM

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

All times are GMT -5. The time now is 09:09 PM.

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