Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    PFsense 2.0.1 HyperV 2008R2 fdisk issue

    Virtualization
    1
    2
    8235
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      Clone1B last edited by

      Hello all.

      When trying to install PFsense 2.0.1 on hyper-V I'm getting an error when trying to install to the virtual harddrive.
      (The vhd is 50gb fixed size)

      Execution of the command
      /sbin/fdisk -v -f /tmp/new.fdisk ad0
      FAILED with a return code of 1.

      View Log shows:
      fdisk: WARNING line 1: number of cylinders (25700) may be out-of-range (must be within 1-1024 for normal BIOS operation, unless the entire disk is dedicated to freeBSD)
      fdisk: ERROR on lin e1: number of sectors must be within (1-63)

      Anyone have a solution to this?

      1 Reply Last reply Reply Quote 0
      • C
        Clone1B last edited by

        Found the issue and the resolution.

        With Microsoft's VHDs if you create a drive with a size over about 31gb it sets the geometry to 255 sectors per track, fdisk does not like this at all!

        Making a drive below 30gb will set the disk geometry to a happy 63 sectors per track which fdisk is fine with.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post