Re: Removing CF from IDE Bus



MJ,

If you have problem with removable disks as well then there is very little
that I can help you with :-(

Try making your test application that when called can eject, remove/stop all
drivers that make a problem.

If you can make this then you can concentrate on detecting CF removal, if
you can't do this then it is useless to try to figure out if CF is there or
not.

Regards,
Slobodan


"MJ" <MJ@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CC8959F8-A4F9-4C5A-A65A-2F768B8C4CFC@xxxxxxxxxxxxxxxx
> We have had this problem with CF marked as removable and fixed (we have
> the
> utility from SanDisk to change it).
>
> "Slobodan Brcin (eMVP)" wrote:
>
>> MJ,
>>
>> Let me ask again, Have you tried this on disks marked as removable?
>>
>> Regards,
>> Slobodan
>>
>>
>> "MJ" <MJ@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:771236F4-0830-4584-BF7A-05F553AA043C@xxxxxxxxxxxxxxxx
>> > Dave and Slobodan,
>> > Sorry I haven't gotten back to you, I've been travelling.
>> >
>> > I appreciate your input, but I don't think it will solve the problem
>> > that
>> > we
>> > have.
>> >
>> > The main problem is that the user could remove the CF whenever they
>> > want
>> > (even if we tell them not to), and we would like to be able to
>> > gracefully
>> > recover from that event. If we have a FILE* open on the CF, and they
>> > remove
>> > it, then the next time we try to access it, the system will hang.
>> > Similarly,
>> > if we are in explorer, the card is removed, and you try to open that
>> > drive
>> > through explorer, the system will hang forever. Is there any way we
>> > can
>> > occasionally check if the disk is still there, or fail accessing the
>> > disk
>> > without causing the system to hang?
>> >
>> > Thanks!
>> > MJ
>> >
>> > "Dave August" wrote:
>> >
>> >> No Problem Slobodan,
>> >>
>> >> I guess that the CF designers figured that as long as they had all
>> >> these
>> >> 'smarts' in the card they'd do more with it and wanted it to directly
>> >> plug
>> >> into the IDE cable.
>> >> BUT IMHO they really screwed this up.There should have been a seperate
>> >> set
>> >> of I/O pins for IDE mode, and making the RESET pin be reset for either
>> >> mode
>> >> was BIG mistake, since PCMCIA reset is active HIGH.
>> >> And yes this is why the USB adapters work, they have their own micro
>> >> and
>> >> can
>> >> do things however they please.
>> >>
>> >> FWIW my preferd mode when building embedded controllers is to
>> >> electrically
>> >> use the CF in PCMCIA mode so I can use hot swap, but just use the IO
>> >> registers and talk to it like it's in IDE mode, since the first 8
>> >> registers
>> >> are EXACTLY the same. Most embedded things can't afford the 12 address
>> >> bits
>> >> and I just use sequential access. Of course my hadrware takes into
>> >> account,
>> >> RESET and the other goofy things.
>> >>
>> >> Dave
>> >>
>> >>
>> >> "Slobodan Brcin (eMVP)" <sbrcin@xxxxxx> wrote in message
>> >> news:%239f8wMxLFHA.732@xxxxxxxxxxxxxxxxxxxxxxx
>> >> > Thanks Dave,
>> >> >
>> >> > I see now what was my illusion.
>> >> > I was under impression that IDE to CF adapter would contain some
>> >> > microcontroller that separated CF from IDE bus. And since you are
>> >> > saying
>> >> > that CF is connected directly to IDE cable I see problem in my
>> >> > reasoning.
>> >> >
>> >> > Thanks again,
>> >> > Slobodan
>> >> >
>> >> > PS:
>> >> > Beside having controler on IDE cable would be a little strange now
>> >> > when
>> >> > I
>> >> > think about it better :-)
>> >> >
>> >>
>> >>
>> >>
>>
>>
>>


.



Relevant Pages

  • Bonnie++ with 1024k stripe SW/RAID5 causes kernel to goto D-state
    ... I use a RAID 5 with 1024k stripe which works fine with many optimizations, but if I just boot the system and run bonnie++ on it without applying the optimizations, it will hang in d-state. ... # Define DISKS. ... echo "Setting nr_requests to 512 KiB" ...
    (Linux-Kernel)
  • W2K3 SP1 CHKDSK hangs
    ... those 4 disks are drive E:\ ... I was able to initiate a check disk on drive C:\ and it said to reboot after ... some explorer.exe problems where windows would hang. ...
    (microsoft.public.windows.server.general)
  • Re: What to do with old SuSE Media?
    ... Depending on your use you may want to hang onto the old disks. ... use is at all business at some point in time you may need to reserrect ...
    (alt.os.linux.suse)
  • Re: Q. about Fibro vs CFS
    ... seriously - yes you do - but it's worth it to winnow down to an answer. ... hang in there ... Paul T. Holland wrote: ... Did you know that nicotine can be harmful to the disks in your back ...
    (alt.med.fibromyalgia)
  • Re: Windows Explorer Replacement Recommendations
    ... >> What are people using as a Windows Explorer replacement? ... The makers of both Ztree and Total Commander ... local disks attached to the system at execution time and keep the info ... any string of characters with any others, to insert strings at desired ...
    (microsoft.public.win2000.file_system)