NetBSD Problem Report #48117
From www@NetBSD.org Tue Aug 13 02:05:04 2013
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 66108711B1
for <gnats-bugs@gnats.NetBSD.org>; Tue, 13 Aug 2013 02:05:04 +0000 (UTC)
Message-Id: <20130813020502.DEF237122E@mollari.NetBSD.org>
Date: Tue, 13 Aug 2013 02:05:02 +0000 (UTC)
From: dhgutteridge@sympatico.ca
Reply-To: dhgutteridge@sympatico.ca
To: gnats-bugs@NetBSD.org
Subject: disklabel(8) and mount_msdos(8) on evbarm don't work with USB pen drives that work on other architectures
X-Send-Pr-Version: www-1.0
>Number: 48117
>Category: port-evbarm
>Synopsis: disklabel(8) and mount_msdos(8) on evbarm don't work with USB pen drives that work on other architectures
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-evbarm-maintainer
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Aug 13 02:10:00 +0000 2013
>Closed-Date: Sun Dec 23 01:37:29 +0000 2018
>Last-Modified: Sun Dec 23 01:37:29 +0000 2018
>Originator: David H. Gutteridge
>Release: 6.99.23
>Organization:
>Environment:
(I don't have access to run "uname -a" right now, but it's 6.99.23/evbarm from a July 31st releng build.)
>Description:
If I try to mount a USB pen drive with an FAT12 or FAT16 file system
on a Raspberry Pi running 6.99.23/evbarm, the actual partition with
data on it isn't being recognized. The same examples work on other
architectures I've tried (amd64, i386, macppc).
Disklabel output on amd64:
# /dev/rsd1d:
type: SCSI
disk: Store 'n' Go
label: fictitious
flags: removable
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 16
sectors/cylinder: 512
cylinders: 980
total sectors: 501760
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
5 partitions:
# size offset fstype [fsize bsize cpg/sgs]
d: 501760 0 unused 0 0 # (Cyl. 0 - 979)
e: 501728 32 MSDOS # (Cyl. 0*- 979)
Disklabel output on evbarm:
# /dev/rsd0c:
type: SCSI
disk: Store 'n' Go
label: fictitious
flags: removable
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 16
sectors/cylinder: 512
cylinders: 980
total sectors: 501760
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
3 partitions:
# size offset fstype [fsize bsize cpg/sgs]
c: 501760 0 unused 0 0 # (Cyl. 0 - 979)
>How-To-Repeat:
Try mounting a USB pen drive with an FAT partition.
>Fix:
None known.
>Release-Note:
>Audit-Trail:
From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-evbarm/48117: disklabel(8) and mount_msdos(8) on evbarm
don't work with USB pen drives that work on other architectures
Date: Sun, 13 Jul 2014 05:08:10 +0000
On Tue, Aug 13, 2013 at 02:10:00AM +0000, dhgutteridge@sympatico.ca wrote:
> If I try to mount a USB pen drive with an FAT12 or FAT16 file system
> on a Raspberry Pi running 6.99.23/evbarm, the actual partition with
> data on it isn't being recognized. The same examples work on other
> architectures I've tried (amd64, i386, macppc).
Is this related to 47463? (Or, the fix for 47463?)
--
David A. Holland
dholland@netbsd.org
From: "David H. Gutteridge" <dhgutteridge@sympatico.ca>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-evbarm/48117: disklabel(8) and mount_msdos(8) on evbarm don't work with USB pen drives that work on other architectures
Date: Sun, 13 Jul 2014 23:07:25 -0400
On 2014-07-13, at 1:10 AM, David Holland wrote:
> The following reply was made to PR port-evbarm/48117; it has been =
noted by GNATS.
>=20
> From: David Holland <dholland-bugs@netbsd.org>
> To: gnats-bugs@NetBSD.org
> Cc:=20
> Subject: Re: port-evbarm/48117: disklabel(8) and mount_msdos(8) on =
evbarm
> don't work with USB pen drives that work on other architectures
> Date: Sun, 13 Jul 2014 05:08:10 +0000
>=20
> On Tue, Aug 13, 2013 at 02:10:00AM +0000, dhgutteridge@sympatico.ca =
wrote:
>> If I try to mount a USB pen drive with an FAT12 or FAT16 file system
>> on a Raspberry Pi running 6.99.23/evbarm, the actual partition with
>> data on it isn't being recognized. The same examples work on other
>> architectures I've tried (amd64, i386, macppc).
>=20
> Is this related to 47463? (Or, the fix for 47463?)
It presumably is: from looking at the other PR, it seems related. The
change that was committed doesn't address my problem. I just tested
with a kernel and userland from July 8th, and the problem still
persists. There's a difference now in terms of what disklabel(8)
reports, but it's not an improvement. For some reason, it now makes
reference to a 4.2BSD fstype entry, which is not present on the
drive.
# /dev/rsd0c:
type: SCSI
disk: Store 'n' Go =20
label: fictitious
flags: removable
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 16
sectors/cylinder: 512
cylinders: 980
total sectors: 501760
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0=20
3 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 501760 0 4.2BSD 0 0 0 # (Cyl. 0 - =
979)
c: 501760 0 unused 0 0 # (Cyl. 0 - =
979)
disklabel: boot block size 0
disklabel: super block size 0
If you want to close this PR and track against the other, that's fine
with me.
Dave
From: David H.Gutteridge <dhgutteridge@sympatico.ca>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: port-evbarm/48117: disklabel(8) and mount_msdos(8) on evbarm don't work with USB pen drives that work on other architectures
Date: Sun, 13 Jul 2014 23:25:57 -0400
On 2014-07-13, at 11:07 PM, David H. Gutteridge wrote:
> On 2014-07-13, at 1:10 AM, David Holland wrote:
>> The following reply was made to PR port-evbarm/48117; it has been =
noted by GNATS.
>>=20
>> From: David Holland <dholland-bugs@netbsd.org>
>> To: gnats-bugs@NetBSD.org
>> Cc:=20
>> Subject: Re: port-evbarm/48117: disklabel(8) and mount_msdos(8) on =
evbarm
>> don't work with USB pen drives that work on other architectures
>> Date: Sun, 13 Jul 2014 05:08:10 +0000
>>=20
>> On Tue, Aug 13, 2013 at 02:10:00AM +0000, dhgutteridge@sympatico.ca =
wrote:
>>> If I try to mount a USB pen drive with an FAT12 or FAT16 file system
>>> on a Raspberry Pi running 6.99.23/evbarm, the actual partition with
>>> data on it isn't being recognized. The same examples work on other
>>> architectures I've tried (amd64, i386, macppc).
>>=20
>> Is this related to 47463? (Or, the fix for 47463?)
>=20
> It presumably is: from looking at the other PR, it seems related. The
> change that was committed doesn't address my problem. I just tested
> with a kernel and userland from July 8th, and the problem still
> persists. There's a difference now in terms of what disklabel(8)
> reports, but it's not an improvement. For some reason, it now makes
> reference to a 4.2BSD fstype entry, which is not present on the
> drive.
>=20
> # /dev/rsd0c:
> type: SCSI
> disk: Store 'n' Go =20
> label: fictitious
> flags: removable
> bytes/sector: 512
> sectors/track: 32
> tracks/cylinder: 16
> sectors/cylinder: 512
> cylinders: 980
> total sectors: 501760
> rpm: 3600
> interleave: 1
> trackskew: 0
> cylinderskew: 0
> headswitch: 0 # microseconds
> track-to-track seek: 0 # microseconds
> drivedata: 0=20
>=20
> 3 partitions:
> # size offset fstype [fsize bsize cpg/sgs]
> a: 501760 0 4.2BSD 0 0 0 # (Cyl. 0 - =
979)
> c: 501760 0 unused 0 0 # (Cyl. 0 - =
979)
> disklabel: boot block size 0
> disklabel: super block size 0
>=20
> If you want to close this PR and track against the other, that's fine
> with me.
>=20
> Dave
I should add, for comparison, fdisk(8) does show correct information:
Disk: /dev/rsd0c
NetBSD disklabel disk geometry:
cylinders: 980, heads: 16, sectors/track: 32 (512 sectors/cylinder)
total sectors: 501760, bytes/sector: 512
BIOS disk geometry:
cylinders: 980, heads: 16, sectors/track: 32 (512 sectors/cylinder)
total sectors: 501760
Partitions aligned to 2048 sector boundaries, offset 32
Partition table:
0: DOS (16-bit FAT) - LBA (sysid 14)
start 32, size 501728 (245 MB, Cyls 0-979), Active
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
First active partition: 0
Drive serial number: 2759040381 (0xa4739d7d)
Dave
From: "David H. Gutteridge" <david@gutteridge.ca>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: port-evbarm/48117: disklabel(8) and mount_msdos(8) on evbarm
don't work with USB pen drives that work on other architectures
Date: Tue, 02 Oct 2018 23:12:25 -0400
I cannot reproduce this issue with 8.0_STABLE or 8.99.25 kernels (in
both cases with a 8.0_STABLE userland), so this can be closed, from my
perspective. (I'm no longer able to test with 7.x, as I've upgraded
past it.)
Thanks,
Dave
State-Changed-From-To: open->closed
State-Changed-By: gutteridge@NetBSD.org
State-Changed-When: Sun, 23 Dec 2018 01:37:29 +0000
State-Changed-Why:
Issue is resolved in recent releases, okay to close.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.