10.0 bsdlabel returns an error

Julien Cigar jcigar at ulb.ac.be
Wed Jun 25 13:05:11 UTC 2014


On Wed, Jun 25, 2014 at 02:58:30PM +0200, 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.

bsdlabel is deprecated and should not be used anymore, use gpart instead

> 
> Still, I want to know why the 10.0 "bsdlabel" doesn't work.
> 
> By the way, the problem doesn't occur on the USB drive.
> Here's the entries of both hard disks in "dmesg":
> 
>   ada0 at ahcich1 bus 0 scbus3 target 0 lun 0
>   da0 at umass-sim0 bus 0 scbus9 target 0 lun 0
> 
> How can I at least debug this problem?
> 
> Thanks in advance,
> 
> Bertram
> 
> 
> -- 
> Bertram Scharpf
> Stuttgart, Deutschland/Germany
> http://www.bertram-scharpf.de
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"

-- 
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20140625/fa5ea69a/attachment.sig>


More information about the freebsd-questions mailing list