public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] missing critical device files in /dev
@ 2007-10-22 22:08 Arnau Bria
  2007-10-22 22:18 ` Volker Armin Hemmann
  2007-10-22 22:23 ` Arnau Bria
  0 siblings, 2 replies; 7+ messages in thread
From: Arnau Bria @ 2007-10-22 22:08 UTC (permalink / raw
  To: gentoo-user

Hi!

I've copied my backup to my new / in a raid device, and when I boot I
get this error:
Your system seems to be missing critical device files
in /dev ! Although you may be running udev or devfs,
the root partition is missing these required files !

To rectify this situation, please do the following:
mkdir /mnt/fixit
mount --bind / /mnt/fixit
cp -a /dev/* /mnt/fixit/dev/
umount /mnt/fixit
rmdir /mnt/fixit

You may refer to these instructions at /etc/issue.
If you previously had an issue file, it has been
backed up at /etc/issue.devfix. Once you've fixed
your system, you will have to restore your old issue
file in order to get rid of this warning.

Thanks for using Gentoo ! :)
http://bugs.gentoo.org/show_bug.cgi?id=40987

Obviously, I've followed all steps, rebooted and my system stops
loading services after "setting hostname".
After that, I booted a livecd, copied its /dev files and the system
hangs there...

As I have moved the issue file, I don't see the message, but I'm not
sure if I've really solved my problem or not. (probably not)

I'm using udev, and created special devices null, console and initctl:
afrodita ~ # ls -lsa /dev/console
0 crw------- 1 root tty 5, 1 oct 23 01:59 /dev/console
afrodita ~ # ls -lsa /dev/null
0 crw-rw-rw- 1 root root 1, 3 oct 23 01:59 /dev/null
afrodita ~ # ls -lsa /dev/initctl
0 prw------- 1 root root 0 oct 23 01:59 /dev/initctl
and udev did the rest:
# ls -lsa /dev/
Display all 184 possibilities? (y or n)  

What other devidces do I need?

Meanwhile, Iable to  start services...

# rc-update show
            bootmisc | boot
             checkfs | boot
           checkroot | boot
               clock | boot
          localmount | boot
             modules | boot

afrodita ~ # /etc/init.d/postfix start
 * Starting saslauthd ...                                                                                        [ ok ]
 * Starting postfix ...                                                                                          [ !! ]
afrodita ~ # /etc/init.d/cyrus start
 * Starting cyrus imapd ...                                                                                      [ ok ]
afrodita ~ # /etc/init.d/postgrey start
 * Starting Postgrey ...                    

TIA,
Arnau
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] missing critical device files in /dev
  2007-10-22 22:08 [gentoo-user] missing critical device files in /dev Arnau Bria
@ 2007-10-22 22:18 ` Volker Armin Hemmann
  2007-10-22 22:43   ` Arnau Bria
  2007-10-22 22:23 ` Arnau Bria
  1 sibling, 1 reply; 7+ messages in thread
From: Volker Armin Hemmann @ 2007-10-22 22:18 UTC (permalink / raw
  To: gentoo-user

On Dienstag, 23. Oktober 2007, Arnau Bria wrote:

when you create null and console, /dev must not be mounted. It has to happen 
in a 'virgin' /dev without udev&co running.

Maybe it helps when you boot with init=/bin/bash and create the files from 
there.

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] missing critical device files in /dev
  2007-10-22 22:08 [gentoo-user] missing critical device files in /dev Arnau Bria
  2007-10-22 22:18 ` Volker Armin Hemmann
@ 2007-10-22 22:23 ` Arnau Bria
  1 sibling, 0 replies; 7+ messages in thread
From: Arnau Bria @ 2007-10-22 22:23 UTC (permalink / raw
  To: gentoo-user

Sorry,

maybe a mount is useful:
# mount
/dev/md/1 on / type ext3 (rw,noatime)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
udev on /dev type tmpfs (rw,nosuid)
devpts on /dev/pts type devpts (rw,nosuid,noexec)
shm on /dev/shm type tmpfs (rw,noexec,nosuid,nodev)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)


Cheers,
Arnau
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] missing critical device files in /dev
  2007-10-22 22:18 ` Volker Armin Hemmann
@ 2007-10-22 22:43   ` Arnau Bria
  2007-10-22 22:56     ` Arnau Bria
  0 siblings, 1 reply; 7+ messages in thread
From: Arnau Bria @ 2007-10-22 22:43 UTC (permalink / raw
  To: gentoo-user

On Tue, 23 Oct 2007 00:18:33 +0200
Volker Armin Hemmann wrote:

> On Dienstag, 23. Oktober 2007, Arnau Bria wrote:
> 
> when you create null and console, /dev must not be mounted. It has to
> happen in a 'virgin' /dev without udev&co running.
Yep, I did it using my livecd...
 
> Maybe it helps when you boot with init=/bin/bash and create the files
> from there.
Well, if I did it correctly, do I need to re-do it again?

I have no link files in my restored backup... and permit of many files
have been lost... I know this is a problem but could this part of the
big problem?

my backup is fine, i.e:
$ ls -lsa|grep profile
  0 lrwxrwxrwx  1 root  root     56 2007-09-26 11:35 make.profile -> ../usr/portage/profiles/default-linux/x86/2007.0/server/

$ ls -lsa ../var/spool/postfix/
total 68
4 drwxr-xr-x 17 root    root     4096 2006-11-21 17:35 .
4 drwxr-xr-x  6 root    root     4096 2007-06-13 17:15 ..
4 drwx------  2 postfix root     4096 2007-09-26 11:31 active
4 drwx------  2 postfix root     4096 2007-09-25 21:48 bounce

cheers,
Arnau
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] missing critical device files in /dev
  2007-10-22 22:43   ` Arnau Bria
@ 2007-10-22 22:56     ` Arnau Bria
  2007-10-23 11:32       ` Arnau Bria
  0 siblings, 1 reply; 7+ messages in thread
From: Arnau Bria @ 2007-10-22 22:56 UTC (permalink / raw
  To: gentoo-user

On Tue, 23 Oct 2007 00:43:58 +0200
Arnau Bria wrote:

> I have no link files in my restored backup... and permit of many files
> have been lost... I know this is a problem but could this part of the
> big problem?
I'll redo my backup fine and come back!

Cheers,
Arnau
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] missing critical device files in /dev
  2007-10-22 22:56     ` Arnau Bria
@ 2007-10-23 11:32       ` Arnau Bria
  2007-10-23 16:31         ` Arnau Bria
  0 siblings, 1 reply; 7+ messages in thread
From: Arnau Bria @ 2007-10-23 11:32 UTC (permalink / raw
  To: gentoo-user

On Tue, 23 Oct 2007 00:56:49 +0200
Arnau Bria wrote:

> I'll redo my backup fine and come back!

Well, I've redone my backup and now my permits and links are fine.
I boot with livecd and I'm able to mount /dev/md1 and see data. I do a
fsck.ext3 on /dev/md1 and it says fs is clean.

So, I reboot to normal system and seems to go fine until it looks for
root filesystem, then it stopts and fsck.ext3 complains about /dev/md1,
it says (aprox, cause it's in spanish) that no file existes when trying
to open /dev/md1. then 
/dev/md1:
Superblock could not be read o does not describe a valid ext2 fs
correctly. If the device is valid and it contains a ext2 fs (and not a
swap, ufs o else), then superblock is corruupted and you could run
e2fsck with an alternative superblock:
e2fsck -b 8193 device

What's happening now?
boot message says:
md: created md1
md: bind <hdf3>
md: bind <hdh3>
md: running: <hdh3><hdf3>
raid1: raid set md1 active with 2 outo of 2 mirrors

so, seems it's fine, isn't it?

I'm quite lost now... more than yesterday!

Cheers,
Arnau
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] missing critical device files in /dev
  2007-10-23 11:32       ` Arnau Bria
@ 2007-10-23 16:31         ` Arnau Bria
  0 siblings, 0 replies; 7+ messages in thread
From: Arnau Bria @ 2007-10-23 16:31 UTC (permalink / raw
  To: gentoo-user

On Tue, 23 Oct 2007 13:32:32 +0200
Arnau Bria wrote:

Bootlog was telling me what to do!

/sys did not exists!!!!

Now all work fine!

Many thanks to all who helped me!

Cheers,
Arnau
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-10-23 16:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-22 22:08 [gentoo-user] missing critical device files in /dev Arnau Bria
2007-10-22 22:18 ` Volker Armin Hemmann
2007-10-22 22:43   ` Arnau Bria
2007-10-22 22:56     ` Arnau Bria
2007-10-23 11:32       ` Arnau Bria
2007-10-23 16:31         ` Arnau Bria
2007-10-22 22:23 ` Arnau Bria

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox