NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Formatting FAT32 newfs_msdos returns read-only file system
Hello
I'm somewhat of a newbie when it comes to drives, especially in BSD-land.
I'm trying to format an external drive as FAT 32 for portability
across windows PCs and other systems.
The drive dmesg:
```
[ 2.379009] umass0: Western Digital (0x1058) My Passport 2626
(0x2626), rev 2.10/10.28, addr 1
[ 2.379009] umass0: using SCSI over Bulk-Only
[ 2.389008] scsibus0 at umass0: 2 targets, 2 luns per target
[ 2.389008] sd0 at scsibus0 target 0 lun 0: <WD, My Passport 2626,
1028> disk fixed
```
I used fdisk -au sd0 with mostly defaults aside from selecting sysid 12
fdisk sd0
```
fdisk: Cannot determine the number of heads
Disk: /dev/rsd0
NetBSD disklabel disk geometry:
cylinders: 1907697, heads: 64, sectors/track: 32 (2048 sectors/cylinder)
total sectors: 3906963456, bytes/sector: 512
BIOS disk geometry:
cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 3906963456
Partitions aligned to 2048 sector boundaries, offset 1
Partition table:
0: Primary DOS with 32 bit FAT - LBA (sysid 12)
start 1, size 3906963455 (1907697 MB, Cyls 0-243197/57/60)
PBR is not bootable: All bytes are identical (0x00)
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
No active partition.
Drive serial number: 0 (0x00000000)
```
And the disklabel sd0 output:
```
# /dev/rsd0:
type: SCSI
disk: My Passport 2626
label: fictitious
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 1907697
total sectors: 3906963456
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: 3906963456 0 unused 0 0 # (Cyl. 0
- 1907696)
e: 3906963455 1 MSDOS # (Cyl.
0*- 1907696)
disklabel: boot block size 0
disklabel: super block size 0
```
Then I tried newfs_msdos -F 32 -L "PASSPORT" /dev/rsd0e
```
/dev/rsd0e: 3906486528 sectors in 30519426 FAT32 clusters (65536 bytes/cluster)
MBR type: 11
bps=512 spc=128 res=32 nft=2 mid=0xf0 spt=32 hds=64 hid=0
bsec=3906963455 bspf=238434 rdcl=2 infs=1 bkbs=2
newfs_msdos: /dev/rsd0e: Read-only file system
```
I'm not really sure if I'm doing this right - I must admit I have to
learn more about this topic.
Home |
Main Index |
Thread Index |
Old Index