Hi everyone,
I rent a dedicated server with one HDD. Unfortunately, during the installation (thanks to their administration tool), it's not possible to change the partition scheme. Moreover, the only "rescue mode" they provide is an Ubuntu which means that if there is a mistake in the firewall config file (for example) and I can't reach the server through ssh, it's over, I have to re-install...
So, there is a solution : in VirtualBox, I create a virtual HDD and cut it in 2 slices (MBR partition table). The first one (ad4s1) will be my own rescue FreeBSD and the second (ad4s2) will be the production one. I send the image on the server, and do the proper business to make it run.
That way, if problems, I should be able to switch my server on "Ubuntu rescue mode" and use fdisk to set active ad4s1. I reboot the server in "normal mode", it boots on ad4s1 and I can fix the issue on the production FreeBSD (ad4s2)then set active ad4s2 and reboot again.
But it doesn't work : when there are multiple OSes, boot0 ask to hit F1, F2... and the default is the last one used which is not very cool for a server that is 1000 km away
To sump up I'd like to switch between the rescue and the production FreeBSDs just setting active ad4s1 or ad4s2 thanks to fdisk (or a tool available in Ubuntu). Is there a way to do that?
Thank you very much
I rent a dedicated server with one HDD. Unfortunately, during the installation (thanks to their administration tool), it's not possible to change the partition scheme. Moreover, the only "rescue mode" they provide is an Ubuntu which means that if there is a mistake in the firewall config file (for example) and I can't reach the server through ssh, it's over, I have to re-install...
So, there is a solution : in VirtualBox, I create a virtual HDD and cut it in 2 slices (MBR partition table). The first one (ad4s1) will be my own rescue FreeBSD and the second (ad4s2) will be the production one. I send the image on the server, and do the proper business to make it run.
That way, if problems, I should be able to switch my server on "Ubuntu rescue mode" and use fdisk to set active ad4s1. I reboot the server in "normal mode", it boots on ad4s1 and I can fix the issue on the production FreeBSD (ad4s2)then set active ad4s2 and reboot again.
But it doesn't work : when there are multiple OSes, boot0 ask to hit F1, F2... and the default is the last one used which is not very cool for a server that is 1000 km away
To sump up I'd like to switch between the rescue and the production FreeBSDs just setting active ad4s1 or ad4s2 thanks to fdisk (or a tool available in Ubuntu). Is there a way to do that?
Thank you very much