Date: Wed, 25 Jun 2014 09:58:15 -0600 (MDT) From: Warren Block <wblock@wonkity.com> To: Bertram Scharpf <lists@bertram-scharpf.de> Cc: freebsd-questions@freebsd.org Subject: Re: 10.0 bsdlabel returns an error Message-ID: <alpine.BSF.2.11.1406250955040.97677@wonkity.com> In-Reply-To: <20140625125830.GA1329@becker.bs.l> References: <20140625125830.GA1329@becker.bs.l>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 25 Jun 2014, Bertram Scharpf wrote: > Hi, > > I tried to find out how large the partitions on my main hard disk > are. But then: > > # bsdlabel ada0s2 > bsdlabel: /dev/ada0s2 read: Invalid argument > # bsdlabel ada0s3 > bsdlabel: /dev/ada0s3 read: Invalid argument > # uname -rs > FreeBSD 10.0-STABLE > # mount | grep ada0s2 | wc -l > 0 > > I remembered that I solved an earlier label issue on an other > machine by booting 9.2 from a USB stick. This helped me here, too. > > Still, I want to know why the 10.0 "bsdlabel" doesn't work. Because the default partitioning method of 10.0 and later is GPT. Wikipedia has a nice entry on it: http://en.wikipedia.org/wiki/GUID_Partition_Table FreeBSD shows the partitions on a GPT disk as p1, p2, and so on. gpart(8) can show and edit these partitions, and MBR partitions, and others. Use it in preference to the old fdisk and bsdlabel. This article shows how to use gpart to partition disks with GPT or MBR: http://www.wonkity.com/~wblock/docs/html/disksetup.html
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.11.1406250955040.97677>