Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hot-swapping ide-cf-cardreader
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Spice
n00b
n00b


Joined: 14 Mar 2004
Posts: 28
Location: Germany

PostPosted: Fri Jun 11, 2004 12:57 pm    Post subject: hot-swapping ide-cf-cardreader Reply with quote

Hi there,

I've got an ide-compactflash-cardreader which operates on the second ide-channel as master (no other devices are on the second ide-channel). My BIOS detects the CF-card as a hdd and also linux treats the CF-card as "normal" hdd (/dev/hdc). A "real" hdd and a dvd-rom are working on the first ide-channel.

This is working fine, but has one big problem: I've to shut down my linux-box to replace the CF-Card and boot again. That's getting boring. So I trie to swap the CF card while linux is running. But that causes some errors.

But let us start from scratch:
I unmount /dev/hdc and unregister the second ide-channel with hdparm -U. Then I replace the CF-card an try to reinitialize the ide-channel with hdparm -R. But this does not work properly.

So I 've tried to use the shellscripts which are offers with hdparm in the contrib-dir. But they also won't work:

Code:
excelsior dev # /sbin/idectl 1 off
excelsior dev # /sbin/idectl 1 on
                HDIO_SCAN_HWIF failed: Input/output error
excelsior dev # /sbin/idectl 1 rescan
                HDIO_SCAN_HWIF failed: Input/output error

Any ideas to get the cardreader working?

Thanks a lot...

Spice
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Sat Jun 12, 2004 9:50 pm    Post subject: Reply with quote

make sure that you have unmounted the card before unplugging, and after changing card, try running the following two commands incase they help:

Code:
touch /dev/hdc
fdisk -l /dev/hdc


and then try and mount.
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
Spice
n00b
n00b


Joined: 14 Mar 2004
Posts: 28
Location: Germany

PostPosted: Sun Jun 13, 2004 11:49 am    Post subject: Reply with quote

Hi dsd,

thanks for your answer.
I've tried these commands above, but they only works sometimes with some cf-cards. With others cards, my console get freezed while exceuting the touch command.

How does linux recognize the cf-card at startup (boot)? Is it possible to do this actions manually after linux was booting?

Thanks a lot...

Spice
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum