Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm experiencing an issue when using the "Safely Remove" option to remove my 1TB external HDD from the Unity Launcher. Not every time, but occasionally my screen will go black and display LARGE amounts of text information (which I obviously cannot screen cap). The jist of the info displayed is that unmounting or 'safely removing' the drive causes a kernel panic. Is there a Command Line command to remove mounted drives, or at least one that would show me some sort of error output when the drive is removed? I'm trying to narrow down the cause. I could be imagining this, but it seems to happen most often when I have other programs running when I remove the drive (i.e. Firefox, Transmission). Please note that my external drive is not in use when I attempt to remove it and it is not being used either by Firefox or Transmission at these times. Any help would be appreciated.

share|improve this question
    
Have you tried with just sudo umount /dev/<device>? –  Fabio Oct 19 '11 at 16:09
    
Is that the full command? I usually find my mounted drives under /media/ not /dev/ –  Shawn Oct 19 '11 at 16:15
1  
Related: askubuntu.com/questions/67741/… –  Oli Oct 19 '11 at 21:29
    
When you experience a kernel panic, cleanly restart the computer by holding down the key SysRq key and typing REISUB. –  Anonymous Nov 15 '11 at 17:18

3 Answers 3

up vote 2 down vote accepted

Hopefully I'm posting this in the right spot, but I wanted t to thank everyone for their answers and say that I was able to solve this issue by installing ejecter from the repositories.

I turned off mounted drives in the Unity settings and now use ejecter to remove the external HDD. All seems well now and I just thought I'd share this workaround with anyone else who might have a similar issue.

share|improve this answer
    
This has been fixed in linux (3.0.0-13.22) oneiric-proposed, should be seen in main shortly. Tracking bug bugs.launchpad.net/ubuntu/+source/linux/+bug/868628 orig specific bug bugs.launchpad.net/ubuntu/+source/linux/+bug/844957 –  doug Nov 26 '11 at 17:56

Very unlikely.

No matter how you unmount your drive, in the end the kernel will be responsible for the actual hardware; since it panics from the user interface, it will most likely panic from the command line, too.

Your very best option would be to follow the instructions at How can I get a Kernel Core Dump and post the core dump to the ubuntu kernel maintainers.

Your second best option would be to try to "single step" the unmount process from a root terminal:

  1. Flush: sync
  2. Remount read-only: mount -o remount,ro /media/someDrive
  3. Unmount.

Then see at which step it crashes and retry the same without step 1 but with a manual read-only mount.

The most trivial thing to do is however confirm if your TB Drive is in need of a fsck. Note that if it is NTFS-formatted from Windows, the linux fsck can only flag it for check under windows because the real check can't be implemented in free software due to some proprietary reasons.

On a side note, generally external drives don't get mounted with FUSE; if there is a driver available, you could mount it with FUSE and only the user mode filesystem would crash leaving the remainder of the system alive but I cannot guarantee anything in that direction.

share|improve this answer
    
OK, thanks! I'll have to find someone with Windows installed and try the fsck. I just removed Windows from the last computer in our house that was using it. –  Shawn Oct 19 '11 at 16:55

sudo umount /media/<> works for me. (I had the same problem in Linux Mint 12.)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.