Solved copy sdcard and try to mount...

Hello all,

i have an sd-card, my Mac show it like:

Code:
/dev/disk6 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *127.9 GB   disk6
   1:               Windows_NTFS ⁨⁩                        127.8 GB   disk6s1

i unmount the device disk6 and copy the partition disk6s1 with dd to the image card1.img like
Code:
 dd if=/dev/disk6s1 of=card1.img bs=4M

mount it with

Code:
mdconfig -f card1.img -u 0

and gpart show say:
Code:
 gpart show /dev/md0 
=>       63  249704385  md0  MBR  (119G)
         63  249704385       - free -  (119G)

so its an different size and type?
Whats wrong with my copy?

thank you for your advices ré
 
Hello,

ok this explane the different sizes but why it show the ntfs partition as free?

regards ré
 
Is there a reason why you did do 1:1 copy ? I.e. dd if=/dev/disk6 of=card1.img bs=4M. Also what does fstyp say about /dev/md0? Note you didn't copy the whole SD card but rather the partition. So you can't expect gpart to show you data that is not there (gpt metadata).
In your case I'd try ntfs-3g -o ro /dev/md0 /mnt/a
 
you did not copy the partition table
also copy /dev/rdisk on mac as each is much faster
file -s /dev/md0 should show ntfs or something
 
Hey Guys,

thanks for help, i copied the disk6s1. fstyp says it is exfat and not ntfs so i install fusefs-exfat and mount.exfat -o ro /dev/md0 /mnt/card1/ bring the device online ;-)

regards ré
 
also copy /dev/rdisk on mac as each is much faster
I heard that few times but that's not what I've experienced over the years. I'm on Catalina 10.15.7.
Right now I'm trying copying raw image on sdcard. Speed stats were obtained by sending INFO signal to dd process. Tried if few times at random, here I'm showing just one stat as speedwise it was always the same.

With USB2sdcard reader:
Code:
# dd if=./FreeBSD-13.1-STABLE-i386.raw of=/dev/disk4 bs=1k skip=1081931 seek=1081931 conv=notrunc
3350+0 records in
3349+0 records out
3429376 bytes transferred in 7.843085 secs (437248 bytes/sec)
Code:
# dd if=./FreeBSD-13.1-STABLE-i386.raw of=/dev/rdisk4 bs=1k skip=1081931 seek=1081931 conv=notrunc
1362+0 records in
1361+0 records out
1393664 bytes transferred in 6.869266 secs (202884 bytes/sec)

With internal sdcard reader:
Code:
# dd if=./FreeBSD-13.1-STABLE-i386.raw of=/dev/disk3 bs=1k skip=1081931 seek=1081931 conv=notrunc
6994+0 records in
6993+0 records out
7160832 bytes transferred in 8.846192 secs (809482 bytes/sec)
Code:
# dd if=./FreeBSD-13.1-STABLE-i386.raw of=/dev/rdisk3 bs=1k skip=1081931 seek=1081931 conv=notrunc
2391+0 records in
2390+0 records out
2447360 bytes transferred in 10.829832 secs (225983 bytes/sec)
Right now I'm locked in blocksize as I'm seeking into partition but I did try the copy where I was able to increase the block size. For this sorry sdcard it didn't help.
 
I heard that few times but that's not what I've experienced over the years. I'm on Catalina 10.15.7.
Code:
bash-3.2# uname -rms
Darwin 18.7.0 x86_64


bash-3.2# dd if=/dev/disk0s1 of=/dev/null bs=64k
3200+0 records in
3200+0 records out
209715200 bytes transferred in 5.023409 secs (41747585 bytes/sec)


bash-3.2# dd if=/dev/rdisk0s1 of=/dev/null bs=64k
3200+0 records in
3200+0 records out
209715200 bytes transferred in 2.010729 secs (104298089 bytes/sec)
same with
Darwin 19.6.0 x86_64
 
Back
Top