View previous topic :: View next topic |
Author |
Message |
goldfish777 Tux's lil' helper
Joined: 17 Feb 2010 Posts: 79
|
Posted: Fri Feb 26, 2010 2:00 am Post subject: fstab question |
|
|
In the Gentoo install guide here: http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=8
It says that I'm supposed to make the fstab file. I saw that one already exists. Also it says that the existing one isn't valid.
Should I create one using mkdir or do I edit the existing one? _________________ Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn. |
|
Back to top |
|
|
snakeo2 Veteran
Joined: 01 Jan 2006 Posts: 1237
|
Posted: Fri Feb 26, 2010 2:03 am Post subject: |
|
|
edit the existing one. Post the the contents of your fstab file as well as the output of " fdisk -l " _________________ Gigabyte MA790X-UD4P Motherboard
AMD Phenom II X4 940 Black Edition
MSI ATI R4650 PCIe2
250GB SATA Drive
4GB Corsair DDR2 |
|
Back to top |
|
|
goldfish777 Tux's lil' helper
Joined: 17 Feb 2010 Posts: 79
|
Posted: Fri Feb 26, 2010 3:52 am Post subject: |
|
|
Why do I need to post the contents? _________________ Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn. |
|
Back to top |
|
|
tgR10 Apprentice
Joined: 23 Oct 2007 Posts: 262 Location: caly ten ambaras
|
Posted: Fri Feb 26, 2010 4:28 am Post subject: |
|
|
goldfish777 wrote: | Why do I need to post the contents? |
it seems like you don't know what you are doing, so post what snakeo2 ask and somebody will help you with that _________________ "bo kto ma racje ? ten kto z bliska zobaczy"
"moge nie wiedziec,wchlaniam niewiedze z malych torebek"
http://i12.tinypic.com/4pow0mu.png
http://userbar.tgr.debil.eu/userbar.jpg |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Fri Feb 26, 2010 5:07 am Post subject: |
|
|
goldfish777 wrote: | Why do I need to post the contents? |
with the output of fdisk -l we can see how you've decided to partition things
We can compare this to your /etc/fstab to make sure you have done things correctly
Note that mkdir makes a new directory. When you want to make a new file, you can either do touch somefilename, or just fire up a text editor, e.g.
or
And the file will be created once you save it. The same way things work in windows, if for example you Start=>Run, type "notepad C:\somefile.txt", type some text in the notepad file, then File=>Save to create a new file. _________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
Back to top |
|
|
goldfish777 Tux's lil' helper
Joined: 17 Feb 2010 Posts: 79
|
Posted: Fri Feb 26, 2010 2:36 pm Post subject: |
|
|
I've done a lot with fstab so im pretty comfortable with it. Regardless, I will still post the contents later today(right now I got school and other things to do first). _________________ Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn. |
|
Back to top |
|
|
NathanZachary Moderator
Joined: 30 Jan 2007 Posts: 2605
|
Posted: Fri Feb 26, 2010 7:19 pm Post subject: |
|
|
I don't think it was meant to be a cut. We were simply offering to help you if you weren't comfortable with editing the fstab. If you do need help with it, please just ask. _________________ “Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio--- |
|
Back to top |
|
|
goldfish777 Tux's lil' helper
Joined: 17 Feb 2010 Posts: 79
|
Posted: Fri Feb 26, 2010 8:08 pm Post subject: |
|
|
I'm not taking it as a cut, I'm not near as familiar with linux as you guys so I will acept all the help I can get.
Here is the output of fdisk -l
Code: | Disk /dev/hda: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x878f878f
Device Boot Start End Blocks Id System
/dev/hda1 * 1 5 40131 83 Linux
/dev/hda2 6 528 4200997+ 82 Linux swap / Solaris
/dev/hda3 528 7297 54371992+ 83 Linux
Disk /dev/hdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/tracks, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0358c989 |
Here are the contents of fstab:
Code: |
/dev/hda1 /boot ext2 noauto,noatime 1 2
/dev/hda3 / ext3 noatime 0 1
/dev/hda2 none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto,ro 0 0
/dev/fd0 /mnt/floppy auto noauto 0 0
/dev/hdb1 /media/data ext3 noauto 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 |
_________________ Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn. |
|
Back to top |
|
|
NathanZachary Moderator
Joined: 30 Jan 2007 Posts: 2605
|
Posted: Fri Feb 26, 2010 8:47 pm Post subject: |
|
|
The only thing that I can see as potentially being a problem is /dev/hda*. If you are using the new libata drivers in the kernel (which is strongly recommended), then every drive will be seen as sd* instead of hd*, whether or not it is PATA or SATA. Basically, if you reboot after you are finished with the initial Gentoo base system installation and it fails to boot, it could be this problem. What installation medium did you use (Gentoo minimal, SystemRescueCD, et cetera)? I would have thought that it would have already been using the libata drivers, so when you did fdisk, it would have required /dev/sda. _________________ “Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio--- |
|
Back to top |
|
|
goldfish777 Tux's lil' helper
Joined: 17 Feb 2010 Posts: 79
|
Posted: Fri Feb 26, 2010 10:03 pm Post subject: |
|
|
Im using a Gentoo minimal install. This: "lfslivecd-x86-6.3-r2145.iso" to be exact.
I also I dont have SATA drives. That is why they got partitioned by fdisk as "hda*" _________________ Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn. |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Fri Feb 26, 2010 10:59 pm Post subject: |
|
|
not only sata drives are named as sda...
most modern drivers (notice: modern driver = recent driver even for an old controller) named disk as sd*
And where you'll find modern drivers ? Well, in a modern kernel...
So even if in livecd your disks are named hda... they will certainly be named sda when your own kernel will boot: so, your fstab must call your disk sd* and not hd* |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54391 Location: 56N 3W
|
Posted: Fri Feb 26, 2010 11:16 pm Post subject: |
|
|
krinn,
A more complete answer would be that a modern kernel contains both sets of drivers but the old ones are depreciated.
What goes into /etc/fstab depends on which set of drivers you have made.
If you ave made both sets, its not going to work as the drivers will fight over the hardware. There will be no damage, it just won't work. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Fri Feb 26, 2010 11:18 pm Post subject: |
|
|
goldfish777 wrote: | Im using a Gentoo minimal install. This: "lfslivecd-x86-6.3-r2145.iso" to be exact.
I also I dont have SATA drives. That is why they got partitioned by fdisk as "hda*" |
That's not the gentoo install CD. That's the Linux From Scratch livecd.
And even if you use only IDE drives, they will be labeled as /dev/sd* provided you are using the new PATA drivers under CONFIG_ATA (or "libata" rather). Use of the old IDE drivers under CONFIG_IDE is greatly discouraged. _________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
Back to top |
|
|
NathanZachary Moderator
Joined: 30 Jan 2007 Posts: 2605
|
Posted: Fri Feb 26, 2010 11:29 pm Post subject: |
|
|
Ah yes, the LFS liveCD still uses the older drivers if I remember. That shouldn't be a problem, but hopefully you used the newer libata drivers when you manually configured your kernel for Gentoo. If so, you will indeed need to change your fstab to /dev/sda* instead of /dev/hda*. _________________ “Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio--- |
|
Back to top |
|
|
goldfish777 Tux's lil' helper
Joined: 17 Feb 2010 Posts: 79
|
Posted: Fri Feb 26, 2010 11:44 pm Post subject: |
|
|
Yeah sorry, I blew it. I am using this: "install-x86-minimal-20100126.iso"
Apparently I copied the wrong name from my file on this machine. So basically I should be calling them "sd*" not "hd*" because the drivers that are on the kernel. Is there a way I can be certain that the drivers on the kernel will need "sd*"?
Thanks, you guys are being a great help so far. _________________ Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn. |
|
Back to top |
|
|
NathanZachary Moderator
Joined: 30 Jan 2007 Posts: 2605
|
Posted: Fri Feb 26, 2010 11:48 pm Post subject: |
|
|
You need to go to /usr/src/linux and issue the make menuconfig command just like you did to build your kernel the first time. Then, look for this section:
Code: |
│ Device Drivers --->
│ │ < > ATA/ATAPI/MFM/RLL support ---> │ │
│ │ SCSI device support ---> │ │
│ │ <*> Serial ATA (prod) and Parallel ATA (experimental) drivers --│ │
|
If yours is like mine (with <*> Serial ATA... instead of the ATA/ATAPI/MFM/RLL support being included), then you are using the new libata drivers, and all your devices will be /dev/sd*. This is what it SHOULD look like, so all you need to do is verify that it is, and then change your fstab to represent the difference. _________________ “Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio--- |
|
Back to top |
|
|
goldfish777 Tux's lil' helper
Joined: 17 Feb 2010 Posts: 79
|
Posted: Sat Feb 27, 2010 12:08 am Post subject: |
|
|
You are correct it is set the same as yours. I will make the changes in fstab. Are there any other important details I should know before I continue on with Gentoo? _________________ Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn. |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Sat Feb 27, 2010 12:10 am Post subject: |
|
|
goldfish777 wrote: | You are correct it is set the same as yours. I will make the changes in fstab. Are there any other important details I should know before I continue on with Gentoo? |
not the only thing to add, but something that should be mentioned - in addition to the changes in fstab, youll want grub.conf to reflect the /dev/sd* naming as well once you get to that point
might seem obvious, but heh, wanted to reassure that was the case. _________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
Back to top |
|
|
goldfish777 Tux's lil' helper
Joined: 17 Feb 2010 Posts: 79
|
Posted: Sat Feb 27, 2010 12:23 am Post subject: |
|
|
Ok then will do, thanks for all the help. _________________ Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn. |
|
Back to top |
|
|
NathanZachary Moderator
Joined: 30 Jan 2007 Posts: 2605
|
Posted: Sat Feb 27, 2010 12:27 am Post subject: |
|
|
No problem at all; that's the reason we're here. I can't think of anything else to mention regarding fstab. Let us know if you have any other questions, comments, or concerns regarding your installation. _________________ “Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio--- |
|
Back to top |
|
|
whiteghost Guru
Joined: 26 Jul 2009 Posts: 374 Location: north dakota
|
Posted: Sat Feb 27, 2010 1:41 am Post subject: |
|
|
Quote: | Bluegrass Gospel music |
love it _________________ www.informationclearinghouse.info
May you re-discover what the poor in 18th century France discovered, that rich people's heads can be mechanically separated from their shoulders if they refuse to listen to reason. |
|
Back to top |
|
|
goldfish777 Tux's lil' helper
Joined: 17 Feb 2010 Posts: 79
|
Posted: Sat Feb 27, 2010 2:15 am Post subject: |
|
|
YAYNESS! _________________ Gentoo is clean, mean and fast --perfect OS for a non idiot user... with time to burn. |
|
Back to top |
|
|
|