You are not logged in.
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
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
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
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
Ok there was a problem with initscripts, I reinstalled it.
Thanks for your help.
Offline
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
It happened to me after using quick-init.
Offline
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
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
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
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
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