Re: 10.0 bsdlabel returns an error
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
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
討論串 (同標題文章)
完整討論串 (本文為第 6 之 6 篇):