booting a specific FreeBSD partition using GPT

Posted on 2012-09-05
Last Modified: 2016-02-11
I am testing FreeBSD 9.1 RC1. Here is what gpart shows me:

root@src:/root # gpart show
=>            34  104857533  da0  GPT  (50G)
                34               128    1  freebsd-boot  (64k)
              162    41943040    2  freebsd-ufs  (20G)
   41943202    20971520     3  freebsd-ufs  (10G)
   62914722    37748736     4  freebsd-ufs  (18G)
  100663458     4192256     5  freebsd-swap  (2G)
  104855714            1853       - free -  (926k)

I have installed the O/S onto /dev/da0p2 and then 'dumped' and 'restored' it to /dev/da0p3. I then edited the etc/fstab in the /dev/da0p3 partition to point to the correct partition.

When the system boots, it boots off of the /dev/da0p2 partition and things work fine. My question is, at the boot prompt, how do I specify the /dev/da0p3 partition for booting?
Question by:RandalBarnes
    1 Comment
    LVL 25

    Accepted Solution

    did you make that partition active and bootable ?
    if both partitions have the "bootme" attribute the first bootable will win
    you need to remove the bootme flag from the first partition or add the bootonce to the second if you just want to test it's bootability
    flags can be set using the gpart command

    beware : you possibly did not copy the bootcode to the partition when using dump/restore so you may have to add it or copy it from another partition.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap ( Version 1.2 2.      Jpcap( Version 0.6 Prerequisite: 1.      GCC …
    In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
    In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now