|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
sd/mmc drive
HEllo,
I have a sd/mmc drive in my laptop. When I put a card in it I see the following in dmesg: scsibus1 at sdmmc0: 2 targets, initiator 0 sd1 at scsibus1 targ 1 lun 0: <SD/MMC, Drive #01, > SCSI2 0/direct fixed sd1: 1962MB, 1024 bytes/sec, 2009600 sec total I try to mount as follows: $ sudo mount /dev/sd1i /mnt/pen/ mount_ffs: /dev/sd1i on /mnt/pen: Device not configured Am I doing something wrong or is the drive simply not supported? Thanks |
|
|||
I think you are missing the file type specification in your mount command.
Typically flash devices use the msdos file type (aka 'vfat' in Linux). Quote:
http://www.openbsd.org/faq/faq14.html#flashmem |
|
|||
It does not work either...
Code:
$ sudo mount -t msdos /dev/sd1i /mnt/pen/ mount_msdos: /dev/sd1i on /mnt/pen: Device not configured |
|
|||
NTFS is enabled in GENERIC now (4.9 will be the first release to have it). That said, I tried it a few weeks ago and couldn’t get it to work.
__________________
Many thanks to the forum regulars who put time and effort into helping others solve their problems. |
|
|||
I performed the commands:
Code:
$ sudo fdisk sd1 Disk: sd1 geometry: 125/255/63 [2009600 1024-byte Sectors] Offset: 0 Signature: 0xAA55 Starting Ending LBA Info: #: id C H S - C H S [ start: size ] ------------------------------------------------------------------------------- 0: 06 0 3 55 - 250 46 52 [ 243: 4018957 ] DOS > 32MB 1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused $ sudo disklabel sd1 # /dev/rsd1c: type: SCSI disk: SCSI disk label: Drive #01 uid: 0000000000000000 flags: bytes/sector: 1024 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 125 total sectors: 2009600 boundstart: 0 boundend: 2009600 drivedata: 0 16 partitions: # size offset fstype [fsize bsize cpg] c: 2009600 0 unused Last edited by J65nko; 22nd March 2011 at 05:19 PM. Reason: [code] tags added |
|
|||
No, "c" always represents the entire disk.
The problem here is that OpenBSD isn't spoofing a disklabel entry so that you can mount the msdos (..FAT) formatted partition. The OpenBSD kernel creates a pseudo-disklabel for disks that have foreign filesystems, but sometimes, as is in your case.. it has not. You should send a bug report to the mailing lists. |
|
||||
It is not recognized, as far as I can tell, because of an overarching problem: 1024 bytes/sector. This is neither the standard 512-byte sector, nor the newfangled SSD 4096-byte sector. Nor even the 2048-byte sectors of optical disks.
|
|
||||
I should add that as a circumvention, a BSD disklabel can be manually added. The FAT MBR partition starts at sector 243 for a size of 4018957 sectors. Manually add this using disklabel(8) and its -E option or -e option. Here's a quick guess at admin inputs using disklabel -E, to create an "i" BSD partition to align with the MBR partition, just as an example:
Code:
$ sudo disklabel -E sd1 a i 243 4018957 MSDOS q y |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Creating USB flash drive drive image from FreeBSD disc1.iso | FBSD | Guides | 1 | 10th February 2010 04:42 PM |
which drive is what? | knasbas | OpenBSD Installation and Upgrading | 2 | 20th July 2009 09:48 PM |
Did I fry my hard drive? | JMJ_coder | General Hardware | 7 | 23rd December 2008 10:38 PM |
How can I tell if my USB drive is bad? | JMJ_coder | General Hardware | 4 | 3rd November 2008 04:12 AM |
CF as a *BSD hard drive? | JMJ_coder | General Hardware | 26 | 31st July 2008 05:13 PM |