Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12946 - /etc/fstab enhancement
Summary: /etc/fstab enhancement
Status: RESOLVED INVALID
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Gentoo Linux x86 Installation Guide (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Docs Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-30 10:53 UTC by jochem prins
Modified: 2003-02-09 15:14 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jochem prins 2002-12-30 10:53:06 UTC
Hi,

just read the cd install guide and noticed that something very usefull is
missing in the /etc/fstab section. It doesn't mention how to setup multiple
partitions on the same harddisk. I know that the major part is simply just
copy-paste, except for the the device-name and mount-point of course. Here's
what i mean:

Your /etc/fstab taken from the cd install guide:
# <fs>           <mountpoint>   <type>   <opts>          <dump/pass>
/dev/BOOT           /boot       ext2	 noauto,noatime	 1 2
/dev/ROOT           /           ext3	 noatime         0 1
/dev/SWAP           none        swap	 sw              0 0
/dev/cdroms/cdrom0  /mnt/cdrom  iso9660	 noauto,ro       0 0
proc                /proc       proc	 defaults        0 0
			
My /etc/fstab:
# <fs>           <mountpoint>   <type>   <opts>          <dump/pass>
/dev/hda1       /boot       ext2    noauto,ro   0 2
/dev/hda2       none        swap    sw          0 0
/dev/hda3       /           ext3    noatime     0 1
/dev/hda4       /usr        ext3    noatime     0 2
/dev/hdb1       /tmp        ext3    noatime     0 2
/dev/hdb2       /var        ext3    noatime     0 2
/dev/hdb3       /home       ext3    noatime     0 2
/dev/hdb4       /opt        ext3    noatime     0 2
/dev/cdroms/cdrom0  /mnt/dvd    iso9660 noauto,ro,user  0 0
/dev/cdrw       /mnt/cdrom  iso9660 noauto,ro,user  0 0
tmpfs           /dev/shm    tmpfs   defaults    0 0
proc            /proc       proc    defaults    0 0

As you can see the differences are in the dump/pass(last) section,
the thing is that when people have a lot of separate partitions for /tmp, /var,
/home, /boot,etc. 
The precondition is that the / partition should already be mounted, otherwise
those partitions cannot be mounted on the given mount-locations. Thus we tell
the system this by putting 0 2 in the dump/pass section.

Note#1: normally people will not run into weird situation if they only
create/have the partitions you mention in the cd install guide. However when
there exist more partitions on a harddisk, it will become a problem so it's
probably a good idea to mention this to our rookies in the field. 

Note#2: i don't have a clue of how i should report this "bug" in the document, i
mean on which document should i post this reaction to? The english(=original?)
document or one of the others? Perhaps a guideline would be helpfull here.
Comment 1 Jungmin Seo (RETIRED) gentoo-dev 2003-01-11 19:39:36 UTC
I think we should be careful on adding more information on the install guide.
It gets longer and longer that the beginners will not be happy with the document.


Btw, i see your point.  Yes, i think we need some more on this..
Comment 2 Jungmin Seo (RETIRED) gentoo-dev 2003-01-11 19:42:14 UTC
is there any other doc-dev interested on this?
Comment 3 John Davis (zhen) (RETIRED) gentoo-dev 2003-01-16 07:52:12 UTC
It would probably be a good addition. Is this file in baselayout? 

//zhen
Comment 4 John Davis (zhen) (RETIRED) gentoo-dev 2003-01-26 23:19:46 UTC
On second thought, is this really necessary? We could simply add a note saying
to follow the format if they want to add more filesystems...

Comment 5 John Davis (zhen) (RETIRED) gentoo-dev 2003-02-09 15:14:07 UTC
On second thought though, I think that the user can see the difference, considering that they had to partition their disc to begin with...