Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind). |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-21-2009, 06:30 PM
|
#1
|
LQ Newbie
Registered: Nov 2005
Posts: 21
Rep:
|
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?
|
|
|
10-22-2009, 05:15 AM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,094
|
You need unmount before eject.
Try dmesg|tail to see what error it's throwing. Might need a filesystem check, or appear as mounted
|
|
|
10-22-2009, 06:44 AM
|
#3
|
LQ Newbie
Registered: Nov 2005
Posts: 21
Original Poster
Rep:
|
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:
Quote:
If the device is currently mounted, it is unmounted before ejecting.
|
and later:
Quote:
If eject determines that the device can have multiple partitions, it will attempt to unmount all mounted partitions of the device before ejecting. If an unmount fails, the program will not attempt to eject the media.
|
There are no error messages on dmesg, it seems to eject the SD card fine (as in unmount, I still need to physically remove the card), just ejects a bit too much extra stuff as well. I would like to stop it doing that other stuff (or at least stop allowing 'Disk Mounter' to eject the card).
|
|
|
All times are GMT -5. The time now is 09:22 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|