Showing posts with label mountroot. Show all posts
Showing posts with label mountroot. Show all posts

Friday, October 28, 2016

FreeBSD MountRoot Prompt

FreeBSD MountRoot Prompt


This is original from Beyond Revolution (http://mustaxe.blogspot.com/2007/12/dealing-with-freebsd-mountroot-prompt.html)


At the <mountroot> prompt you can type ? to get a list of devices which should also display ad0s1a. And thats what we are looking for. Then type (youll be taken to single-user mode so that you can fix the rest)
ufs:/dev/ad0s1a

In single-user mode, you can look at your current fstab file where the mount devices are specified.
cat /etc/fstab

Then mount your /var, /tmp, /usr just like in your fstab but changing the disk number
mount -t ufs /dev/ad0s1d /var
mount -t ufs /dev/ad0s1e /tmp
mount -t ufs /dev/ad0s1f /usr

You can confirm your mounts by typing either of these two commands:
df
mount -p

Make root writable so that you can update fstab
mount -uw /

Update fstab with the correct disk IDs.
vi /etc/fstab
Save it and reboot

Welcome back to your system! :)


Available link for download

Read more »