/boot deleted, must I réinstalled ?

/boot deleted, must I réinstalled ?

Hi,

I deleted all the content of /boot directory excepted kernel/ .
Is there a way to fix this ?

Thank you.
 
thegolum35 said:
Hi,

I deleted all the content of /boot directory excepted kernel/ .
Is there a way to fix this ?
Thank you.

You can try to download an ISO image and extract (with tar) the /boot part, something like:
Code:
tar xpf FreeBSD-9.1-RC1-i386-bootonly.iso 'boot/'

(and make backups)
Regards.
 
Reinstalling the entire system because of a loss of <30 files / <1MB seems extreme.

Assuming you're using 9.0 i386, download base.txz from here and extract it somewhere, boot from a live system, mount the FreeBSD boot/system partition and copy what you need making sure all ownership and permission properties are correct.
 
Thank both of you for your help. I booted on FreeBSD AMD64 CD and copied it /boot/ directory into mine. However, I am unable to get my ZFS pool back since zfs files in /boot were deleted too.. Any ideas ?

Gollum
 
If you used whole disks:
# zpool import -d /dev <poolname>

If you used glabel(8) for the disks:
# zpool import -d /dev/label <poolname>

If you used gpart(8) labels for the disks:
# zpool import -d /dev/gpt <poolname>
 
Back
Top