Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cannot open /dev/tty2: no such file or directory [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Mon Nov 03, 2014 10:41 pm    Post subject: cannot open /dev/tty2: no such file or directory [solved] Reply with quote

I have been following this old entry to create a tiny usb stick:
http://www.gentoo-wiki.info/TinyGentoo

using busybox as the system init, whenever I try to boot however I get:



cannot open /dev/tty2: no such file or directory
cannot open /dev/tty3: no such file or directory
cannot open /dev/tty4: no such file or directory

so I created an inittab:
tty1::respawn:/sbin/getty -n -l "login -f root" 38400 tty1

Now I'm getting:
cannot open /dev/tty1: no such file or directory

mdev handles /dev/, I'm using the init file in the wiki entry:
echo
echo
echo " Welcome to TinyGentoo."
echo
echo

echo " * Setting umask.."
umask 022
echo " * Mounting /proc.."
mount -t proc none /proc
# NOTE FROM ANOTHER USER
# I also have this in here to successfully populate /dev by using mdev
echo " * Mounting metafilesystems..."
mount -t proc proc /proc
mount -t tmpfs mdev /dev && mkdir /dev/pts
mount -t devpts devpts /dev/pts
mount -t sysfs sysfs /sys
echo " * Populating /dev..."
echo /sbin/mdev > /proc/sys/kernel/hotplug
mdev -s
# END OF NOTE
echo " * Starting init.."
exec <dev/console >dev/console 2>&1
exec chroot . /sbin/init

echo " *** Starting init failed! ***"
echo " * Trying to start a shell.."
exec /bin/ash


Last edited by Adel Ahmed on Tue Nov 04, 2014 3:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7127
Location: almost Mile High in the USA

PostPosted: Tue Nov 04, 2014 1:05 am    Post subject: Reply with quote

Did you compile in virtual terminal support in your kernel?

After running mdev -s, what gets populated in your /dev ?

hmm... I might have to try this and build a more suited rootdisk for my elan...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Tue Nov 04, 2014 6:13 am    Post subject: Reply with quote

yes I have

while I was trying to list /dev
I noticed the following error
could not execute /init (error -8 )
I'll try to resolve this error, see where things go
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Tue Nov 04, 2014 3:23 pm    Post subject: Reply with quote

apparently the problem was executing !#/bin/ash support was modularized, when I built it in, I'm getting a different problem now
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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