LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-24-2008, 11:53 PM   #1
hougaga
LQ Newbie
 
Registered: Oct 2007
Posts: 6

Rep: Reputation: 0
sd-ide card in 2.4.20!


Hi,everyone ,
I have a sd-ide card ,my kenerl is 2.4.25.When I plug this card in my ide plot ,the kenerl probe it as a ATA device(harddisc),but I want use it act as a removable disk ,so I can plug or remove it when I needed,but I use all kinds way to do ,but I can't set it as a removable disc.
Is everybody know what the problem is ?BTW,in WINDOWS XP ,this sd-ide card was acted as a removable disc,so I think the card should have no problem.
Thanks!
hougaga
 
Old 08-25-2008, 12:18 AM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Linux doesn't really care whether it is a removable disk or not; in either case you need to unmount the device before you physically unplug it, otherwise you may get some data corruption (some blocks not written yet, or the system is writing data while you unplug the disk).

If the device is auto-mounted when you plug it in, you just have to be sure you successfully unmount it before pulling it out. It's no different from WinDuhs really - if you pull it out without selecting the "disconnect removable media" menu (or whatever it's called) you can damage your data.
 
Old 08-26-2008, 08:24 PM   #3
hougaga
LQ Newbie
 
Registered: Oct 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for you reply,but the problem is when I use sd-ide card,if I plug or remove the media(sd card),the system will notice me the IO error like below.
fdisk -l /dev/hda
hda: dma_timer_expiry: dma status == 0x21

hda: error waiting for DMA

hda: dma timeout retry: status=0xd0 { Busy }


hda: DMA disabled

ide0: reset timed-out, status=0xd0

hda: status timeout: status=0xd0 { Busy }


hda: drive not ready for command

ide0: reset timed-out, status=0xd0

end_request: I/O error, dev 03:00 (hda), sector 0

end_request: I/O error, dev 03:00 (hda), sector 2

end_request: I/O error, dev 03:00 (hda), sector 4

end_request: I/O error, dev 03:00 (hda), sector 6

end_request: I/O error, dev 03:00 (hda), sector 0

end_request: I/O error, dev 03:00 (hda), sector 2

end_request: I/O error, dev 03:00 (hda), sector 4

end_request: I/O error, dev 03:00 (hda), sector 6

ldm_validate_partition_table(): Disk read failed.

end_request: I/O error, dev 03:00 (hda), sector 0

end_request: I/O error, dev 03:00 (hda), sector 2

end_request: I/O error, dev 03:00 (hda), sector 4

end_request: I/O error, dev 03:00 (hda), sector 6

unable to read partition table

end_request: I/O error, dev 03:00 (hda), sector 0

end_request: I/O error, dev 03:00 (hda), sector 2

end_request: I/O error, dev 03:00 (hda), sector 4

end_request: I/O error, dev 03:00 (hda), sector 6

~ $ fdisk /dev/hda
/dev/ide/host0/bus0/target0/lun0:end_request: I/O error, dev 03:00 (hda), sector 0

end_request: I/O error, dev 03:00 (hda), sector 2

end_request: I/O error, dev 03:00 (hda), sector 4

end_request: I/O error, dev 03:00 (hda), sector 6

end_request: I/O error, dev 03:00 (hda), sector 0

end_request: I/O error, dev 03:00 (hda), sector 2

end_request: I/O error, dev 03:00 (hda), sector 4

end_request: I/O error, dev 03:00 (hda), sector 6

ldm_validate_partition_table(): Disk read failed.

end_request: I/O error, dev 03:00 (hda), sector 0

end_request: I/O error, dev 03:00 (hda), sector 2

end_request: I/O error, dev 03:00 (hda), sector 4

end_request: I/O error, dev 03:00 (hda), sector 6

unable to read partition table

end_request: I/O error, dev 03:00 (hda), sector 0

end_request: I/O error, dev 03:00 (hda), sector 2

end_request: I/O error, dev 03:00 (hda), sector 4

end_request: I/O error, dev 03:00 (hda), sector 6


Unable to read /dev/hda

So the way you said maybe useful for use driver,but for this card,problem still exist.
Could you give me more advice.
Thanks a lot!
Hougaga
 
Old 08-26-2008, 10:01 PM   #4
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
I haven't used a 2.4 kernel for a very long time (>3 years).
What is the brand and model of your storage device?
Have you tried loading the scsi driver and scsi storage driver before plugging in the card? I can't remember the names anymore since I haven't used 2.4 for so long.
 
Old 08-26-2008, 11:20 PM   #5
hougaga
LQ Newbie
 
Registered: Oct 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for your reply.
I use the sd-ide card use the main IC is FC1306T,it was produced by Taiwan.In kenerl 2.6.15 we also tested,the result is the same.
The system is recognize the IDE device as a ATA device,so we needn't use the scsi driver.maybe everytime before I remove the media,insmod or rmmod driver's modules is a good ideal,but it's a very diffcult thing to seperate the IDE's driver from kenerl.
Thanks a lot
 
Old 09-15-2012, 07:48 AM   #6
fhleung
Member
 
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432

Rep: Reputation: 30
I just buy this SD to IDE device today

Do you need to install driver in order install OS to the SD card?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IDE controller card z9_87 Linux - Hardware 3 10-15-2005 10:26 AM
Which is the best raid card for ide? Sc0rian Linux - Hardware 4 01-10-2005 05:06 AM
SD card IDE interface? german Linux - Hardware 0 01-05-2005 07:56 AM
Driver installation: A-CARD AEC6280 IDE card in Mandrake 9.2 Bob Groves Linux - Hardware 1 12-02-2003 01:29 AM
ide raid card slack66 Linux - Hardware 2 07-12-2003 02:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration