Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
bash: line 1: /dev/null: no such file or directory
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
hondaman
n00b
n00b


Joined: 25 Mar 2004
Posts: 19

PostPosted: Fri Mar 26, 2004 1:05 am    Post subject: bash: line 1: /dev/null: no such file or directory Reply with quote

This is the third time in three installs this has happened, and I dont know whats causing it. This error is happening when I try and do emerge-webrsync. I cant type "mount" in this console, I have to switch to a different console. So, in alt-f2, i do mount, and this is what it says:

tempfs on / type tempfs (rw)
tempfs on / type tempfs (rw)
devfs on /dev type devfs (rw)
/newroot/dev/cdroms/cdrom0 on /mnt/cdrom type iso9660 (ro)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw)
none on /proc/bus/usb type usbfs (rw)
/dev/hda2 on /mnt/gentoo type ext3 (rw)
/dev/hda1 on /mnt/gentoo/boot type ext2 (rw)
/dev/hda3 on /mnt/gentoo/home type ext3 (rw)
/dev/hda5 on /mnt/gentoo/var type ext3 (rw)
/dev/hda7 on /mnt/gentoo/gaming type ext3 (rw)
none on /mnt/gentoo/proc type proc (rw)

This is a dual opteron using the 2004.1 (? latest version) x86-64 live CD.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Fri Mar 26, 2004 2:06 am    Post subject: Reply with quote

Have you tried manually creating the device node ?
Code:
# mknod /mnt/gentoo/dev/null c 1 3
Back to top
View user's profile Send private message
hondaman
n00b
n00b


Joined: 25 Mar 2004
Posts: 19

PostPosted: Fri Mar 26, 2004 2:26 am    Post subject: Reply with quote

Ok, i just rebooted, and before mounting anything I tried your command.

mknod: '/mnt/gentoo/dev/null': no such file or directory

I tried

mknod /dev/null v 1 3 and the file exists.

I then mounted everything, chrootd and did your same command, and it said no such file or directory again.

I then did ls, and there is no /dev whatsoever!
What makes this directory? I must have missed a step again somewhere somehow.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Fri Mar 26, 2004 3:04 am    Post subject: Reply with quote

/dev should be included in the stage tarball, but I have not checked the AMD64 ones because I only have AMD32 hardware at the moment. :)
Back to top
View user's profile Send private message
hondaman
n00b
n00b


Joined: 25 Mar 2004
Posts: 19

PostPosted: Fri Mar 26, 2004 3:26 am    Post subject: Reply with quote

I actually just verified that. I extracted it with |grep -i dev and there is nothing extracting to /dev
Back to top
View user's profile Send private message
RG10
n00b
n00b


Joined: 10 Apr 2004
Posts: 2

PostPosted: Wed Apr 14, 2004 6:43 pm    Post subject: official stage1 missing /dev ----- fixed Reply with quote

I had this same issue, after searching further I found this solution from one of the Gentoo AMD developers.

Quote:
"Something that hasn't hit the tech notes yet.
For those starting with a stage1, when you enter your
chroot, use these commands:

mkdir -p /dev
cd /dev
MAKEDEV generic-i386

The official stage1 is missing /dev."


Hope this helps anyone who has the same issue.
Back to top
View user's profile Send private message
stahlsau
Guru
Guru


Joined: 09 Jan 2004
Posts: 584
Location: WildWestwoods

PostPosted: Wed Apr 14, 2004 6:50 pm    Post subject: Reply with quote

yes, did it too with the
Code:
mkdir -p /dev
command (moved my sys to reiser4, but didn't create /dev)
think if you do like said above it should work...maybe ;-)[/code]
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