NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

UDF failure on 1TB removable media, USB panic, and more



I need to choose a file system that I can use on my NetBSD systems and 
Linux systems. So I chose UDF since it is "Universal".

First used:

NetBSD 5.99.38 (GENERIC) #0: Tue Aug 10 19:00:23 UTC 2010  
builds%b8.netbsd.org@localhost:/home/builds/ab/HEAD/amd64/201008110000Z-obj/home/builds/ab/HEAD/src/sys/arch/amd64/compile/GENERIC
 
amd64

It had multiple devices:

umass1 at uhub7 port 1 configuration 1 interface 0
umass1: Western Digital My Passport 0730, rev 2.10/10.08, addr 3
umass1: using SCSI over Bulk-Only
scsibus1 at umass1: 2 targets, 2 luns per target
sd1 at scsibus1 target 0 lun 0: <WD, My Passport 0730, 1008> disk fixed
sd1: fabricating a geometry
sd1: 931 GB, 953837 cyl, 64 head, 32 sec, 512 bytes/sect x 1953458176 
sectors
sd1: fabricating a geometry
ses0 at scsibus1 target 0 lun 1: <WD, SES Device, 1008> enclosure 
services fixed
ses0: SCSI-3 SES Device
scsibus1: detached
umass1: detached
umass1: at uhub7 port 1 (addr 3) disconnected
umass1 at uhub7 port 1 configuration 1 interface 0
umass1: Western Digital My Passport 0730, rev 2.10/10.08, addr 3
umass1: using SCSI over Bulk-Only
scsibus1 at umass1: 2 targets, 2 luns per target
sd2 at scsibus1 target 0 lun 0: <WD, My Passport 0730, 1008> disk fixed
sd2: fabricating a geometry
sd2: 931 GB, 953837 cyl, 64 head, 32 sec, 512 bytes/sect x 1953458176 
sectors
sd2: fabricating a geometry
ses1 at scsibus1 target 0 lun 1: <WD, SES Device, 1008> enclosure 
services fixed
ses1: SCSI-3 SES Device

I don't understand why sd1 and sd2 at the same time. ses0 had details.

fdisk showed:

Partition table:
0: NTFS, OS/2 HPFS, QNX2 or Advanced UNIX (sysid 7)
    start 2048, size 1953456128 (953836 MB, Cyls 0/32/33-121597/37/40)

And disklabel of sd1 showed:

# /dev/sd1d:
type: SCSI
disk: My Passport 0730
label: fictitious
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 953837
total sectors: 1953458176
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: 1953458176         0     unused      0     0        # (Cyl.      0 - 953836)
 e: 1953456128      2048       NTFS                     # (Cyl.      1 - 953836)
disklabel: boot block size 0
disklabel: super block size 0

So I ran:

$ time sudo /sbin/newfs_udf -L "Reed Backup 1" /dev/rsd1d
Formatting disc compatible with UDF version 201 to 201

UDF properties       04<REWRITABLE>
Volume set          `2dfedc796cef7dbc'
Primary volume      `1b525f33`
Logical volume      `Reed Backup 1`

Total space on this medium aprox. 976728951 Kb, 953836 Mb
Free space on this volume aprox.  976490347 Kb, 953603 Mb

  389.99s real     0.58s user     5.03s system

I also tried with -c but it never showed the chekcing output.
(maybe was not FORMAT_SPARABLE?)

And it never printed "Metadata percentage" (I didn't use -p). I am 
confused about the manpage which says "Percentage of partition to be 
initially reserved for metadata on the Metadata partition. It defaults 
to 20 %". What is good amount? And why "initially"? this can be changed 
later?

I was not able to mount it. It always said:
mount_udf: Cannot mount /dev/rsd0d on /mnt: Operation not supported by 
device

(I tried various devices.)

So I tried a different system:

The device is:

umass0 at uhub4 port 5 configuration 1 interface 0
umass0: Western Digital My Passport 0730, rev 2.10/10.08, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 2 luns per target
umass0: at uhub4 port 5 (addr 2) disconnected
probe(umass0:0:0:0): generic HBA error
scsibus0: detached
umass0: detached
umass0 at uhub4 port 5 configuration 1 interface 0
umass0: Western Digital My Passport 0730, rev 2.10/10.08, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 2 luns per target
sd0 at scsibus0 target 0 lun 0: <WD, My Passport 0730, 1008> disk fixed
sd0: fabricating a geometry
sd0: 931 GB, 953837 cyl, 64 head, 32 sec, 512 bytes/sect x 1953458176 
sectors
sd0: fabricating a geometry
ses0 at scsibus0 target 0 lun 1: <WD, SES Device, 1008> enclosure 
services fixed
ses0: SCSI-3 SES Device

That was on: 5.0.0_PATCH NetBSD 5.0.0_PATCH (GENERIC) #0: Wed Jul 15 
12:42:22 UTC 2009 
builds%b8.netbsd.org@localhost:/home/builds/ab/netbsd-5-0/i386/200907150000Z-obj/home/builds/ab/netbsd-5-0/src/sys/arch/i386/compile/GENERIC
 
i386

fdisk showed it had been reset:

new-host$ fdisk /dev/sd0d               
fdisk: primary partition table invalid, no magic in sector 0
fdisk: Cannot determine the number of heads
Disk: /dev/sd0d
NetBSD disklabel disk geometry:
cylinders: 953837, heads: 64, sectors/track: 32 (2048 sectors/cylinder)
total sectors: 1953458176

BIOS disk geometry:
cylinders: 1024, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 1953458176

Partition table:
0: <UNUSED>
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
Bootselector disabled.
Bootselector disabled.
No active partition.

And the disklabel changed:

new-host$ disklabel /dev/sd0d     
# /dev/sd0d:
type: SCSI
disk: My Passport 0730
label: fictitious
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 953837
total sectors: 1953458176
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

4 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a: 1953458176         0     4.2BSD      0     0     0  # (Cyl.      0 - 
953836)
 d: 1953458176         0     unused      0     0        # (Cyl.      0 - 
953836)
disklabel: boot block size 0
disklabel: super block size 0

I couldn't mount with rump either.

$ sudo rump_udf /dev/rsd0d /mnt                    
sysctl_createv: sysctl_locate(disknames) returned 2
sysctl_createv: sysctl_locate(iostatnames) returned 2
sysctl_createv: sysctl_locate(iostats) returned 2

Nothing was mounted. Ctrl-T showed:

 load: 0.55  cmd: rump_udf 8419 [parked parked nanoslp parked parked 
parked] 0.03u 0.01s 0% 22904k

FWIW, when I unplugged the USB from the 5.99.38 laptop, the system 
locked up. The second time I think it powered down later.

When I attempted to newfs_udf on second system, my X locked up for about 
two minutes, but recovered.  I did a newfs_udf three different times.

So then I tried ext2fs. First I used disklabel -e to change "a" to Linux 
Ext2. And then:

new-host$ sudo newfs_ext2fs  /dev/rsd0a
/dev/rsd0a: 953837.0MB (1953458176 sectors) block size 4096, fragment 
size 4096
        using 7452 block groups of 128.0MB, 32768 blks, 16384 inodes.

super-block backups (for fsck_ext2fs -b #) at:
32768, 65536, 98304, 131072, 163840, 196608, 229376, 262144, 294912, 
327680,
...............................................................................



I was able to mount (with and without rump) and use it.

I unplugged the USB device (when not mounted) and my system rebooted. 
But no crash dump.

savecore: reboot after panic: panic: trap
savecore: system went down at Sat Feb 26 14:32:24 2011
savecore: (null): Bad address




Home | Main Index | Thread Index | Old Index