Hal segfaults when USB drive is connected

Joe Marcus Clarke marcus at marcuscom.com
Sat Jan 17 23:18:10 PST 2009


On Sat, 2009-01-17 at 10:11 -0600, Mike Dobbs wrote:
>  BINGO!
> 
> I was actually just about to email back my problem and solution.  It
> appears that for whatever reason /dev/da0 had a fat volume name?
> Maybe it was formated fat once?  I could change the label with
> newfs_msdos /dev/da0, but couldn't figure out how to remove it.  After
> clearing the mbr it still didn't work.  Finally I just zeroed out the
> disk with dd of=/dev/da0 if=/dev/zero bs=1024 count=1024.  WARNING
> this will damage data on your drive and you will have to reformat!
> After that, dmesg reported no labels.  I resetup the partition and
> reformated it, and violla no problems!
> 
> I think the mtools is probably the better way to go if you don't want
> to definatly have to recover your data.
> 
> Thanks for your help guys.
> 
> By the way, what's the deal with no spaces in the label anyway.  Linux
> had no problem with this?  Is there a bug filed or fix?  I couldn't
> find any report of the bug myself.  I did see a reference somewhere
> that it was actually a GEOM problem, but I couldn't find anything.  I
> only had a problem with HAL on Freebsd so far.

This is due to the way hal uses GEOM to get disk information.  It was
easy to code, but suboptimal.  Fixing it is on my todo list.

Joe

> 
> On Sat, Jan 17, 2009 at 9:56 AM, Jeremy Messenger <mezz7 at cox.net>
> wrote:
>         On Fri, 16 Jan 2009 23:37:30 -0600, Kevin Oberman
>         <oberman at es.net> wrote:
>         
>                          From: Joe Marcus Clarke
>                         <marcus at marcuscom.com>
>                         Date: Fri, 16 Jan 2009 23:36:04 -0500
>                         Sender: owner-freebsd-gnome at freebsd.org
>                         
>                         On Fri, 2009-01-16 at 20:52 -0600, Mike Dobbs
>                         wrote:
>                         >  I'm starting to think that I didn't have
>                         any glabel.  That just added
>                         > another label.  I tried glabel clear, but
>                         msdosfs/ . just keeps coming
>                         > back?
>                         
>                         You might try:
>                         
>                         tunefs -L dos /dev/da0
>                         
>                         I'm not sure if there's a better way to rename
>                         a DOS volume from
>                         FreeBSD.  Of course, if you have a Windows
>                         machine, you can just change
>                         the name there.
>                  
>                 I'm afraid that tunefs does not work on non-ufs file
>                 systems. You need
>                 to plug it into a Windows box and rename it there. I
>                 had the same
>                 problem with a disk that came named "WD PASSPORT".
>          
>         
>          The mtools might be what you are looking for. If you have big
>         FAT32, see here:
>         
>         http://lists.freebsd.org/pipermail/freebsd-gnome/2008-August/020818.html
>         
>         Make sure to back up your data before you try it. ;-)
>         
>         Cheers,
>         Mezz
>         
>         
>         -- 
>         mezz7 at cox.net  -  mezz at FreeBSD.org
>         FreeBSD GNOME Team
>         http://www.FreeBSD.org/gnome/  -  gnome at FreeBSD.org
> 
-- 
PGP Key : http://www.marcuscom.com/pgp.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-gnome/attachments/20090118/07733b57/attachment.pgp


More information about the freebsd-gnome mailing list