Port-sparc archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: disklabel vs. dos partition (reading an sdcard in NetBSD/sparc)
Le lun. 15 mars 2021 à 17:19, Michael <macallan%netbsd.org@localhost> a écrit :
> mbrlabel -w should update the kernel's idea of the label, and allow you
> to mount the partition.
OK, good to know, thanks. That confirms I have a problem elsewhere.
I discovered fdisk in Linux would let me create a Sun disklabel, so I
switched to trying with that for now. The kernel reads the disklabel
just fine, so that's a step forward :-)
mount is willing to do something if I mount the third (full disk)
partition with a FAT starting at sector 0 (so, no valid disklabel at
all in this case, the 'fictitious' ones is used), but data appears
corrupted (it seems the translation between 'block' and 'rawblock' is
scr*wed, as they differ when reading the data even though partition
starts at 0 so I understand they should be the same, though again I'm
not certain).
But as of yet, it won't mount from the first partition at sector
2048(one cylinder) from a 'proper' Sun disklabel: it keeps telling me
"invalid operation", but I've yet to figure out what is failing - it's
not an ioctl it seems (I display all results), and it's not trying to
write either (I 'mount -o ro' & I trace all results).
So, still some way to go before I can read FS data :-)
Cordially & thanks for your help,
--
Romain Dolbeau
Home |
Main Index |
Thread Index |
Old Index