Ejecting an SD card prevents remounting (eee PC, gnome-mount, Debian system)
I have a small problem with ejecting an SD card on my eee PC (using gnome 'Disk Mounter'). When I eject, the card unmounts, then the visual representation disappears from the screen. So far, so good.
However, if I remove the card, then later want to remount it, I can't. Nothing appears in dmesg to indicate that the card has been noticed, and nothing appears in the taskbar.
When I unmount through nautilis (instead of eject), things work properly (i.e. I can remount a removed, then reinserted card), but the unmount option doesn't appear in the 'Disk Mounter' context menu.
So, I think I need to do one of the two following things:
1) disable eject functionality for SD cards (so unmount is the only available option)
2) stop eject from removing whatever software stuff is needed to recognise the card
A diff of lsmod before and after the remove suggests *something* is happening after the eject, but I can't figure out what:
diff -u modules.txt modules2.txt
--- modules.txt 2009-10-22 11:15:29.378436056 +1300
+++ modules2.txt 2009-10-22 11:15:47.442435947 +1300
@@ -42,17 +42,17 @@
evdev 8028 21
button 5060 0
processor 34560 1
-ext4 197204 2
+ext4 197204 1
mbcache 6924 1 ext4
jbd2 50156 1 ext4
crc16 1760 1 ext4
-sd_mod 28740 4
+sd_mod 28740 2
crc_t10dif 1632 1 sd_mod
ata_generic 4340 0
ide_pci_generic 3632 0
ide_core 87940 1 ide_pci_generic
ahci 30068 0
-usb_storage 48564 1
+usb_storage 48564 0
ata_piix 20848 1
uhci_hcd 19136 0
libata 151044 3 ata_generic,ahci,ata_piix
How can I make the eject process reversible?
You need unmount before eject.
Try dmesg|tail to see what error it's throwing. Might need a filesystem check, or appear as mounted
The eject command will unmount a mounted disk before ejecting. If the disk can't be unmounted, then the eject won't happen. From the eject man page:
|All times are GMT -5. The time now is 09:30 AM.|