View previous topic :: View next topic |
Author |
Message |
BlackArrow n00b
Joined: 23 Nov 2002 Posts: 21
|
Posted: Tue Jan 07, 2003 11:23 pm Post subject: Help - /dev is messed up! |
|
|
Hello all. I recently (this weekend) updated my 1.4rc1 system with the command:
After that, I went through the updated config files via etc-update and made changes where I thought applicable.
Upon rebooting, I get a couple errors indicating that the filesystem has been repaired. The first indication that things weren't working is I cannot access any of my optical drives (1 SCSI CDR, 1 IDE DVD-ROM and 1 IDE DVDR).
An lsmod shows the modules loaded, but cdrecord -scanbus gives the following:
Code: | Cdrecord 2.0 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
|
To further make things worse, I cannot mount /boot (among other things).
My /etc/fstab is:
Code: | # /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.10 2002/11/18 19:39:22 azarah Exp $
#
# noatime turns of atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1 /boot ext3 noatime 1 1
/dev/hda3 / ext3 noatime 0 0
/dev/hda2 none swap sw 0 0
/dev/hdb1 /mnt/music ext3 noatime 0 0
/dev/cdroms/cdrom2 /mnt/cdrom iso9660 user,noauto,ro 0 0
/dev/cdroms/cdrom0 /mnt/cdr iso9660 user,noauto,ro 0 0
/dev/cdroms/cdrom1 /mnt/dvdr iso9660 user,noauto,ro 0 0
proc /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink). Adding the following
# line to /etc/fstab should take care of this:
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will use almost no
# memory if not populated with files)
tmpfs /dev/shm tmpfs defaults 0 0
|
The final piece of the puzzle is I went into /dev to look around and here is what I see:
Code: | total 4
drwxr-xr-x 1 root root 0 Dec 31 1969 .
drwxr-xr-x 19 root root 4096 Nov 30 18:23 ..
crw------- 1 root root 8, 0 Dec 31 1969 .devfsd
drwxr-xr-x 1 root root 0 Dec 31 1969 cdroms
crw------- 1 aaron root 5, 1 Jan 7 18:20 console
drwxr-xr-x 1 root root 0 Dec 31 1969 cua
drwxr-xr-x 1 root root 0 Dec 31 1969 discs
drwxr-xr-x 1 root root 0 Dec 31 1969 fb
lr-xr-xr-x 1 root root 13 Jan 7 12:37 fd -> /proc/self/fd
drwxr-xr-x 1 root root 0 Dec 31 1969 floppy
crw-rw-rw- 1 root root 1, 7 Dec 31 1969 full
drwxr-xr-x 1 root root 0 Dec 31 1969 ide
prw------- 1 root root 0 Jan 7 17:37 initctl
drwxr-xr-x 1 root root 0 Dec 31 1969 input
crw-r----- 1 root root 1, 2 Dec 31 1969 kmem
srw-rw-rw- 1 root root 0 Jan 7 17:41 log
crw-r----- 1 root root 1, 1 Dec 31 1969 mem
drwxr-xr-x 1 root root 0 Dec 31 1969 misc
crw-rw-rw- 1 root root 1, 3 Dec 31 1969 null
crw------- 1 aaron root 195, 0 Dec 31 1969 nvidia0
crw------- 1 aaron root 195, 255 Dec 31 1969 nvidiactl
crw-r----- 1 root root 1, 4 Dec 31 1969 port
crw-rw-rw- 1 root root 5, 2 Jan 7 18:22 ptmx
drwxr-xr-x 1 root root 0 Dec 31 1969 pts
drwxr-xr-x 1 root root 0 Dec 31 1969 pty
crw-r--r-- 1 root root 1, 8 Dec 31 1969 random
lr-xr-xr-x 1 root root 33 Jan 7 12:37 root -> ide/host0/bus0/target0/lun0/part3
drwxr-xr-x 1 root root 0 Dec 31 1969 scsi
drwxrwxrwt 2 root root 0 Jan 7 12:37 shm
drwxr-xr-x 1 root root 0 Dec 31 1969 sound
lr-xr-xr-x 1 root root 4 Jan 7 12:37 stderr -> fd/2
lr-xr-xr-x 1 root root 4 Jan 7 12:37 stdin -> fd/0
lr-xr-xr-x 1 root root 4 Jan 7 12:37 stdout -> fd/1
drwxr-xr-x 1 root root 0 Dec 31 1969 tts
crw-rw-rw- 1 root root 5, 0 Dec 31 1969 tty
crw-r--r-- 1 root root 1, 9 Jan 7 17:37 urandom
drwxr-xr-x 1 root root 0 Dec 31 1969 usb
drwxr-xr-x 1 root root 0 Dec 31 1969 vc
drwxr-xr-x 1 root root 0 Dec 31 1969 vcc
crw-rw-rw- 1 root root 1, 5 Dec 31 1969 zero
|
Obviously there is a lot missing, like my hard drives, etc.
I can get on the net, but that's about it. I am going to continue trying to solve this problem , but if anyone has any answers, they'd be VERY appreciated as there is a lot I can't do on the system (obviously).
Thanks!
Aaron |
|
Back to top |
|
|
col l33t
Joined: 08 May 2002 Posts: 820 Location: Melbourne - Australia
|
Posted: Tue Jan 07, 2003 11:25 pm Post subject: |
|
|
replace your /dev with the one in the stagexx tar file.....i.e. mv /dev /dev.old
mv stagexxx/dev /dev |
|
Back to top |
|
|
BlackArrow n00b
Joined: 23 Nov 2002 Posts: 21
|
Posted: Wed Jan 08, 2003 12:02 am Post subject: |
|
|
Thanks for the quick reply. Upon backing up I get:
Code: | mv: cannot move `/dev' to `/dev.old': Device or resource busy |
Any ideas?
Thanks! |
|
Back to top |
|
|
BlackArrow n00b
Joined: 23 Nov 2002 Posts: 21
|
Posted: Wed Jan 08, 2003 12:17 am Post subject: |
|
|
Also, I tried the following:
Code: | mkdir /dev.old
cp /dev -r /dev.old
|
That worked and then:
Code: | cp -r ~/stage1/dev/* /dev |
This copied the files over (I verified; however, upon rebooting, it was back to what it was before. Why can't I learn to leave well enough alone!!! |
|
Back to top |
|
|
BlackArrow n00b
Joined: 23 Nov 2002 Posts: 21
|
Posted: Wed Jan 08, 2003 12:26 am Post subject: |
|
|
Ok success!!! I had to copy over the devfsd.conf from the stage1 tarball in addition to copying over the contents of stage1's /dev.
Now, the big question, what did I do to screw things up in the first place? If it was during the etc-update, I went through each file and if devfsd.conf was there (I don't remember), it sure didn't have contents that would blank mine out!
Thanks! |
|
Back to top |
|
|
col l33t
Joined: 08 May 2002 Posts: 820 Location: Melbourne - Australia
|
Posted: Wed Jan 08, 2003 1:00 am Post subject: |
|
|
sorry I forgot to tell you that you should do this from the bootable gentoo cdrom. |
|
Back to top |
|
|
|
|
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
|
|