NetBSD-Users archive

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

Re: Flash drive fstype reported as 4.2BSD instead of MSDOS



Aaron J. Grier wrote:
On Tue, Jul 21, 2009 at 05:00:06PM +0200, Brad du Plessis wrote:
Aaron J. Grier wrote:
I wonder if this is a partitionless "superfloppy", with the
filesystem starting at the beginning of the device.

are you able to mount with "mount -t msdos /dev/sd0d /mnt"?
Yes, it mounts fine when forcing it to msdos.

there you go.  it has no partition table (MBR or BSD), so I wouldn't
expect disklabel or mbrlabel to be able to make any sense of it.

Is this problem likely to be related to the lack of a partition table or is it a different issue (still on netbsd-4):

# mount -t msdos /dev/sd0a /usr/floppy
# cd /usr/floppy
# dd if=/dev/zero of=file.0
dd: file.0: Invalid argument
567553+0 records in
567552+0 records out
290586624 bytes transferred in 654.191 secs (444192 bytes/sec)

# dd if=/dev/zero of=file.1
dd: file.1: Invalid argument
6785+0 records in
6784+0 records out
3473408 bytes transferred in 7.507 secs (462689 bytes/sec)

# dd if=/dev/zero of=file.2
dd: file.2: Invalid argument
387969+0 records in
387968+0 records out
198639616 bytes transferred in 448.959 secs (442444 bytes/sec)

# dd if=/dev/zero of=file.3
dd: file.3: Invalid argument
5889+0 records in
5888+0 records out
3014656 bytes transferred in 6.510 secs (463080 bytes/sec)

# ls -l /usr/floppy/
total 484096
-rwxr-xr-x  1 root  wheel  290586624 Jul 29 17:35 file.0
-rwxr-xr-x  1 root  wheel    3473408 Jul 29 17:36 file.1
-rwxr-xr-x  1 root  wheel  198639616 Jul 29 17:44 file.2
-rwxr-xr-x  1 root  wheel    3014656 Jul 29 17:46 file.3





Home | Main Index | Thread Index | Old Index