Re: 10.0 bsdlabel returns an error

看板FB_questions作者時間11年前 (2014/06/26 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串6/6 (看更多)
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"
文章代碼(AID): #1JgmvV75 (FB_questions)
文章代碼(AID): #1JgmvV75 (FB_questions)