View previous topic :: View next topic |
Author |
Message |
Spice n00b


Joined: 14 Mar 2004 Posts: 28 Location: Germany
|
Posted: Fri Jun 11, 2004 12:57 pm Post subject: hot-swapping ide-cf-cardreader |
|
|
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 |
|
 |
dsd Developer

Joined: 30 Mar 2003 Posts: 2162 Location: nr London
|
Posted: Sat Jun 12, 2004 9:50 pm Post subject: |
|
|
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 |
|
 |
Spice n00b


Joined: 14 Mar 2004 Posts: 28 Location: Germany
|
Posted: Sun Jun 13, 2004 11:49 am Post subject: |
|
|
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 |
|
 |
|