Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
TMPFS booting issue
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
chaoticmachinery
n00b
n00b


Joined: 27 Jan 2003
Posts: 2

PostPosted: Mon Jan 27, 2003 7:10 pm    Post subject: TMPFS booting issue Reply with quote

I have installed gentoo for the first time. I pretty much followed the sparc install docs to the letter and using the latest rc release for gentoo sparc.

Upon booting up I recieve the following error:
Mounting tmpfs at /mnt/.init.d...

The "mount" command failed with error:

wrong fs type, bad option, bad superblock on tmpfs, or too many mounted file systems

Then goes into maintenance mode.

I have traced it down to the checkroot script tries to do the tmpfs mount. I have also ensured that tmpfs is compiled into the kernel.

Anyone have any ideas?
Back to top
View user's profile Send private message
chaoticmachinery
n00b
n00b


Joined: 27 Jan 2003
Posts: 2

PostPosted: Mon Jan 27, 2003 10:43 pm    Post subject: Never mind Reply with quote

Not sure what it was. I pulled UNIX 98 ptys out of the kernel compile and recompiled. Seemed to fix everything.

Very odd.....
Back to top
View user's profile Send private message
Kumba
Developer
Developer


Joined: 16 Jul 2002
Posts: 393
Location: Sigma 957

PostPosted: Sat Feb 01, 2003 9:41 am    Post subject: Reply with quote

Was it UNIX98 ptys, or /dev/pts filesystem? I know I have UNIX98 ptys built in on my kernel, and it works flawlessly. The only time I ran into the tmpfs issue was once when I actually forgot to compile in tmpfs, because I was actually looking for "tmpfs" in the filesystems section instead of it's proper name, which is "Virtual..." soemthing or another.

--Kumba
_________________
"The past tempts us, the present confuses us, the future frightens us. And our lives slip away, moment by moment, lost in that vast, terrible in-between."
--Emperor Turhan, Centauri Republic
Back to top
View user's profile Send private message
mrgalihad
Tux's lil' helper
Tux's lil' helper


Joined: 30 Jan 2003
Posts: 91

PostPosted: Sat Feb 01, 2003 6:59 pm    Post subject: Reply with quote

Hrmmm, I'm having the same problems now, except that I don't UNIX98 ptys enabled. I can't find anyplace to enable or disable /dev/pts filesystem anwhere either. Also can't find any reference to the tempfs in the menuconfig.
Back to top
View user's profile Send private message
mrgalihad
Tux's lil' helper
Tux's lil' helper


Joined: 30 Jan 2003
Posts: 91

PostPosted: Sat Feb 01, 2003 6:59 pm    Post subject: Reply with quote

Hrmmm, I'm having the same problems now, except that I don't UNIX98 ptys enabled. I can't find anyplace to enable or disable /dev/pts filesystem anwhere either. Also can't find any reference to the tempfs in the menuconfig.

edit: ***Correction, I was blind. I found the /dev/pts stuff. I'm enabling to see if that helps

update: Yes, it seems enabling the /dev/pts file system fixed my issues. :)
Back to top
View user's profile Send private message
Kumba
Developer
Developer


Joined: 16 Jul 2002
Posts: 393
Location: Sigma 957

PostPosted: Sun Feb 02, 2003 9:24 am    Post subject: Reply with quote

I wonder if a bug needs to be filed for this. I have /dev/pts disabled, and tmpfs enabled, and all is fine for my Blade system.

Code:
-- tmpfs --
[*] Virtual memory file system support (former shm fs)


Code:
-- devfs --
[*] /proc file system support                                                                     
[*] /dev file system support (EXPERIMENTAL)                                                       
[*]   Automatically mount at boot
[ ]   Debug devfs
[ ] /dev/pts file system for Unix98 PTYs


From the kernel help on /dev/pts:

Code:
CONFIG_DEVPTS_FS:

You should say Y here if you said Y to "Unix98 PTY support" above.
You'll then get a virtual file system which can be mounted on
/dev/pts with "mount -t devpts". This, together with the pseudo
terminal master multiplexer /dev/ptmx, is used for pseudo terminal
support as described in The Open Group's Unix98 standard: in order
to acquire a pseudo terminal, a process opens /dev/ptmx; the number
of the pseudo terminal is then made available to the process and the
pseudo terminal slave can be accessed as /dev/pts/<number>. What was
traditionally /dev/ttyp2 will then be /dev/pts/2, for example.

The GNU C library glibc 2.1 contains the requisite support for this
mode of operation; you also need client programs that use the Unix98
API. Please read Documentation/Changes for more information
about the Unix98 pty devices.

Note that the experimental "/dev file system support"
(CONFIG_DEVFS_FS)  is a more general facility.


The last sentence is why /dev/pts looks neccessary to disable to use devfs correctly. Still very weird though. Whatever works, though...


--Kumba
_________________
"The past tempts us, the present confuses us, the future frightens us. And our lives slip away, moment by moment, lost in that vast, terrible in-between."
--Emperor Turhan, Centauri Republic
Back to top
View user's profile Send private message
genehack
n00b
n00b


Joined: 02 Feb 2003
Posts: 5
Location: maryland

PostPosted: Sun Feb 02, 2003 2:19 pm    Post subject: Reply with quote

I have /dev/pts disabled, and tmpfs enabled, and all is fine for my Blade system.

Well, I've had /dev/pts and tmpfs enabled, and I've been having the same problems with a fresh install on an Ultra10. It's definitely kernel config enabled, since the kernel from the install disk boots just fine. I'm rebuilding with /dev/pts off and tmpfs on right now; I'll followup with results.
Back to top
View user's profile Send private message
genehack
n00b
n00b


Joined: 02 Feb 2003
Posts: 5
Location: maryland

PostPosted: Sun Feb 02, 2003 2:57 pm    Post subject: Reply with quote

Quote:
I'm rebuilding with /dev/pts off and tmpfs on right now; I'll followup with results.


Yep, that did it. /dev/pts support needs to be OFF, and tmpfs support needs to be ON.

It would be nice if the install guide had a "these kernel config settings must be like so" section...
Back to top
View user's profile Send private message
Kumba
Developer
Developer


Joined: 16 Jul 2002
Posts: 393
Location: Sigma 957

PostPosted: Sun Feb 02, 2003 9:02 pm    Post subject: Reply with quote

genehack wrote:
It would be nice if the install guide had a "these kernel config settings must be like so" section...


The red warning following Code Example 17.2 in the x86 install states this:
Quote:
Warning: For your kernel to function properly, there are several options that you will need to ensure are in the kernel proper -- that is, they should be enabled and not compiled as modules. You will need to enable the "Code maturity level options --> Prompt for development and/or incomplete code/drivers" option to see several of these selections. Under the "File systems" section, be sure to enable the "Device File System" (note that you don't need to enable the "/dev/pts file system support" option). You'll also need to enable the "Virtual Memory Filesystem". Be sure to enable "ReiserFS" if you have any ReiserFS partitions; the same goes for "Ext3". If you're using XFS, enable the "SGI XFS filesystem support" option. It's always a good idea to leave ext2 enabled whether you are using it or not. Also, most people using IDE hard drives will want to enable the "USE DMA by default" option; otherwise, your IDE drives may perform very poorly. Of course, remember to enable "IDE disk" support as well -- otherwise your kernel won't be able to see your IDE disks.


It looks like they will need to add this for sparc systems as well. I believe a bug will need to be filed for this to get the documentation updated.


--Kumba
_________________
"The past tempts us, the present confuses us, the future frightens us. And our lives slip away, moment by moment, lost in that vast, terrible in-between."
--Emperor Turhan, Centauri Republic
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum