LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-29-2004, 04:43 PM   #1
mykrob
Member
 
Registered: Jun 2004
Location: Jackson, TN
Distribution: Kubuntu Feisty
Posts: 606

Rep: Reputation: 31
Question Partitons (again)


I know this has been asked before, but i'm not getting it yet. I need some pretty clear-cut instructions for this, ebcause i messed up pretty bad trying before..

I currently have Suse Linux 9.1 Professioanl installed on a 100GB partition of a 120GB har drive. I would like to allow Linux to claim the other 20GB which is currently a FAT32 share between Linux and WinXP, and move my /home directory to the new partition, that way if i ever reinstall or upgrade, my /home rests on a different partition and the new installation can simply mount that partition for home.. How is this done?

thanks,
-myk
 
Old 07-29-2004, 05:01 PM   #2
linuxlastslonge
Member
 
Registered: Jun 2002
Location: Franklin, IN
Distribution: Debian, CentOS, Mac OS X
Posts: 158

Rep: Reputation: 30
do you want to keep your current filesystem and data on that partition?




 
Old 07-29-2004, 05:35 PM   #3
mykrob
Member
 
Registered: Jun 2004
Location: Jackson, TN
Distribution: Kubuntu Feisty
Posts: 606

Original Poster
Rep: Reputation: 31
i want to format the 20GB partition to ReiserFS, then move /home from the 100GB partition to the new 20GB, but leave everything else on the 100GB partition.

thanks,
-myk
 
Old 08-02-2004, 03:08 PM   #4
mykrob
Member
 
Registered: Jun 2004
Location: Jackson, TN
Distribution: Kubuntu Feisty
Posts: 606

Original Poster
Rep: Reputation: 31
bump

 
Old 08-02-2004, 03:12 PM   #5
free kevin
LQ Newbie
 
Registered: Aug 2004
Location: Slovenia
Distribution: Mandrake 10.0
Posts: 4

Rep: Reputation: 0
This is a waste of disk space. You will never get 100 GB of linux software together...
 
Old 08-02-2004, 03:43 PM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Here's how you do it:

1) backup everything you want on the FAT32 partition and unmount
2) figure out which partition it is (fdisk -l or df should tell you). I will assume that it's /dev/hda2 for this example
3) umount /dev/hda2 (unmounts it)
4) /sbin/mkreiserfs /dev/hda2 (formats the partition as ReiserFS -- again replace hda2 with whatever your partition is).
5) mv /home /home.orig (back up /home)
6) mkdir /home
7) mount /dev/hda2 /home
7) cd /home.orig
8) cp -a * /home (move everything from the old home to the new one)
8) modify /etc/fstab to mount /dev/hda2 on home, e.g. add the line:

/dev/hda2 /home reiserfs defaults 1 2

9) when you're satisfied it's all working, you can delete /home.orig
 
Old 08-02-2004, 04:01 PM   #7
mykrob
Member
 
Registered: Jun 2004
Location: Jackson, TN
Distribution: Kubuntu Feisty
Posts: 606

Original Poster
Rep: Reputation: 31
thank you very much

as for FreeKevin's comment.
I do so video and audio editing, so i may use a good bit of space. You never know... I had all this space when i was using Windows.. I'm not just gonna throw it away. But i see what you mean, most Linux apps are tiny in filesize.


thanks again,
-myk
 
Old 08-02-2004, 04:06 PM   #8
mykrob
Member
 
Registered: Jun 2004
Location: Jackson, TN
Distribution: Kubuntu Feisty
Posts: 606

Original Poster
Rep: Reputation: 31
one step i'm not sure i understand..
step 5 simply renames the /home directory to /home.orig, right?
then in step 6, we make the new /home directory, then mount it on the new drive...

Is this all supposed to be done in run level 1? I guess what i don't understand is how this can be done while i'm logged it..

i may be jumping the gun about this, but i want to be absolutely sure before i start.

Thanks again, your instructions are pretty clear-cut

-myk
 
Old 08-02-2004, 04:51 PM   #9
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
You're right about steps 5 and 6. I've done this before in runlevel 3 (but with /var, not /home) so it's possible, I think, but to be absolutely safe you should probably do it in runlevel 1.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Reallocating partitons bullshit Linux - Newbie 4 08-16-2004 01:16 AM
RHE Partitons brentos Red Hat 14 07-26-2004 07:56 AM
Question on creating partitons nafsnipe685 Linux - Software 2 01-21-2004 01:37 PM
installations/partitons/directories etc etc bigjohn Linux - Software 6 11-28-2003 07:33 PM
Other partitons from ext3? Zenox Linux - Software 1 11-08-2003 04:06 PM


All times are GMT -5. The time now is 04:27 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration