Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 12-03-2003, 10:32 AM   #1
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238

Rep: Reputation: 30
Linux From Scratch

someone ealier posted a link to a website that shows you how to install linux from scratch.

In my spare time I'm going to do this in order to gain a little bit of knowledge about how linux works.

I dont want to effect my current install, so I will setup a second HD, but once setup, how do I switch to the other drive? i.e. in dos you would just type 'd:' and this would take you to that drive.

Is it similar in linux, but you enter 'hdb/'?
Old 12-03-2003, 11:04 AM   #2
Registered: Oct 2003
Location: Cornwall, UK
Distribution: Fedora Core 4
Posts: 268

Rep: Reputation: 30

Last edited by 8nasmith; 12-10-2003 at 12:15 PM.
Old 12-03-2003, 11:24 AM   #3
Senior Member
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
first find were the drive is conected to (look at devices.txt in the linux source itll give every device name number and what is is) then just mount it like and partion (if its hdb then type mount /dev/hdb1 or whatever the # is) also u might have to make the device file for the 2nd hard drive so thatll txt file is a must
Old 12-03-2003, 11:29 AM   #4
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238

Original Poster
Rep: Reputation: 30
I felt that catch my hair as it went straight over my head!

Old 12-03-2003, 12:17 PM   #5
Registered: Aug 2003
Location: South Africa
Distribution: Ubuntu (Feisty)
Posts: 280

Rep: Reputation: 30
what sciyro is saying is this:
if its not the first hd, and you have 2 hard disks, its going to be /dev/hdb.
you should make partitions on the hd and format the partitions; you will end up with /dev/hdb1,/dev/hdb2,/dev/hda3 and so on.
then you need to make a mount point (just a normal dir somewhere) and mount your hd to that point.
in example: you have formatted the 1st partition of the 2nd harddisk as reiserfs.
to mount it youll have to create a mount point, lets say we make a dir called hdb1 in your home dir.
then you can mount it using the mount command as root like "mount -t reiserfs /dev/hdb1 /home/*your username*/hdb1".
if you want to access the drive you can then just do "cd /home/*your username*/hdb1".
and btw you should edit your fstab so you wont have to mount it manually each time
Old 12-03-2003, 12:20 PM   #6
Registered: Sep 2003
Location: Czech Republic - Prague
Distribution: Slackware 9.1
Posts: 61

Rep: Reputation: 15
Look here -> maybe it will help you. You couuld mount your new HDD under /mnt/lfs as is done in LFS-BOOK
Old 12-03-2003, 12:45 PM   #7
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Re: Linux From Scratch

Originally posted by fuelinjection
I will setup a second HD, but once setup, how do I switch to the other drive? {SNIP}
What you are referring to is called chrooting, or simply chroot. During the LFS (Linux From Scratch) book you'll come upon the section that explains in detail how to perform the chroot, but before that point it's important you are working on a partition that you don't have data on (other than the LFS data of course). You will need this partition/device (if it's a second HD it'll be a partition on a device ) to have a filesystem on it, and that too should/will be covered in the LFS manual.

Now, to answer your question, we'll assume your second hard drive is Primary Slave as you have indicated, /dev/hdb, and that you have 1 massive partition on it, so just /dev/hdb1 exists. Now, how does one chroot? Well, first off, you'll need to have the drive mounted (let's assume at /mnt/lfs) and the data from Chapter 5 on it, once that's done you have a filesystem that is populated enough to live in a chrooted environment by:
chroot /mnt/lfs

And [basically] you are done. So the easy answer to your question:

Old 12-03-2003, 06:05 PM   #8
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Originally posted by 8nasmith
are there any pro moderator out there who can help?

they do know a lot

Please only post if your going to post constructively to answer others questions on the forums. This is a reason the person posted was to recieve answers, not for other members to post that they need help or answers as well, that's why we have forums like this.

It is in our rules to post a constructive post or just move on to the next one. If your not going to provide actual answers to a question, move on and post in the ones you can actually provide helpful posts in.


PS. The way your posting on the forums seems to some members like an attempt to boost up your posts count which truly means nothing. Just a thought.
Old 12-04-2003, 01:48 AM   #9
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238

Original Poster
Rep: Reputation: 30
thanks for all the help guys, I think I've got enough information now to do it.

God I love this site!!! Someones always got the answer


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
Linux From Scratch Help! TechnoPhile Linux From Scratch 7 05-20-2005 12:25 AM
OK so got to know linux from scratch but......... tuxfood Linux - General 2 04-03-2004 08:14 AM
ali aladdin v agp stinks :scratch: :scratch: :scratch: Mr Marmmalade Linux - Hardware 1 07-08-2003 05:11 AM
Linux From Scratch astablemaverick Linux From Scratch 1 08-03-2002 02:59 AM
Need Help with Linux From Scratch!! jbhoo Linux From Scratch 8 04-23-2002 06:43 PM > Forums > Linux Forums > Linux - General

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration