Changing cards in a reader (new info)
hoe-waa at hawaii.rr.com
hoe-waa at hawaii.rr.com
Thu Jul 29 16:19:13 PDT 2004
Aloha
I have some additional information regarding this problem.
I was reading some of the man pages for the ump-teenth time and
I thought I would try something with fdisk.
I started with a 128MB card in the reader.
hp# mount_msdosfs /dev/da2s1 /mnt/olympus/
hp# ls -l /mnt/olympus/
hp# ls -l /mnt/olympus/dcim/100olymp/
total 6752
-r-xr-xr-x 1 root wheel 680523 Jan 1 2000 p1010074.jpg
-r-xr-xr-x 1 root wheel 672166 Jun 5 07:19 p6050002.jpg
-r-xr-xr-x 1 root wheel 677171 Jun 5 07:19 p6050003.jpg
-r-xr-xr-x 1 root wheel 684658 Jun 5 07:23 p6050004.jpg
-r-xr-xr-x 1 root wheel 664210 Jun 5 07:23 p6050005.jpg
-r-xr-xr-x 1 root wheel 663849 Jun 5 07:24 p6050006.jpg
-r-xr-xr-x 1 root wheel 689533 Jun 5 07:37 p6050009.jpg
-r-xr-xr-x 1 root wheel 697084 Jun 5 07:37 p6050010.jpg
-r-xr-xr-x 1 root wheel 691391 Jun 5 07:59 p6050011.jpg
-r-xr-xr-x 1 root wheel 695390 Jun 5 07:59 p6050012.jpg
hp#
hp# umount /mnt/olympus/
Replace the 128MB with a 8MB
hp# mount_msdosfs /dev/da2s1 /mnt/olympus/
mount_msdosfs: /dev/da2s1: Invalid argument
Fails to mount
hp# fdisk -i da2
******* Working on device /dev/da2 *******
parameters extracted from in-core disklabel are:
cylinders=7 heads=64 sectors/track=32 (2048 blks/cyl)
parameters to be used for BIOS calculations are:
cylinders=7 heads=64 sectors/track=32 (2048 blks/cyl)
Do you want to change our idea of what BIOS thinks ? [n]
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 1 (0x01),(Primary DOS with 12 bit FAT)
start 25, size 15975 (7 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 10;
end: cyl 249/ head 3/ sector 16
Do you want to change it? [n]
The data for partition 2 is:
<UNUSED>
Do you want to change it? [n]
The data for partition 3 is:
<UNUSED>
Do you want to change it? [n]
The data for partition 4 is:
<UNUSED>
Do you want to change it? [n]
Partition 1 is marked active
Do you want to change the active partition? [n]
We haven't changed the partition table yet. This is your last chance.
parameters extracted from in-core disklabel are:
cylinders=7 heads=64 sectors/track=32 (2048 blks/cyl)
parameters to be used for BIOS calculations are:
cylinders=7 heads=64 sectors/track=32 (2048 blks/cyl)
Information from DOS bootblock is:
1: sysid 1 (0x01),(Primary DOS with 12 bit FAT)
start 25, size 15975 (7 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 10;
end: cyl 249/ head 3/ sector 16
2: <UNUSED>
3: <UNUSED>
4: <UNUSED>
Should we write new partition table? [n]
hp#
I answer no to all questions and then it mounts!!
hp# mount_msdosfs /dev/da2s1 /mnt/olympus/
hp# ls -l /mnt/olympus/dcim/100olymp/
total 680
-rwxr-xr-x 1 root wheel 694158 Jul 12 18:27 p7120001.jpg
hp#
Of course this (fdisk) has to be done as root. If I want to mount
and umount as a standard user I need to "chmod 660 da2s1" each time
the card is changed and "fdisk -i" is run.
I hope this triggers some memory cells on all the experienced users
on this list. Is there a better way to do this?
I am sorry my posts always seem to run long but I want to include
what I feel is important.
Thanks for all the help I have received and all the future help I
hope I get :o)
Robert
More information about the freebsd-questions
mailing list