LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
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

Reply
 
Search this Thread
Old 10-21-2009, 06:30 PM   #1
gringer
LQ Newbie
 
Registered: Nov 2005
Posts: 19

Rep: Reputation: 0
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?
 
Old 10-22-2009, 05:15 AM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,610

Rep: Reputation: 583Reputation: 583Reputation: 583Reputation: 583Reputation: 583Reputation: 583
You need unmount before eject.

Try dmesg|tail to see what error it's throwing. Might need a filesystem check, or appear as mounted
 
Old 10-22-2009, 06:44 AM   #3
gringer
LQ Newbie
 
Registered: Nov 2005
Posts: 19

Original Poster
Rep: Reputation: 0
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).
 
  


Reply

Tags
eeepc, eject, gnome, man, mount, sd, unmount


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
Mount / unmount / ejecting CD/DVD makes LAN disconnect & reconnect...! GrapefruiTgirl Slackware 9 03-06-2007 11:48 PM
problems ejecting CDROM in Debian carspidey Linux - Laptop and Netbook 3 03-24-2006 01:19 AM
gnome-settings-daemon prevents scim working on Emacs realwhz Debian 0 03-02-2006 08:10 AM
gnome update prevents logging in stoughto Linux - Laptop and Netbook 0 08-15-2004 05:06 PM
GNOME prevents access to XSL files andymadigan Debian 2 08-03-2004 09:35 PM


All times are GMT -5. The time now is 07:43 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration