Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Jan 2018 18:58:49 +0100
From:      Wolfram Schneider <wosch@freebsd.org>
To:        freebsd-current <freebsd-current@freebsd.org>
Subject:   partitioning schemes: GPT <-> MBR
Message-ID:  <CAMWY7CAjHyPfXEyYoQbYdAZf4bbG41MVxYgQ7ApCHcxh9QgeQg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi guys,

I have 2 small virtual machines running in data center, on similar
hardware. Both are running FreeBSD 12-current. The first one is based
on a 10.3 image, upgraded to current. The second one is based on 11.1,
upgraded to current.

I notice a difference in disk partitioning. 10.3 is using GPT, and 11.1 MBR.

[FreeBSD 10.3]
$ gpart show
=>      34  83886013  vtbd0  GPT  (40G)
       34      1024      1  freebsd-boot  (512K)
     1058   2097152      2  freebsd-swap  (1.0G)
  2098210  81787836      3  freebsd-ufs  (39G)
 83886046         1         - free -  (512B)

[FreeBSD 11.1]
$ gpart show
=>      63  83886017  vtbd0  MBR  (40G)
       63         1         - free -  (512B)
       64  79691776      1  freebsd  [active]  (38G)
 79691840   4194240         - free -  (2.0G)

I thought that MBR is outdated. But the hosting company told me that
FreeBSD 11.1 is using MBR by default. Is that correct?

My problem with the MBR machine is that I cannot add a swap device.
There are 2GB free space, and I want add a 1GB swap device:

$ gpart add -s 1G -t freebsd-swap vtbd0
gpart: Invalid argument

is this an MBR issue?

thanks, Wolfram

-- 
Wolfram Schneider <wosch@FreeBSD.org> https://wolfram.schneider.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMWY7CAjHyPfXEyYoQbYdAZf4bbG41MVxYgQ7ApCHcxh9QgeQg>