Util-Linux package development
 help / color / mirror / Atom feed
From: Karel Zak <kzak@redhat.com>
To: Matt Turner <mattst88@gmail.com>
Cc: util-linux@vger.kernel.org, alpha@gentoo.org
Subject: Re: fdisk BSD disklabel support?
Date: Fri, 7 Aug 2015 21:54:08 +0200	[thread overview]
Message-ID: <20150807195408.GA18302@ws.net.home> (raw)
In-Reply-To: <CAEdQ38F9RxBHgA+zKdwLKxdQncMUyqzowGcGidf-Vc1xbsXQOg@mail.gmail.com>

On Thu, Aug 06, 2015 at 07:34:40PM -0700, Matt Turner wrote:
> I'm not able to figure out how to make a BSD disklabel in fdisk since v2.23.
> 
> Gentoo's installation guide describes the process of partitioning a
> disk for SRM/Alpha [1]. How should one do this now?
> 
> With my distro's util-linux-2.25 I don't see any option that resembles
> BSD disklabels -- I see only
> 
>   Create a new label
>    g   create a new empty GPT partition table
>    G   create a new empty SGI (IRIX) partition table
>    o   create a new empty DOS partition table
>    s   create a new empty Sun partition table
> 
> What am I missing?

 You have to create a DOS (MBR) label first, and then there is 

   DOS (MBR)
      a   toggle a bootable flag
      b   edit nested BSD disklabel
      c   toggle the dos compatibility flag


 For example:

 # fdisk /dev/sdc
 ...
 Command (m for help): n
 Partition type
    p   primary (0 primary, 0 extended, 4 free)
    e   extended (container for logical partitions)
 Select (default p): p
 Partition number (1-4, default 1): 
 First sector (2048-1023999, default 2048): 
 Last sector, +sectors or +size{K,M,G,T,P} (2048-1023999, default 1023999): 

 Created a new partition 1 of type 'Linux' and of size 499 MiB.
 ...
 Command (m for help): t                           <----!!!
 Partition type (type L to list all types): a5
 Changed type of partition 'Linux' to 'FreeBSD'.
 ...
 Command (m for help): b                           <----!!!
 The device /dev/sdc1 does not contain BSD disklabel.

 Do you want to create a BSD disklabel? [Y]es/[N]o: y
 ...
 Command (m for help): p
 ...
 Slice Start     End Sectors   Size Type     Fsize Bsize Cpg
 c      2048 1023999 1021952   499M unused       0     0   0
 d         0 1023059 1023060 499.6M unused       0     0   0


  Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

  parent reply	other threads:[~2015-08-07 19:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-07  2:34 fdisk BSD disklabel support? Matt Turner
2015-08-07  8:18 ` Tobias Klausmann
2015-08-07 19:54 ` Karel Zak [this message]
2015-08-29  5:14   ` Matt Turner
2015-08-31 11:21     ` Karel Zak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150807195408.GA18302@ws.net.home \
    --to=kzak@redhat.com \
    --cc=alpha@gentoo.org \
    --cc=mattst88@gmail.com \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox