LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 10-06-2004, 11:18 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
Repartition question


Hi folks,

I'm prepared to test LFS on a FedoraCore2 box with following partitions existing

# df -Th
Code:
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/hde2     ext3    5.6G  3.3G  2.1G  61% /
/dev/hde1     ext3    105M  7.6M   92M   8% /boot
none         tmpfs    189M     0  189M   0% /dev/shm
/dev/hde5     ext3    3.2G  388M  2.7G  13% /home
I am going to repartition /dev/hde5 creating new partitions of about 1.5G in total for LFS, such as
/boot
/root
/swap
etc/

/dev/hde5 is now used as /home.

Kindly advise where can I find relevant instruction/manual for this work avoiding damaging /home which already holds files

TIA

B.R.
satimis
 
Old 10-06-2004, 05:51 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Login as root so that you're not using the /home folder at all then make a tar.bz2 archive of your home folder, unmount it then use cfdisk to delete hde5 and use the free space to create the new partitions you want. Don't forget to write the changes to disk.

cd /
tar cjf home.tar.bz2 home
umount /dev/hde5
cfdisk

Then edit /etc/fstab and comment out the line that mounts /dev/hde5 on /home then reboot. Login as root again and reformat /dev/hde5

mkfs.ext3 /dev/hde5

Edit /etc/fstab so that it's back the way it was and then remount /dev/hde5 and untar the archive you made earlier

mount -a
tar xjfp home.tar.bz2
 
Old 10-06-2004, 10:55 PM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi Andrew,

Tks for your advice.

Quote:
cd /
tar cjf home.tar.bz2 home
umount /dev/hde5
cfdisk
I havn't installed cfdisk so I'll use fdisk instead.

Here I'm not very experienced on creating Ext partitions. Usually I create 4 partitions, max.

Shall I run
# fdisk /dev/hde5 ???

/dev/hde5 is /home partition of FC2
Then what shall be the next step

Quote:
Then edit /etc/fstab and comment out the line that mounts /dev/hde5 on /home then reboot. Login as root again and reformat /dev/hde5

mkfs.ext3 /dev/hde5
Here I'm not very clear. After repartition there are 9partitions, say;

/boot
/root
/swap
/home

The above partitions are for FC2. What about other partitions just created, say

hde6 (suppose for LFS /boot)
hde7 (suppose for LFS /root)
hde8 (suppose for LFS /swap)
hde9 (suppose for LFS /home

OR just ONE partition for all of them. Shall I create FS for it/all of them (format)?

Quote:
[b]Edit /etc/fstab so that it's back the way it was and then remount /dev/hde5 /B]
What about LFS /home ???

TIA

B.R.
satimis
 
Old 10-07-2004, 07:33 AM   #4
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
For partition schemes you can more or less do what you want and be creative. If you're not sure, keep it simple and just have one root partition / with everything (/boot, /home, /usr, /etc) on that. I once tried having /usr on a separate partition and got into trouble as it filled up and I couldn't install any more software. I don't see anything to be gained by having /home on a separate partition but that's just my opinion. I have my email on a separate partition which I mount at /home/andy/.thunderbird so that if I reboot into another version or reinstall LFS I've still got all my messages there the first time I run Thunderbird.
So that's my advice. Keep it simple and then elaborate in a way that suits you. I hope other people chip in with their opinions
 
Old 10-07-2004, 09:21 AM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi Andrew,

Tks for your further advice.

I'll keep one partition for LFS. Since this box is for testing, I'm trying to collect more inforamtion and/or other ways of doing for building up my knowledge.

Tks.

B.R.
satimis
 
Old 10-07-2004, 03:23 PM   #6
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
Just to add to what Andrew said, if you already have a swap partition, then you don't need to create another. You can use the same swap partition for two different installs, since only one will be running at a time.

Enjoy!
--- Cerbere
 
  


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
Repartition question satimis Linux - General 22 06-05-2005 09:38 PM
repartition memory hari_seldon99 Linux - Laptop and Netbook 0 10-03-2004 02:55 PM
/ full need to repartition not sure what to do dibblethewrecke Linux - General 9 01-13-2004 03:56 AM
repartition problem fideli Linux From Scratch 3 12-12-2003 08:46 AM
How to repartition Manny88 Linux - Software 2 09-19-2003 03:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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