> The computer that I was running my FreeBSD went belly up so I took its IDE
> harddisk(the only disk) and put it in a differnt computer.
> Now when I start this computer, I get a prompt:
> mountroot>
> I typed ufs:/dev/ad0s1a
> and then I get a bunch of error messages as follow:
> Warning: / was not properly dismounted
> swapon: /dev/ad4s1b: Device not configured
ad0s1a vs ad4s1b ? I think you have an inconsistency between how devices
got numbered on the old machine and on the new machine. However it
seems strange that if your drive was the only drive on the old
machine, that it was named ad4. Maybe it was the 5th ide device
somehow?
If you have a bootable live filesystem cd, I suggest you boot the cd,
mount the disk's various file systems, and look about. If you've
other space somewhere (another hard drive, for example) back up
any essential data from the old drive, before trying to fix it.
Possibly there is nothing wrong with the fs itself, and possibly when
your old machine went belly up it crashed with some pending soft
updates. You should fsck each file system before trying to fix the
references to /dev/ad4s1b and such, just in case.
Back to the device naming inconsistency. Everything on your drive that
uses device names will be using the old names, and need to be
changed. I think this is only a few things:
(a) /etc/fstab
Read 'man fstab' before starting.
Probably you can fix /etc/fstab in a text editor, by changing
every occurance of 'ad4' to 'ad0'. You should see something
like this:
# Device Mountpoint FStype Options Dump Pass#
/dev/ad4s1b none swap sw 0 0
/dev/ad4s1a / ufs rw 1 1
/dev/ad4s1g /home ufs rw 2 2
/dev/ad4s1d /tmp ufs rw 2 2
/dev/ad4s1e /usr ufs rw 2 2
/dev/acd0 /cdrom cd9660 ro,noauto 0 0
and you want it to end up something like this:
# Device Mountpoint FStype Options Dump Pass#
/dev/ad0s1b none swap sw 0 0
/dev/ad0s1a / ufs rw 1 1
/dev/ad0s1g /home ufs rw 2 2
/dev/ad0s1d /tmp ufs rw 2 2
/dev/ad0s1e /usr ufs rw 2 2
/dev/acd0 /cdrom cd9660 ro,noauto 0 0
(b) Others? I think you can specify the root fs in boot.config or
loader.conf, but I don't have such lines in mine.
Quote:> ...
> Can't opeen /dev/ad4s1a: Device not configured
> /dev/ad4s1a: Can't check file system
> /dev/ad4s1a: UNEXPETED INCONSISTENCY: RUN fsck Manually
> Automatic file system check failed .. help!
> Enter full path name of shell or return for /bin/sh
> As you can see unlike the past I've not been given the username and
> password.
[snip]
no, but you probably got a shell prompt after pressing enter. However
if you have a live filesystem fixit cd you should probably just
reboot and use the cd for fixing.