Click to See Complete Forum and Search --> : Please answer these easy ones (hopefully) about fstab


sixfeetsix
11-09-2001, 01:53 AM
I'm doing this Linux from scratch project and I need some help over how to configure partitions...

1.Should I tell fstab that the main partition is:
ext2 or reiserfs(from what I read before, the second one creates a ramdisk...i'm not sure anyway)

2.Should I put the line to mount USB devices(this one bugs me because my mouse is USB and there is nothing bout it in my current fstab)

3.What does this line mount and who needs it?:
devpts /dev/pts devpts gid=4,mode=620 0 0

4.What do the two 0 0 or 1 1 are used for?

5.I'm not sure what this line mount,any hint?:
proc /proc proc defaults 0 0

6.This one is not related to the previouses, but anyway: what's a gateway and who needs to configure one?

Any answer for any of the previouses questions would be greatly appreciated...

:confused:

David Dorward
11-09-2001, 02:23 AM
(1) The difference between ext2 and reiserfs is not a ramdisk, they a different file systems (as fat32 and ntfs are different file systems used in the Windows world)

(3) About PTS (http://www.google.com/search?q=cache:JuBwSerbpew:www.nsa.gov/selinux/doc/slinux-200109261436/node60.html+what+is+devpts)

(4) Read man fstab, it explains them

(5) The proc file system is a way to find out information about your system. For example to find out about the PCI devices on your system cat /prov/pci

(6) A gateway is a computer to route network traffic through. For example, I have a machine with an ISDN card and a network card in it. This machine connects to the internet. All my other machines only have network cards, they have the machine with the ISDN card set as their default gateway and can access the internet through it (the gateway has to be configured to allow this BTW).

sixfeetsix
11-09-2001, 02:33 AM
Ok, wich and when does a fs need to be dumped?

Then, I guess I should tell fstab to check only Linux fs, right?

About the different kinds of fs, do I absolutly have to configure an ext2 previoulsy formatted partition as ext2, if yes can I convert ext2 as reiserfs? Wich is better anyway?

Thanx in advance...

The Whizzard
11-09-2001, 02:56 AM
If the linux system you are making the LFS has reiserfs support, format your LFS partition as reiserfs. When you configure and make your LFS kernel, have reiserfs built into the kernel.

sixfeetsix
11-09-2001, 03:11 AM
Ok, I have a primary partition (ext2) created using PartitionMagic that holds my Mandrake 8.0, that partition being the one from which I boot from.

Then I decided to make lfs, so I went into PartitionMagic again and created another primary partition (ext2) to hold the new OS...

1.From what i just wrote, can I tell fstab to mount my new partition created as ext2 in PM and when I compile the kernel tell it to support it?

2.If not, can I still do the lfs thing with ext2?

3.And if I can't or should not use an ext2 fs for lfs, what tool should I use to convert or (delete and change) to reiserfs?

Thanx for helping

CP
11-09-2001, 05:29 AM
RTFM. When you start installing LFS all of these things are explained. It shows you how to make your fstab file. Make sure you read everything. I f*cked up my system by not, I had stuffed up libraries and heaps of other stuff. I suggest you read it first then start. And it will take ages. But you want to use ext2. It will make it easier.