{"id":393,"date":"2010-07-12T18:34:39","date_gmt":"2010-07-12T15:34:39","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=393"},"modified":"2011-09-08T06:46:13","modified_gmt":"2011-09-08T03:46:13","slug":"fdisk-fails-to-recognize-openbsd-partition-type-a6","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2010\/07\/12\/fdisk-fails-to-recognize-openbsd-partition-type-a6\/","title":{"rendered":"fdisk fails to recognize OpenBSD partition (type A6)"},"content":{"rendered":"<p>Binary  package hint: util-linux<\/p>\n<p>fdisk claims to support editing *BSD disklabels, yet fails to  recognize an OpenBSD partition created by fdisk itself:<\/p>\n<p>&lt;code&gt;<br \/>\njani@saegusa:~$ LC_ALL=C sudo fdisk \/dev\/sdc<\/p>\n<p>WARNING: DOS-compatible mode is deprecated. It&#8217;s strongly recommended  to<br \/>\nswitch off the mode (command &#8217;c&#8217;) and change display units to<br \/>\nsectors (command &#8217;u&#8217;).<\/p>\n<p>Command (m for help): p<\/p>\n<p>Disk \/dev\/sdc: 1053 MB, 1053032448 bytes<br \/>\n1 heads, 6 sectors\/track, 342784 cylinders<br \/>\nUnits = cylinders of 6 * 512 = 3072 bytes<br \/>\nSector size (logical\/physical): 512 bytes \/ 512 bytes<br \/>\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes<br \/>\nDisk identifier: 0x001411b2<\/p>\n<p>Device Boot      Start         End      Blocks   Id  System<br \/>\n\/dev\/sdc1             342      342784     1027328   a6  OpenBSD<\/p>\n<p>Command (m for help): b<br \/>\nThere is no *BSD partition on \/dev\/sdc.<br \/>\n&lt;\/code&gt;<\/p>\n<p>&#8221;*BSD&#8221; implies OpenBSD, yet apparently it is unsupported.<\/p>\n<p>If I change the partition type to A5 (FreeBSD), fdisk does allow me  to create a disklabel:<\/p>\n<p>&lt;code&gt;<br \/>\nCommand (m for help): t<br \/>\nSelected partition 1<br \/>\nHex code (type L to list codes): a5<br \/>\nChanged system type of partition 1 to a5 (FreeBSD)<\/p>\n<p>Command (m for help): p<\/p>\n<p>Disk \/dev\/sdc: 1053 MB, 1053032448 bytes<br \/>\n1 heads, 6 sectors\/track, 342784 cylinders<br \/>\nUnits = cylinders of 6 * 512 = 3072 bytes<br \/>\nSector size (logical\/physical): 512 bytes \/ 512 bytes<br \/>\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes<br \/>\nDisk identifier: 0x001411b2<\/p>\n<p>Device Boot      Start         End      Blocks   Id  System<br \/>\n\/dev\/sdc1             342      342784     1027328   a5  FreeBSD<\/p>\n<p>Command (m for help): b<br \/>\nReading disklabel of \/dev\/sdc1  at sector 2049.<br \/>\n\/dev\/sdc1  contains no disklabel.<br \/>\nDo you want to create a disklabel? (y\/n)<br \/>\n&lt;\/code&gt;<\/p>\n<p>At the very least, &#8221;*BSD&#8221; should be changed to indicate which types  of BSD partitions are actually supported (FreeBSD, maybe others?).<\/p>\n<p>Better yet, have fdisk actually support editing OpenBSD disklabels as  well.<\/p>\n<p>ProblemType: Bug<br \/>\nDistroRelease: Ubuntu 10.04<br \/>\nPackage: util-linux 2.17.2-0ubuntu1<br \/>\nProcVersionSignature: Ubuntu 2.6.32-24.38-generic  2.6.32.15+drm33.5<br \/>\nUname: Linux 2.6.32-24-generic x86_64<br \/>\nArchitecture: amd64<br \/>\nCheckboxSubmission: 09ae689090491ca53449589269e4bfd8<br \/>\nCheckboxSystem: edda5d4f616ca792bf437989cb597002<br \/>\nDate: Mon Jul 12 18:10:07 2010<br \/>\nEcryptfsInUse: Yes<br \/>\nInstallationMedia: Ubuntu 9.10 &#8221;Karmic Koala&#8221; &#8211; Release amd64 (20091027)<br \/>\nProcEnviron:<br \/>\nPATH=(custom, user)<br \/>\nLANG=fi_FI.utf8<br \/>\nSHELL=\/bin\/bash<br \/>\nSourcePackage: util-linux<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Binary package hint: util-linux fdisk claims to support editing *BSD disklabels, yet fails to recognize an OpenBSD partition created by fdisk itself: &lt;code&gt; jani@saegusa:~$ LC_ALL=C sudo fdisk \/dev\/sdc WARNING: DOS-compatible mode is deprecated. It&#8217;s strongly recommended to switch off the mode (command &#8217;c&#8217;) and change display units to sectors (command &#8217;u&#8217;). Command (m for help): [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[1751],"class_list":["post-393","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","tag-openbsd","sijainti-launchpad"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=393"}],"version-history":[{"count":3,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/393\/revisions"}],"predecessor-version":[{"id":1935,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/393\/revisions\/1935"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}