public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Howto recreate files in /dev?
@ 2006-07-21  5:47 Alexander Skwar
  2006-07-21  6:01 ` Ow Mun Heng
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Alexander Skwar @ 2006-07-21  5:47 UTC (permalink / raw
  To: gentoo-user

Hello!

Yesterday, I managed to unmount /dev of a running system (which is
an astonishingly stupid idea... :]). As I didn't know how to recreate
the files in /dev (I'm using udev), I rebooted the system.

But rebooting can't be the answer ;)

How do I recreate all the dev files?

Thanks,

Alexander Skwar
-- 
You can never tell which way the train went by looking at the tracks.
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] Howto recreate files in /dev?
  2006-07-21  5:47 [gentoo-user] Howto recreate files in /dev? Alexander Skwar
@ 2006-07-21  6:01 ` Ow Mun Heng
  2006-07-21  6:09 ` Dirk Heinrichs
  2006-07-21  6:09 ` Richard Fish
  2 siblings, 0 replies; 6+ messages in thread
From: Ow Mun Heng @ 2006-07-21  6:01 UTC (permalink / raw
  To: gentoo-user



On Fri, 2006-07-21 at 07:47 +0200, Alexander Skwar wrote:
> Hello!
> 
> Yesterday, I managed to unmount /dev of a running system (which is
> an astonishingly stupid idea... :]). As I didn't know how to recreate
> the files in /dev (I'm using udev), I rebooted the system.

The reboot should have settled your problem.
> 
> But rebooting can't be the answer ;)
> 
> How do I recreate all the dev files?

mknod is the only way I know and/but you need to know the major and
minor numbers for all the devices you want to create. 
> 
> Thanks,
> 
> Alexander Skwar
> -- 
> You can never tell which way the train went by looking at the tracks.
-- 
Ow Mun Heng <Ow.Mun.Heng@wdc.com>

-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] Howto recreate files in /dev?
  2006-07-21  5:47 [gentoo-user] Howto recreate files in /dev? Alexander Skwar
  2006-07-21  6:01 ` Ow Mun Heng
@ 2006-07-21  6:09 ` Dirk Heinrichs
  2006-07-21  6:09 ` Richard Fish
  2 siblings, 0 replies; 6+ messages in thread
From: Dirk Heinrichs @ 2006-07-21  6:09 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 657 bytes --]

Am Freitag, 21. Juli 2006 07:47 schrieb ext Alexander Skwar:

> Yesterday, I managed to unmount /dev of a running system (which is
> an astonishingly stupid idea... :]). As I didn't know how to recreate
> the files in /dev (I'm using udev), I rebooted the system.

/sbin/udevstart could have helped.

Bye...

	Dirk
-- 
Dirk Heinrichs          | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: dirk.heinrichs@capgemini.com
Hambornerstraße 55      | Web:  http://www.capgemini.com
D-40472 Düsseldorf      | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [gentoo-user] Howto recreate files in /dev?
  2006-07-21  5:47 [gentoo-user] Howto recreate files in /dev? Alexander Skwar
  2006-07-21  6:01 ` Ow Mun Heng
  2006-07-21  6:09 ` Dirk Heinrichs
@ 2006-07-21  6:09 ` Richard Fish
  2006-07-21  7:39   ` Alexander Skwar
  2 siblings, 1 reply; 6+ messages in thread
From: Richard Fish @ 2006-07-21  6:09 UTC (permalink / raw
  To: gentoo-user

On 7/20/06, Alexander Skwar <listen@alexander.skwar.name> wrote:
> Hello!
>
> Yesterday, I managed to unmount /dev of a running system (which is
> an astonishingly stupid idea... :]). As I didn't know how to recreate
> the files in /dev (I'm using udev), I rebooted the system.
>
> But rebooting can't be the answer ;)
>
> How do I recreate all the dev files?

This should work.  It uses the same mechanism that Gentoo (/sbin/rc)
uses at system boot time.  /dev should *not* be mounted when this is
run:

# (source /sbin/functions.sh ; start_addon udev)

HTH,
-Richard
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] Howto recreate files in /dev?
  2006-07-21  6:09 ` Richard Fish
@ 2006-07-21  7:39   ` Alexander Skwar
  2006-07-21 16:37     ` Richard Fish
  0 siblings, 1 reply; 6+ messages in thread
From: Alexander Skwar @ 2006-07-21  7:39 UTC (permalink / raw
  To: gentoo-user

Richard Fish wrote:
> On 7/20/06, Alexander Skwar <listen@alexander.skwar.name> wrote:


>> How do I recreate all the dev files?
> 
> This should work.  It uses the same mechanism that Gentoo (/sbin/rc)
> uses at system boot time.  /dev should *not* be mounted when this is
> run:

/dev should *NOT* be mounted?

What do you mean? Normally, /dev is a tmpfs and needs to be populated. If
/dev wouldn't be tmpfs, your snippet would overwrite everything in
/dev, no? Or would start_addon udev automatically mount a tmpfs in /dev?

> # (source /sbin/functions.sh ; start_addon udev)

Thanks.

Alexander Skwar
-- 
Injustice anywhere is a threat to justice everywhere.
		-- Martin Luther King, Jr.
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] Howto recreate files in /dev?
  2006-07-21  7:39   ` Alexander Skwar
@ 2006-07-21 16:37     ` Richard Fish
  0 siblings, 0 replies; 6+ messages in thread
From: Richard Fish @ 2006-07-21 16:37 UTC (permalink / raw
  To: gentoo-user

On 7/21/06, Alexander Skwar <listen@alexander.skwar.name> wrote:
> /dev should *NOT* be mounted?

What I mean is the command I gave you will attempt to mount /dev.  So
if you are in that situation again, don't try to mount /dev yourself,
just run the command.

You can take a look at /lib/rcscripts/addons/udev-start.sh for more details.

-Richard
-- 
gentoo-user@gentoo.org mailing list



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

end of thread, other threads:[~2006-07-21 16:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-21  5:47 [gentoo-user] Howto recreate files in /dev? Alexander Skwar
2006-07-21  6:01 ` Ow Mun Heng
2006-07-21  6:09 ` Dirk Heinrichs
2006-07-21  6:09 ` Richard Fish
2006-07-21  7:39   ` Alexander Skwar
2006-07-21 16:37     ` Richard Fish

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