Hi all,
One of my servers was shut down improperly because of an unexpected power cut.
Now everytime I try to restart it, the system greets me with a mountroot prompt:
I perfectly remember that the root slice was /dev/da0s1a when I installed the system a few month ago, so it didn't move.
Booting from a FreeBSD Live CD (frenzie), the disk is visible, can be inspected and mounted.
I tried disabling or enabling AHCI by adding ahci_load="YES/NO" to /boot/loader.conf, and it didn't change anything (I don't think this server (a sunfire v20z) does actually have ahci at all).
What can I do?
Thanks for any help.
One of my servers was shut down improperly because of an unexpected power cut.
Now everytime I try to restart it, the system greets me with a mountroot prompt:
Code:
Trying to mount root from ufs:/dev/da0s1a
ROOT MOUNT ERROR:
If you have invalid mount options, reboot and first try the following from the loader prompt:
set vfs.root.mountfrom.options=rw
and then remove invalid mount options from fstab.
Loader variables:
vfs.root.mountfrom=ufs:/dev/da0s1a
vfs.root.mountfrom.options=rw
Manual root filesystem specification:
<fstype>:<device> Mount <device> using filesystem <fstype>
eg. ufs:/dev/da0S1a
eg. cd9660:/dev/acd0
This is equivalent to: mount -t cd9660 /dev/acd0 /
? List valid disk boot devices
<empty line> Abort manual input
mountroot> ?
List of GEOM managed disk devices:
da0a da0 acd0 fd0
mountroot> ufs:/dev/da0s1a
Trying to mount root from ufs:/dev/da0s1a
ROOT MOUNT ERROR
[...]
mountroot>
I perfectly remember that the root slice was /dev/da0s1a when I installed the system a few month ago, so it didn't move.
Booting from a FreeBSD Live CD (frenzie), the disk is visible, can be inspected and mounted.
Code:
ls /dev/da0*
/dev/da0 /dev/da0s1a /dev/da0s1c /dev/da0s2c
/dev/da0s1 /dev/da0s1b /dev/da0s2
disklabel /dev/da0s1
#/dev/da0s1:
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 23066599 8388608 4.2BSD 0 0 0
b: 8388608 0 swap
c: 31455207 0 unused 0 0
mount /dev/da0s1a /mnt/da0s1a.ufs
ls /mnt/da0s1a.ufs
.cshrc boot etc mnt sys
.profile cdrom home proc tmp
.snap compat lib rescue usr
COPYRIGHT dev libexec root var
bin dist media sbin
cat /mnt/da0s1a.ufs/etc/fstab
/dev/da0s1b none swap sw 0 0
/dev/da0s1a / ufs rw 1 1
/dev/acd0 /cdrom cd9660 ro,auto 0 0
linproc /compat/linux/proc linprocfs rw 0 0
fsck -y /dev/da0S1a
** /dev/da0S1a
** Las Mounted on /
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check References Counts
** Phase 5 - Check Cyl groups
296958 files, 2008628 used, 3574460 free (71628 frags, 437854 blocks, 1.2% fragmentation)
I tried disabling or enabling AHCI by adding ahci_load="YES/NO" to /boot/loader.conf, and it didn't change anything (I don't think this server (a sunfire v20z) does actually have ahci at all).
What can I do?
Thanks for any help.