Boot fails at "Trying to mount root"

My /etc/fstab and don't know what's wrong:
Code:
# Device		Mountpoint	FStype	Options		Dump	Pass#
/dev/ad0s1b		none		swap	sw		0	0
/dev/ad0s1a		/		ufs	rw		1	1
/dev/ad0s1f		/tmp		ufs	rw		2	2
/dev/ad0s1e		/usr		ufs	rw		2	2
/dev/ad0s1d		/var		ufs	rw		2	2
/dev/acd0		/cdrom		cd9660	ro,noauto	0	0
/dev/fd0                /floppy         msdos   rw,noauto       0       0
linproc                 /compat/linux/proc/  linprocfs  rw      0       0
 
Code:
mount -va
Not clear if you are able to do that after the fsck_ffs and start your normal shell? (yet). See anything strange in
Code:
 dmesg -a | less
??
 
  • Thanks
Reactions: ccc
Looks like partitions a and f are backwards. If that's the case:
# mount /dev/ad0s1d /var
# mount /dev/ad0s1e /tmp
# mount /dev/ad0s1f /usr

Then edit /etc/fstab to make it permanent.
 
  • Thanks
Reactions: ccc
There's a typo in my post, the partitions e and f are backwards.

Here is what it most it probably was:
Code:
# Device		Mountpoint	FStype	Options		Dump	Pass#
/dev/ad0s1b		none		swap	sw		0	0
/dev/ad0s1a		/		ufs	rw		1	1
/dev/ad0s1e		/tmp		ufs	rw		2	2
/dev/ad0s1f		/usr		ufs	rw		2	2
/dev/ad0s1d		/var		ufs	rw		2	2
 
  • Thanks
Reactions: ccc
wblock@ said:
There's a typo in my post, the partitions e and f are backwards.

Here is what it most it probably was:
Code:
# Device		Mountpoint	FStype	Options		Dump	Pass#
/dev/ad0s1b		none		swap	sw		0	0
/dev/ad0s1a		/		ufs	rw		1	1
/dev/ad0s1e		/tmp		ufs	rw		2	2
/dev/ad0s1f		/usr		ufs	rw		2	2
/dev/ad0s1d		/var		ufs	rw		2	2

I've changed in /etc/fstab, but still get the same error:
Code:
swapon: not found.
 
Greetings,

This might prove to be a nice temporary solution. It will at least provide a system stable enough to mount, and thereby permit using the installed system to rediscover/fix the original swap slice: www.freebsd.org/doc/handbook/adding-swap-space.html. See section 12.14.3 Swapfiles. This should prove to be your safest/least intrusive option to create an interim swapfile.

Best wishes. :)
 
It's not the lack of a swap partition, it's the actual swapon(8) binary that's not being found. And that should be in /sbin. Something is very wrong, but I've never used binary upgrades and don't know what could go wrong.
 
Ahh, I didn't get that from the thread. I guess he might be able to hijack a copy from the install/live DVD/CD, and simply rename the copy in his /sbin (assuming it's there), then copy the DVD version to /sbin: [cmd=""]reboot -s && fsck -f; reboot && cross fingers[/cmd]
:)
 
Using FreeSBIE, I've copied the whole /sbin and /usr/bin directory from other FreeBSD 8.2 machine, without overwriting the existing files and now it seems to start/work well.
Time for a cold beer...
 
Back
Top