LinuxQuestions.org
Help answer threads with 0 replies.
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 05-06-2003, 02:00 PM   #1
jt1020
Member
 
Registered: Apr 2003
Location: root@localhost
Distribution: Fedora Core 5, Ubuntu, Debian
Posts: 537

Rep: Reputation: 30
/home - partition


I've looked in the threads but i'm a newbie and I can't seem to understand most of the similar questions not to mention that there are only few threads about this.

Can anyone tell me how to move my /home to a seperate partition?? (step by step pls... )

Do I have to make a new partition??

According to some of the threads that i've read(if i understand it correctly), I still have to mount or automount my /home partition(correct me if i'm wrong)

any help would be greatly appreciated.... thnx in advance....



 
Old 05-06-2003, 02:18 PM   #2
Stephanie
LQ Addict
 
Registered: May 2001
Location: Arizona
Distribution: 9.2 Mandy 1.4 Gentoo 5.1 FreeBSD WinXP
Posts: 1,166

Rep: Reputation: 45
Do you want to physically move the partition, do you want to resize it to make it bigger or smaller, or simply move your files in /home to another partition.
 
Old 05-06-2003, 02:27 PM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
You'll need your /home directory there to login, so you want it to mount up in fstab automatically...

Here's how I'd do it:
Assuming you've got the free space and it's just sitting there unformatted yet already partitioned:
mke2fs -j /dev/hdx (where hdx is the partition you created using something like fdisk or cfdisk)
mkdir /mnt/temphd
mount -t ext3 /dev/hdx /mnt/temphd
mv /home /mnt/temphd
umount /mnt/temphd
mount -t ext3 /dev/hdx /home
Adjust /etc/fstab:
/dev/hdx /home ext3 defaults 1 1

Now on each subsequent reboot, /dev/hdx should mount up at /home

Someone correct anything I'm missing/wrong.. I'm not on my box to try it.

Also, check out Aussies page on doing this:
http://www.p-two.net/modules.php?op=...article&sid=12

Cool
 
Old 05-07-2003, 12:06 AM   #4
jt1020
Member
 
Registered: Apr 2003
Location: root@localhost
Distribution: Fedora Core 5, Ubuntu, Debian
Posts: 537

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Stephanie
Do you want to physically move the partition, do you want to resize it to make it bigger or smaller, or simply move your files in /home to another partition.
I want to make it bigger, but somebody suggested that i move /home to another partition...


thnx for d info MasterC, i'll try that....
 
Old 05-07-2003, 12:22 AM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
If you've got the free space on the same HD, you can use parted to resize the existing partition...

If you already have /home on a seperate partition you can just resize it. However if you have a single partition system, you'll be resizing / with the extra space. You might still want to move /home to a seperate partition just for "backup" in case the / gets dorked somehow you won't lose everything (just a reinstall to fix).

Cool
 
Old 05-07-2003, 12:31 AM   #6
jt1020
Member
 
Registered: Apr 2003
Location: root@localhost
Distribution: Fedora Core 5, Ubuntu, Debian
Posts: 537

Original Poster
Rep: Reputation: 30
Yes I have free space on the same HD. I have partition magic, i think i'll use it to resize my / partition.... but if i understand it correctly... if ever i decide to resize my / partition, theres a posibility that it can cause problems with my / partition or Linux??
 
Old 05-07-2003, 06:34 AM   #7
Stephanie
LQ Addict
 
Registered: May 2001
Location: Arizona
Distribution: 9.2 Mandy 1.4 Gentoo 5.1 FreeBSD WinXP
Posts: 1,166

Rep: Reputation: 45
Depends really on whether the version of Partition Magic supports the file system you used. I believe it will support ext 2/3 and Reiser, but if you did not use those you may have problems.
 
Old 05-07-2003, 07:49 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
And I personally wouldn't use a win program to resize my linux partitions. That's why I am suggesting parted. But if you aren't comfortable with the command line at all, then you might be able to use PM, your choice really.

Cool
 
Old 05-07-2003, 10:44 AM   #9
jt1020
Member
 
Registered: Apr 2003
Location: root@localhost
Distribution: Fedora Core 5, Ubuntu, Debian
Posts: 537

Original Poster
Rep: Reputation: 30
thnx for the replies... , My version of partition magic supports ext 2/3 i already resized my / partition and i seem to have no problem...

 
Old 05-08-2003, 12:29 AM   #10
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
the best thing to do is backup ur data and reinstal linux
this time give it more space
 
Old 05-08-2003, 12:30 AM   #11
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
sorry give ur /home more space
 
Old 05-08-2003, 05:41 AM   #12
jt1020
Member
 
Registered: Apr 2003
Location: root@localhost
Distribution: Fedora Core 5, Ubuntu, Debian
Posts: 537

Original Poster
Rep: Reputation: 30
i already did...

 
Old 05-08-2003, 12:42 PM   #13
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Quote:
Originally posted by jayakrishnan
the best thing to do is backup ur data and reinstal linux
this time give it more space
No it's not. Reinstalling is bad advice. Unless you've corrupted an HD, or you're completely switching out hardware including the HD and want a fresh start/clean install then there is no reason to reinstall. Rebooting is even for the most part not necessary. Reinstalling is just plain a waste of time (usually).



Cool
 
  


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
Extending home partition pwilkie Linux - General 4 03-05-2005 07:32 AM
/home in a different partition s0ftwar3 Linux - Newbie 9 09-29-2004 04:30 AM
where /home partition is used imsajjadali Red Hat 1 09-11-2004 03:20 AM
/home seperate partition from previous install, make it new /home in new install mipia Slackware 5 06-21-2004 10:57 PM
Partition Free Space - Move /home to the new partition gregkise Linux - General 5 12-16-2003 10:19 PM

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

All times are GMT -5. The time now is 03:22 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