*BSD News Article 66776


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!news.cis.okstate.edu!newsfeed.ksu.ksu.edu!news.mid.net!news.sdsmt.edu!news.wildstar.net!imci5!imci4!newsfeed.internetmci.com!tank.news.pipex.net!pipex!dispatch.news.demon.net!demon!longacre.demon.co.uk
From: searle@longacre.demon.co.uk (Michael Searle)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: How to restore /dev from single-user mode
Date: Thu, 25 Apr 1996 22:35:28 BST
Lines: 67
Message-ID: <nC4933694@longacre.demon.co.uk>
NNTP-Posting-Host: longacre.demon.co.uk
X-NNTP-Posting-Host: longacre.demon.co.uk
X-Newsreader: Offlite 0.09 / Termite Internet for Acorn RISC OS

When booting on sd0, after the kernel boot I got these messages:

swapon: /dev/sd0s2b: No such file or directory
Automatic reboot in progress...
/dev/rsd0a: clean, 9251 free (5 frags, 2379 blocks, 0.0% fragmentation)
/dev/sd0s2g: No such file or directory
Can't stat /dev/sd0s2g
Automatic file system check failed ... help!
Enter pathname of shell or RETURN for sh:

After which, I was put into a shell with only the root partition available,
that read-only, and not all commands in that working (such as
/stand/sysinstall. Maybe because they were trying to use other partitions,
or use temporary space.) 

I had been installing some devices for a sound card using /dev/MAKEDEV, and
I think I must have deleted some devices for the HD. So what I want to know,
is how can I make these devices, and what can I do to be able to make the
devices on a read-only filesystem. I would RTFM, but man isn't in the root
partition. I have a list of the contents of /dev:

MAKEDEV MAKEDEV.local audio audio0 bpf0 cd0a cd0c ch0 console cuaa0 cuaa1
cuaa2 cuaa3 cuaia0 cuaia1 cuaia2 cuaia3 cuala0 cuala1 cuala2 cuala3 drum dsp
dsp0 dspW dspW0 erst0 erst0.0 erst0.1 erst0.2 erst0.3 fd fd0 fd0.1200
fd0.1440 fd0.1480 fd0.1720 fd0.360 fd0.720 fd0.800 fd0.820 fd0a fd0b fd0c
fd0d fd0e fd0f fd0g fd0h fd1 fd1.1200 fd1.1440 fd1.1480 fd1.1720 fd1.360
fd1.720 fd1.800 fd1.820 fd1a fd1b fd1c fd1d fd1e fd1f fd1g fd1h ft0 ft0a io
klog kmem lkm lpctl0 lpctl1 lpctl2 lpt0 lpt1 lpt2 matcd0a matcd0c matcd0la
matcd0lc mcd0a mcd0c mem midi0 mixer mixer0 mouse mse0 music music0 nrst0
nrst0.0 nrst0.1 nrst0.2 nrst0.3 nrwt0 nrwt0b nrwt0c nrwt0d null pcaudio
pcaudioctl psm0 pss pss0 ptyp0 ptyp1 ptyp2 ptyp3 ptyp4 ptyp5 ptyp6 ptyp7
ptyp8 ptyp9 ptypa ptypb ptypc ptypd ptype ptypf ptypg ptyph ptypi ptypj
ptypk ptypl ptypm ptypn ptypo ptypp ptypq ptypr ptyps ptypt ptypu ptypv
rcd0.ctl rcd0a rcd0c rch0.ctl rfd0 rfd0.1200 rfd0.1440 rfd0.1480 rfd0.1720
rfd0.360 rfd0.720 rfd0.800 rfd0.820 rfd0a rfd0b rfd0c rfd0d rfd0e rfd0f
rfd0g rfd0h rfd1 rfd1.1200 rfd1.1440 rfd1.1480 rfd1.1720 rfd1.360 rfd1.720
rfd1.800 rfd1.820 rfd1a rfd1b rfd1c rfd1d rfd1e rfd1f rfd1g rfd1h rft0 rft0a
rmatcd0a rmatcd0c rmatcd0la rmatcd0lc rmcd0a rmcd0c rscd0a rscd0c rsd0
rsd0.ctl rsd0a rsd0b rsd0c rsd0d rsd0e rsd0f rsd0g rsd0h rsd0s1 rsd0s2
rsd0s3 rsd0s4 rsd1 rsd1.ctl rsd1a rsd1b rsd1c rsd1d rsd1e rsd1f rsd1g rsd1h
rsd1s1 rsd1s2 rsd1s3 rsd1s4 rsd2 rsd2.ctl rsd2a rsd2b rsd2c rsd2d rsd2e
rsd2f rsd2g rsd2h rsd2s1 rsd2s2 rsd2s3 rsd2s4 rsd3 rsd3.ctl rsd3a rsd3b
rsd3c rsd3d rsd3e rsd3f rsd3g rsd3h rsd3s1 rsd3s2 rsd3s3 rsd3s4 rst0 rst0.0
rst0.1 rst0.2 rst0.3 rst0.ctl rwcd0c rwd0 rwd0a rwd0b rwd0c rwd0d rwd0e
rwd0f rwd0g rwd0h rwd0s1 rwd0s2 rwd0s3 rwd0s4 rwd1 rwd1a rwd1b rwd1c rwd1d
rwd1e rwd1f rwd1g rwd1h rwd1s1 rwd1s2 rwd1s3 rwd1s4 rwd2 rwd2a rwd2b rwd2c
rwd2d rwd2e rwd2f rwd2g rwd2h rwd2s1 rwd2s2 rwd2s3 rwd2s4 rwd3 rwd3a rwd3b
rwd3c rwd3d rwd3e rwd3f rwd3g rwd3h rwd3s1 rwd3s2 rwd3s3 rwd3s4 rwt0 rwt0b
rwt0c rwt0d scd0a scd0c sd0 sd0a sd0b sd0c sd0d sd0e sd0f sd0g sd0h sd0s1
sd0s2 sd0s3 sd0s4 sd1 sd1a sd1b sd1c sd1d sd1e sd1f sd1g sd1h sd1s1 sd1s2
sd1s3 sd1s4 sd2 sd2a sd2b sd2c sd2d sd2e sd2f sd2g sd2h sd2s1 sd2s2 sd2s3
sd2s4 sd3 sd3a sd3b sd3c sd3d sd3e sd3f sd3g sd3h sd3s1 sd3s2 sd3s3 sd3s4
sequencer sequencer0 sndstat speaker st0ctl.0 st0ctl.1 st0ctl.2 st0ctl.3
stderr stdin stdout sysinstall.debug tty ttyd0 ttyd1 ttyd2 ttyd3 ttyid0
ttyid1 ttyid2 ttyid3 ttyld0 ttyld1 ttyld2 ttyld3 ttyp0 ttyp1 ttyp2 ttyp3
ttyp4 ttyp5 ttyp6 ttyp7 ttyp8 ttyp9 ttypa ttypb ttypc ttypd ttype ttypf
ttypg ttyph ttypi ttypj ttypk ttypl ttypm ttypn ttypo ttypp ttypq ttypr
ttyps ttypt ttypu ttypv ttyv0 ttyv1 ttyv2 ttyv3 tun0 tw0 vga wcd0c wd0 wd0a
wd0b wd0c wd0d wd0e wd0f wd0g wd0h wd0s1 wd0s2 wd0s3 wd0s4 wd1 wd1a wd1b
wd1c wd1d wd1e wd1f wd1g wd1h wd1s1 wd1s2 wd1s3 wd1s4 wd2 wd2a wd2b wd2c
wd2d wd2e wd2f wd2g wd2h wd2s1 wd2s2 wd2s3 wd2s4 wd3 wd3a wd3b wd3c wd3d
wd3e wd3f wd3g wd3h wd3s1 wd3s2 wd3s3 wd3s4 zero

Thanks!

-- 
Michael Searle - searle@longacre.demon.co.uk