LinuxQuestions.org
Visit Jeremy's Blog.
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 12-03-2005, 01:48 AM   #16
mr_demilord
Member
 
Registered: Sep 2005
Posts: 244

Rep: Reputation: 30

Quote:
Originally posted by satimis
Hi jimbo-62,

Tks for your work.

What about if I expect keeping /var and /home in separate partitions, say /dev/hda6 and /dev/hda7. How to make it after mounting them? Just moving them from /dev/hda4? TIA

BR
satimis
Only copy the content to the other partition and edit the fstab and set the mountpoint to /var and do a reboot, same as the home, copy the content of the /home directory to the new partition and set the partition mountpoint to /home

You have to reboot for the changes to make effect.

Last edited by mr_demilord; 12-03-2005 at 01:51 AM.
 
Old 12-03-2005, 02:07 AM   #17
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,426

Rep: Reputation: 53
Hi mr_demilord,

Tks for your advice. If I understand it correctly.

1)
Run fdisk to create following partitions (in my case) before installation
/dev/hda1
/dev/hda2
/dev/hda3
/dev/hda5
/dev/hda6

2)
Install the complete OS as
/dev/hda1 /boot
/dev/hda2 /
/dev/hda3 swap

3)
mount
/dev/hda5
/dev/hda6
respectively

4)
move
/home to /dev/hda5
/var to /dev/hda6

5)
edit /etc/fstab as:
Code:
/dev/hda2    	/           	ext2/3   defaults                    0 0
/dev/hda1    	/boot       	ext2/3   ro,nosuid,nodev             0 2

/dev/hda3    	none        	swap	 sw                          0 0
proc        	/proc       	proc     defaults                    0 0

/dev/fd0    	/mnt/floppy 	auto     noauto,rw,sync,user,exec    0 0
/dev/cdrom  	/mnt/cdrom  	iso9660  noauto,ro,user,exec         0 0
/dev/cdrom1	/mnt/cdwriter

/dev/hda5    	/home           ext2/3   rw,nosuid,nodev             0 2
/dev/hda6    	/var            ext2/3   rw,nosuid,nodev             0 2
6)
reboot the PC

If I'm wrong please correct me.

Furthermore can /home and /var be installed directly on respective partitions without these further steps?

TIA

BR
satimis
 
  


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
How can I install lfs livecd on hard disk? bhxs1809 Linux From Scratch 3 02-25-2009 04:13 AM
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
how to mount hard drive with a livecd? santaliqueur Linux - Software 8 10-07-2005 12:08 AM
install livecd to hard drive? jmille34 Linux From Scratch 7 07-21-2005 04:30 PM
Red Hat 7 install on hard drive using ULTRA100 drive fbwr75215 Linux - Software 4 04-15-2001 09:26 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration