Re: fdisk and files in /dev



On 2006-09-05, scott@xxxxxxxxxx <scott@xxxxxxxxxx> wrote:
Hi,

When I create a new partitiion in, the device file in /dev doesn't show up
until I reboot. For example, if I create a partition hda6, then /dev/hda6
isn't there until I reboot. Is there some command that's used to
automatically update the files in /dev ?

This is using the 2.6 kernel under RHEL4.

Lately, the fashionable thing to do for /dev is to use a
program to generate a fake filesystem for it to reduce the
large number of unneeded entries that the old static scheme
used to require. With Mandriva, devfs used to manage /dev,
but udev has replaced it. I suspect RHEL uses one of those
two, but I'm not certain.

If you find your system uses udev, you might try restarting
udev. However, I'm not sure that will see new partitions on
a fixed disk. Except for hotplugging, rearranging disk
partitions isn't normally an everyday occurrence, so it
might not be handled if it were an everyday thing.

On an unrelated note, I'm doing some experimental work, and I've noticed
that files that I create in /dev disappear on reboot. Is there some way to
make them stick around?

Because /dev isn't stored on real rotating magnetic media,
nothing in it persists across a reboot. In theory, most
everything you need in /dev should be created by devfs or
udev (or whatever your system uses). There are some
configuration files that can be tweaked if needed, but I
don't have direct experience doing that. Worst case, you
could put something in /etc/rc.local to adjust things in
/dev to your liking. (That's what I do to make or adjust
symlinks for /dev/cdrom, /dev/cdwriter, and /dev/modem.

--
Robert Riches
spamtrap42@xxxxxxxxxxx
(Yes, that is one of my email addresses.)
.



Relevant Pages

  • Kernel panic while boot, possibilities to get box up again
    ... sure, we will need them sooner or later, and I only want to reboot once. ... the support what's up. ... would it be possible to keep the partitions ... I'm sure you're familiar with your mount points and sizes you give your ...
    (freebsd-questions)
  • Re: Setup von CD bricht ab
    ... > Wenn ich die Diskette als Bootmöglichkeit vorsehe, ... sind alle Partitions sichtbar während Du mit boot-us die Diskette ... - Im Gerätemanager alle sichtbaren und undsichtbaren Festplatten rauslöschen ... - reboot und zwar die Cloining-Software von CD und nicht mehr das WinXP von ...
    (microsoft.public.de.german.windowsxp.hardware)
  • Re: Help Please Can I reinsall FC 2 without losing my data
    ... I got more messages but stuck at the same message. ... I reboot the computer And used FC2's First CD with Linux rescue mode I did ... when you install you format/reformat some or all partitions: all data on those are lost. ... What should work with minimum risk is upgrading FC2 to FC2 - yest, that's right, upgrade FC2 to itself. ...
    (Fedora)
  • [SLE] Problem with computer rebooting at random intervals...
    ... partitions. ... ranging from a couple hours to a week or more it will reboot. ... My messages log has these entries immediately prior to the system rebooting: ... I'm thinking maybe a hardware problem, ...
    (SuSE)
  • Re: system hosed by udev in dist-upgrade
    ... so I did an apt-get dist-upgrade. ... log in andthat it had booted fine, but that, while partitions on my ... properly -- I assume because of udev problems. ... can't run apt-get install -f, so can't install udev, so can't fix the ...
    (Debian-User)