How to mount a PCMCIA hard drive

2024-06-09 Thread Erkki Ruohtula
Hi
After a hiatus of several years, I installed NetBSD, version 10,
and was delighted that several pain points I had seen in earlier
attempts have been resolved. Keyboard map setting interited also to
X11, and a nice ctwm default desktop setup.
One platform I used was an old Thinkpad T23, 256Mb. Compatibility
appears to be excellent, of course the limited memory rules
out running some progrems. But on to the question:

I have a "Centennial MicroDrive", 340 Mb that does into a PCMCIA card
slot. Inserting it into the T23, I get these dmesg messages

[ 6743.118863] wdc2 at pcmcia1 function 0:  [ 6743.118863] wdc2: i/o mapped mode
[ 6743.618871] atabus2 at wdc2 channel 0
[ 8339.023384] atabus2: detached
[ 8339.023384] wdc2: detached 

the last lines two are from taking it out.
Now I wonder how to mount it. It probably contains a FAT
file system, but I could not figure out what device to use.
Or do I need to create a new /dev entry?

Erkki


Re: How to mount a PCMCIA hard drive

2024-06-09 Thread Martin Husemann
On Sun, Jun 09, 2024 at 01:47:45PM +0300, Erkki Ruohtula wrote:
> I have a "Centennial MicroDrive", 340 Mb that does into a PCMCIA card
> slot. Inserting it into the T23, I get these dmesg messages
> 
> [ 6743.118863] wdc2 at pcmcia1 function 0:  CARD> [ 6743.118863] wdc2: i/o mapped mode
> [ 6743.618871] atabus2 at wdc2 channel 0
> [ 8339.023384] atabus2: detached
> [ 8339.023384] wdc2: detached 

There should be a drive on that "atabus2", without the drive you can not
access the card.

Not sure why no drive is detected in your case.

Martin


Re: How to mount a PCMCIA hard drive

2024-06-09 Thread Erkki Ruohtula
On Sun, 9 Jun 2024 12:28:12 + (UTC)
Martin Husemann  wrote:

> On Sun, Jun 09, 2024 at 01:47:45PM +0300, Erkki Ruohtula wrote:
> > I have a "Centennial MicroDrive", 340 Mb that does into a PCMCIA
> > card slot. Inserting it into the T23, I get these dmesg messages
> > 
> > [ 6743.118863] wdc2 at pcmcia1 function 0:  > ATA
> > CARD> [ 6743.118863] wdc2: i/o mapped mode
> > [ 6743.618871] atabus2 at wdc2 channel 0
> > [ 8339.023384] atabus2: detached
> > [ 8339.023384] wdc2: detached 
> 
> There should be a drive on that "atabus2", without the drive you can
> not access the card.
> 
> Not sure why no drive is detected in your case.

I assumed wdc2 is the drive here. But then one would expect it to
say "wdc2 at atabus2", not the other way round. I guess I better try
finding another machine with Windows or Linux where I can test if the
MicroDrive hardware itself is OK. It is many years since I last used it.
But machines with PCMCIA slots are getting scarce.

Erkki


Re: How to mount a PCMCIA hard drive

2024-06-09 Thread Valery Ushakov
On Sun, Jun 09, 2024 at 15:55:17 +0300, Erkki Ruohtula wrote:

> On Sun, 9 Jun 2024 12:28:12 + (UTC)
> Martin Husemann  wrote:
> 
> > On Sun, Jun 09, 2024 at 01:47:45PM +0300, Erkki Ruohtula wrote:
> > > I have a "Centennial MicroDrive", 340 Mb that does into a PCMCIA
> > > card slot. Inserting it into the T23, I get these dmesg messages
> > > 
> > > [ 6743.118863] wdc2 at pcmcia1 function 0:  > > ATA
> > > CARD> [ 6743.118863] wdc2: i/o mapped mode
> > > [ 6743.618871] atabus2 at wdc2 channel 0
> > > [ 8339.023384] atabus2: detached
> > > [ 8339.023384] wdc2: detached 
> > 
> > There should be a drive on that "atabus2", without the drive you can
> > not access the card.
> > 
> > Not sure why no drive is detected in your case.
> 
> I assumed wdc2 is the drive here. But then one would expect it to
> say "wdc2 at atabus2", not the other way round. I guess I better try
> finding another machine with Windows or Linux where I can test if the
> MicroDrive hardware itself is OK. It is many years since I last used it.
> But machines with PCMCIA slots are getting scarce.

"wdc" is the "C"ontroller, the drives are "wd".  E.g. from a dmesg
from Jornada 690 from from https://dmesgd.nycbug.org - a CF card in a
PCMCIA slot:

wdc0 at pcmcia1 function 0: 
wdc0: memory mapped mode
atabus0 at wdc0 channel 0
wd0 at atabus0 drive 0
wd0: 
wd0: drive supports 1-sector PIO transfers, LBA48 addressing
wd0: 30535 MB, 62041 cyl, 16 head, 63 sec, 512 bytes/sect x 62537328 sectors
wd0: 32-bit data port

-uwe