filesystem disappeared following 4.2 -> 4.7 upgrade
brent at kearneys.ca
Fri Sep 24 08:53:17 PDT 2004
On Sun, Feb 02, 2003 at 01:52:30PM -0600, Mike Meyer wrote:
> In <20030202191806.GA14696 at kearneys.ca>, Brent Kearney <brent at kearneys.ca> typed:
> > No /dev/ad5s1, etc., and `mount /dev/ad5s1 /home` produces only:
> > mount: /dev/ad5s1: No such file or directory
> > Do I need to make device nodes for the ad5s1 partition? I'm not sure how,
> > if so.
> Yes, you need to make device nodes. Try:
> # cd /dev
> # ./MAKEDEV ad5s1c
> Or s1a, or whatever you were using.
`/dev/MAKEDEV ad5` made all of the nodes, and I was able to mount
/dev/ad5s1e, and relieve my panic ;).
What if this system were an all-IDE system? I was planning to update
one soon, and will no doubt run into this problem. The root
filesystem device node will change names, and according to this
even if I anticipate what the new name will be (how do I do that,
anyways?), updating /etc/fstab before rebooting with the new binaries
won't help. It doesn't look like anyone followed up on that thread,
but maybe I'm using the wrong search criteria.
The note in /usr/src/UPDATING on this new ata code is quite sparse,
given what people may unexpectedly run into when updating on IDE
systems. That should probably be fixed to include the requirement of
doing not only `MAKEDEV all`, but also `MAKEDEV <your device>` to
create partition nodes, and whatever needs to be done for booting onto
the newly named partitions, if the / is on one of them.
> The reason ad0 turned into ad5 is that ata disk devices are now
> numbered statically instead of dynamically. This is a good
> thing. While it does mean that your drives move when you upgrade the
> OS this one time, it also means that they won't move when you add a
> drive to the system.
> Mike Meyer <mwm at mired.org> http://www.mired.org/consulting.html
> Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
To Unsubscribe: send mail to majordomo at FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
More information about the freebsd-stable