You are not logged in.

#1 2011-08-23 06:01:39

mirelsol
Member
Registered: 2011-08-23
Posts: 6

[SOLVED] getpt failed : no such file or directory

Hi,

When I try to open a terminal I get this error : "getpt failed : no such file or directory".
I don't know exactly when it happened since I made several updates of my system but only tried recently to open a terminal.
I searched the web before posting (https://bbs.archlinux.org/viewtopic.php?id=111418, https://bbs.archlinux.org/viewtopic.php?id=123043), but it didn't help.
Here is the output of the following commands :
mount | grep pts => nothing
ls -l /dev/ptmx => /dev/ptmx

In my /etc/fstab file I have this line :
none                   /dev/pts      devpts    defaults            0      0

I couldn't find any useful information in the log files.

I can get it working running manually :
mkdir /dev/pts
mount -t devpts devpts /dev/pts

But of course this is tricky... I didn't change any configuration file nor did something with fstab or mounting process.

Any idea?

Thanks in advance!

Last edited by mirelsol (2011-08-24 16:07:55)

Offline

#2 2011-08-23 06:13:10

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: [SOLVED] getpt failed : no such file or directory

Please put commands and terminal outputs in [code] tags.

Are you using quick-init or some other init system?
/dev/pts is mounted by rc.sysinit, so you can and should remove this fstab entry.


This silver ladybug at line 28...

Offline

#3 2011-08-23 08:44:29

mirelsol
Member
Registered: 2011-08-23
Posts: 6

Re: [SOLVED] getpt failed : no such file or directory

Thanks for your answer.
No I'm not using any custom init system...
I tried to remove the line from fstab but it doesn't help...

Should I see in rc.sysinit an explicit line mounting /dev/pts like it is done for

/bin/mount -n -t sysfs none /sys

?

Offline

#4 2011-08-23 09:08:17

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: [SOLVED] getpt failed : no such file or directory

Yes,

$ grep /dev/pts /etc/rc.sysinit 
# mount /proc, /sys, /run, /dev, /run/lock, /dev/pts, /dev/shm (the api filesystems)
mountpoint -q /dev/pts || mount -n /dev/pts &>/dev/null \
	|| mount -n -t devpts devpts /dev/pts -o mode=0620,gid=5,nosuid,noexec

Make sure initscripts is up to date.


This silver ladybug at line 28...

Offline

#5 2011-08-24 16:08:54

mirelsol
Member
Registered: 2011-08-23
Posts: 6

Re: [SOLVED] getpt failed : no such file or directory

Ok there was a problem with initscripts, I reinstalled it.
Thanks for your help.

Offline

#6 2011-08-31 00:41:31

IlPrincipino
Member
Registered: 2010-06-10
Posts: 61

Re: [SOLVED] getpt failed : no such file or directory

I have exactly the same problem. I cant use the terminal at all so I dont know how to fix it. How can I reinstall initscripts ?

Offline

#7 2011-08-31 02:09:08

IlPrincipino
Member
Registered: 2010-06-10
Posts: 61

Re: [SOLVED] getpt failed : no such file or directory

It happened to me after using quick-init.

Offline

#8 2011-08-31 03:43:23

rockin turtle
Member
From: Montana, USA
Registered: 2009-10-22
Posts: 227

Re: [SOLVED] getpt failed : no such file or directory

IlPrincipino, You can boot your system to run level three (no X windows).  I have an entry in my /boot/grub/menu.lst file like the following:

title  Arch Linux (Console)
root   (hd0,0)
kernel /vmlinuz-linux root=/dev/disk/by-uuid/... vga=773 ro 3
initrd /initramfs-linux.img

which (if selected at boot) will boot directly into a terminal from which you can re-install initscripts.  If you don't have such an entry, when the boot screen is displayed (during boot): select kernel, then type 'e' to edit the entry.  Select the line you would like to edit and press 'e' again to edit the line.  The key entry is the 3 at the end of the line.  Press ENTER then type 'b' to continue the boot process with the modified entry.

Offline

#9 2011-08-31 14:54:53

IlPrincipino
Member
Registered: 2010-06-10
Posts: 61

Re: [SOLVED] getpt failed : no such file or directory

Thanks I forgot about that. I added to rc.local the following lines and it solved the problem with the terminal:     
mkdir -p /dev/pts
mount -t devpts devpts /dev/pts

However, the other problem I had after using quick-init was that the desktop is all black and I dont have icons. Here is an screenshot.

MOD EDIT -- Read forum rules. Do not post full size images. -- Inxsible

Offline

#10 2011-08-31 15:41:23

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: [SOLVED] getpt failed : no such file or directory

No, you either don't use quick-init, or report the bug to quick-init upstream so they may fix it.


This silver ladybug at line 28...

Offline

#11 2011-08-31 17:04:38

IlPrincipino
Member
Registered: 2010-06-10
Posts: 61

Re: [SOLVED] getpt failed : no such file or directory

Sorry, I didnt know that images werent allowed. Im not sure that is quick-init, it may have something to do with preload. Going to uninstall it and see what happens.

Offline

#12 2011-08-31 18:33:17

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: [SOLVED] getpt failed : no such file or directory

IlPrincipino wrote:

Sorry, I didnt know that images werent allowed. Im not sure that is quick-init, it may have something to do with preload. Going to uninstall it and see what happens.

Not quite. Images are allowed provided they keep to small size. As you were told, read the forum rules, in this case: https://wiki.archlinux.org/index.php/Fo … s_and_Code
Post thumbnails if available. Otherwise you may also link to an existing larger image so that readers can look at it on demand.


To know or not to know ...
... the questions remain forever.

Offline

Board footer

Powered by FluxBB