Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 11-26-2003, 05:38 AM   #1
Registered: Aug 2003
Location: atlanta, ga
Distribution: SuSE 8.2
Posts: 90

Rep: Reputation: 15
/etc/fstab not reading new partition table

SuSE 8.2, 640MHz Athlon, 192mb ram, 10Gb hd.
I used cfdisk & mke2fs to create hda3, then rebooted, only to get these messages.

linux:/home/tyccea # fdisk -l /dev/hda

Disk /dev/hda: 10.2 GB, 10262568960 bytes
255 heads, 63 sectors/track, 1247 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 624 5012248+ 83 Linux
/dev/hda2 625 668 353430 82 Linux swap
/dev/hda3 669 1247 4650817+ 83 Linux

linux:/home/tyccea # cat /etc/fstab
/dev/hda1 / reiserfs defaults 1 1
/dev/hda2 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbdevfs /proc/bus/usb usbdevfs noauto 0 0
/dev/cdrecorder /media/cdrecorder auto ro,noauto,user,exec 0 0
/dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0
/dev/fd0 /media/floppy auto noauto,user,sync 0 0

linux:/home/tyccea # export /dev/hda3 /mnt/lfs
bash: export: `/dev/hda3': not a valid identifier
bash: export: `/mnt/lfs': not a valid identifier

linux:/home/tyccea # mount /dev/hda3
mount: can't find /dev/hda3 in /etc/fstab or /etc/mtab

linux:/home/tyccea # mount -t ext2 /dev/hda3 /mnt/lfs
mount: /dev/hda3 already mounted or /mnt/lfs busy
mount: according to mtab, /dev/hda3 is already mounted on /mnt/lfs

What am I not understanding here? Do I simply need to add the partition manually to fstab? TIA.

Last edited by tyccea; 11-26-2003 at 06:21 AM.
Old 11-26-2003, 06:20 AM   #2
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Yeah - you add it. fstab doesn't read the partition table - fstab is read by other tools. If you issued the 'mount' command - 'mnt /dev/hda3 /mnt/new_partition' it would show in /etc/mtab, as that's a dynamic file. (Though, with it not being in fstab, you'd probably have to supply a lot more options. Fstab defines a lot of the options such a fstype.)
Old 11-26-2003, 06:33 AM   #3
Registered: Aug 2003
Location: atlanta, ga
Distribution: SuSE 8.2
Posts: 90

Original Poster
Rep: Reputation: 15
Thanks. I'm looking around for the proper way to put the entry in fstab, and tried this after reading man fstab:
/dev/hda3 /mnt/lfs ext2 defaults 1 1

I can call directory just fine; it already contains the lost+found folder. So I'm off to download the packages! Thanks again.
Old 11-26-2003, 11:32 AM   #4
Registered: Nov 2003
Distribution: xubuntu
Posts: 217

Rep: Reputation: 30
Make SURE you have dev and exec might not hurt to have user on there either.

/dev/hda3 /mnt/lfs ext2 defaults,dev,exec,user 1 1

user: so a non-root user can mount/umout it
exec: so you can execute ./ on it
dev: so when you create the devices (like /dev/null) it doesnt error...

In fact, this is the entry I used, successfully:

/dev/hda5 /mnt/lfs ext2 defaults,users,exec,dev,rw 1 2


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
"No partition table or unknown signature on partition table" 10.1 install madcow007 Slackware 4 02-09-2009 11:04 AM
Trouble reading usb key partition table BNI Linux From Scratch 1 11-02-2005 10:13 AM
Issues reading usb key partition table BNI Linux - Hardware 2 11-02-2005 08:23 AM
re-reading in fstab? supersucker Linux - Newbie 2 05-30-2005 07:19 AM
Slack 10: S-ATA = "No partition table or unknown signature on partition table"? dissolved soul Slackware - Installation 11 08-05-2004 02:12 PM

All times are GMT -5. The time now is 04:44 PM.

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