Welcome, Guest. Please login or register.

Author Topic: MountDOS: "MD01:: bad number"  (Read 2812 times)

Description:

0 Members and 2 Guests are viewing this topic.

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
MountDOS: "MD01:: bad number"
« on: January 11, 2008, 07:14:47 PM »
Lots of problems today :-)

I've got a 4GB compact flash card in a CF->IDE reader, connected to the internal IDE interface of my A4000. The card has a single FAT32 partition filling the whole card. I am trying to get MountDOS to mount the partition (it can see it in the list). I am using this command:

MountDOS DEVICE scsi.device UNIT 0 FAT95 MOUNT

It mounts MD01:, but if I try to access it (even CD to it) I get an error saying "MD01:: bad number". I do have Fat95 in L:.

I wondered whether the partition may be too big, so I deleted them all and created one 512MB in size, but got the same error. I get no icon on Workbench, and the volume doesn't show up anywhere. The partition is readable and writeable on a PC. The card is actually a Sony Memory Stick Pro Duo in a MS Pro Duo -> CF adapter. Not sure if that matters.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: MountDOS: "MD01:: bad number"
« Reply #1 on: January 11, 2008, 07:32:20 PM »
Just tried with a 512MB Compact Flash card (a real CF card this time) and got the same problem. Here is the mountlist created by MountDOS for that card:

MD01:
FileSystem       = L:fat95
Device           = scsi.device
Unit             = 0
Flags            = 1
Surfaces         = 1
BlocksPerTrack   = 1
MaxTransfer      = 0xFFFE00
Reserved         = 0
LowCyl           = 63
HighCyl          = 1000943
Buffers          = 20
BufMemType       = 1
StackSize        = 2048
Priority         = 10
GlobVec          = -1
DosType          = 0x46415401
Activate         = 1
#

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline A4000_Mad

  • Hero Member
  • *****
  • Join Date: Dec 2006
  • Posts: 1392
    • Show only replies by A4000_Mad
Re: MountDOS: "MD01:: bad number"
« Reply #2 on: January 11, 2008, 08:03:11 PM »
I'm no expert moto, but give this a go mate :-)

It is actually the mountlist of the driver CF0 which works any sized CF card on the PCMCIA slot of an A1200. I've managed the complicated task of changing 'compactflash.device' to 'scsi.device' :oops: :-D

FileSystem = l:fat95
Device = scsi.device
Unit = 0
Flags = 0
LowCyl = 0
HighCyl = 0
Surfaces = 1
BlocksPerTrack = 1
BlockSize = 512
Buffers = 20
BufMemType = 1
BootPri = 0
Stacksize = 4096
Priority = 5
GlobVec = -1
DosType = 0x46415401
A4000 Mad
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: MountDOS: "MD01:: bad number"
« Reply #3 on: January 11, 2008, 08:09:33 PM »
Thanks, but I don't think that will work. The LowCyl and HighCyl parameters in the mountlist I posted define the boundaries of the partition. The mountlist you posted doesn't have those parameters because the mountlist can't know how big the card is until it attempts to mount it. There must be a function in compactflash.device which looks at the card and finds its partition boundaries. Since scsi.device can't do this, it won't work without LowCyl and HighCyl.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline Thomas

Re: MountDOS: "MD01:: bad number"
« Reply #4 on: January 11, 2008, 08:17:18 PM »

Fat95 does this. You should read the Fat95 documentation. Especially the section where it describes what LowCyl=0 means for it.

Bye,
Thomas

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: MountDOS: "MD01:: bad number"
« Reply #5 on: January 11, 2008, 08:20:28 PM »
Hmm ok. So would that mountlist A4000_Mad posted work?

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: MountDOS: "MD01:: bad number"
« Reply #6 on: January 11, 2008, 08:22:37 PM »
Just used GiggleDisk to create a mountlist and it seems to work!

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: MountDOS: "MD01:: bad number"
« Reply #7 on: January 11, 2008, 08:29:57 PM »
Hmm spoke too soon. GiggleDisk created a mountlist which worked for the 512MB card, but not the 4GB MS in the adapter. Thomas would that mountlist A4000_MAD posted work?

[EDIT]
Yes I did create a new mountlist for the 4GB card...
[/EDIT]

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: MountDOS: "MD01:: bad number"
« Reply #8 on: January 11, 2008, 08:51:14 PM »
Nemmind, typo in mountlist when I changed the filesystem :-) GiggleDisk mountlist works for the 4GB card :-D

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline A4000_Mad

  • Hero Member
  • *****
  • Join Date: Dec 2006
  • Posts: 1392
    • Show only replies by A4000_Mad
Re: MountDOS: "MD01:: bad number"
« Reply #9 on: April 03, 2008, 08:51:40 PM »
Quote

A4000_Mad wrote:
I'm no expert moto, but give this a go mate :-)

It is actually the mountlist of the driver CF0 which works any sized CF card on the PCMCIA slot of an A1200. I've managed the complicated task of changing 'compactflash.device' to 'scsi.device' :oops: :-D

FileSystem = l:fat95
Device = scsi.device
Unit = 0
Flags = 0
LowCyl = 0
HighCyl = 0
Surfaces = 1
BlocksPerTrack = 1
BlockSize = 512
Buffers = 20
BufMemType = 1
BootPri = 0
Stacksize = 4096
Priority = 5
GlobVec = -1
DosType = 0x46415401



Quote
motorollin wrote:

Hmm ok. So would that mountlist A4000_Mad posted work?


Yes it does 8-)



I've just used it to read both a FAT formatted 64MB and a 1GB Compact Flash card with an A4000 for the very first time :banana:

:pint:

A4000 Mad
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: MountDOS: "MD01:: bad number"
« Reply #10 on: April 03, 2008, 09:02:48 PM »
Really? I couldn't get it to work. Probably my fault :lol:

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline Thomas

Re: MountDOS: "MD01:: bad number"
« Reply #11 on: April 03, 2008, 09:32:32 PM »

Try to format the disk on the Amiga (with FAT95). I remember having a similar problem with an SD card in an USB adapter used with WinUAE. No matter what I did, the Amiga could not read it, but the PC could. After formatting it (with quick format) both the PC and the Amiga can read it.

Bye,
Thomas