From owner-freebsd-questions@FreeBSD.ORG Thu Jul 29 23:19:13 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3699916A4CE for ; Thu, 29 Jul 2004 23:19:13 +0000 (GMT) Received: from ms-smtp-03-eri0.socal.rr.com (ms-smtp-03-qfe0.socal.rr.com [66.75.162.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA95B43D1F for ; Thu, 29 Jul 2004 23:19:12 +0000 (GMT) (envelope-from hoe-waa@hawaii.rr.com) Received: from ms-mss-01 ([10.10.4.10])i6TNJ1OD012907 for ; Thu, 29 Jul 2004 16:19:01 -0700 (PDT) Received: from socal.rr.com (localhost [127.0.0.1]) by ms-mss-01.socal.rr.com (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) with ESMTP id <0I1M00M5JZFPCA@ms-mss-01.socal.rr.com> for freebsd-questions@freebsd.org; Thu, 29 Jul 2004 16:19:01 -0700 (PDT) Received: from [10.10.6.201] (Forwarded-For: [68.8.243.244]) by ms-mss-01.socal.rr.com (mshttpd); Thu, 29 Jul 2004 13:19:01 -1000 Date: Thu, 29 Jul 2004 13:19:01 -1000 From: hoe-waa@hawaii.rr.com To: freebsd-questions@freebsd.org Message-id: <182391818247c7.18247c71823918@socal.rr.com> MIME-version: 1.0 X-Mailer: iPlanet Messenger Express 5.2 HotFix 1.21 (built Sep 8 2003) Content-type: text/plain; charset=us-ascii Content-language: en Content-transfer-encoding: 7BIT Content-disposition: inline X-Accept-Language: en Priority: normal X-Virus-Scanned: Symantec AntiVirus Scan Engine Subject: Changing cards in a reader (new info) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hoe-waa@hawaii.rr.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jul 2004 23:19:13 -0000 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: Do you want to change it? [n] The data for partition 3 is: Do you want to change it? [n] The data for partition 4 is: 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: 3: 4: 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