LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-13-2010, 02:38 PM   #1
w00ly
Member
 
Registered: Aug 2009
Posts: 31

Rep: Reputation: 15
External drive wont dismount


I have a 100gb external USB hard drive. I downloaded about 50gb of files to it. I had transmission downloading a torrent to it but it was taking a long time so I stopped it about 2 hours ago.

I closed transmission a half hour ago and tried to dismount the drive. Now I'm getting "Writing data. To prevent data loss wait until this has finished before removing or disconnecting media". It's been sitting at this for about half an hour now and I need the drive! I have no idea what it's writing but it shouldnt be writing anything...there wasnt anything that was being transfered to/from the drive. How do I safely dismount this thing? It seems like the "safe dismount" is stuck

Basically fresh installation of 10.04. Any help whatsoever is greatly appreciated!!
 
Old 07-13-2010, 02:54 PM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,198

Rep: Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307
Use fuser to find out which program is using the device node and/or mounted directory, then kill that program.
 
Old 07-13-2010, 03:11 PM   #3
w00ly
Member
 
Registered: Aug 2009
Posts: 31

Original Poster
Rep: Reputation: 15
Thanks I tried fuser -km /dev/sdd and fuser -km /media/Backup HardDrive and it doesnt give any errors but the drive still isnt dismounted :\ I tried umount -f /dev/sdd and /media/Backup HardDrive but that says it's not mounted. However the Drive Utility says it's still mounted and of course the "Writing Data" box is still "working"
 
Old 07-13-2010, 03:34 PM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
We don't know how your external drive is formatted (so just how resilient the filesystem might be). But you interrupted your torrent anyway. I admit that I do not know much about torrents.

If you can't close the "Writing data" box, then I'd just pull the drive plug. But I tend to be reckless, and recover later (or remember not to do that again). Maybe you should not do that

You could run a ps -Al and then kill the process you think is responsible for the "Writing data" box. Then unmount the drive.

You could issue a sync and then pull the plug. That should ensure the external filesystem is closed properly.

You could just logout (all jobs you are running should be killed), then back in again. Maybe things look better?

Failing all the above, you could just shutdown: All processes should be killed, so disks can be unmounted cleanly.
I hesitate to recommend shutdown as it's a "windows" ["Did you try rebooting?"] non-solution, but sometimes needs must if time is short and the information that might be lost does not matter.

You might sensibly consider this post for a while, in case someone else has a better idea, and posts it here.

Please let us know what you eventually decided to do, and what happened.

HTH
 
Old 07-13-2010, 03:58 PM   #5
w00ly
Member
 
Registered: Aug 2009
Posts: 31

Original Poster
Rep: Reputation: 15
Someone in another forum suggested I shutdown. So I use the shutdown button in gnome but it closed all programs and froze at the wallpaper. I was still able to ssh so I tried killing process like you suggested, but no luck. Tried sync but it froze. Finally tried shutdown and it turned off. Restarted and it appears all data is there. Unfortunately for some reason I cant seem to access the drive in windows now. Looks like something is corrupted! Any suggestions on a fix for that?
 
Old 07-13-2010, 04:31 PM   #6
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
Unfortunately for some reason I cant seem to access the drive in windows now. Looks like something is corrupted! Any suggestions on a fix for that?
Quote:
Originally Posted by tredegar View Post
We don't know how your external drive is formatted
So, are you going to tell us?
 
Old 07-13-2010, 05:13 PM   #7
w00ly
Member
 
Registered: Aug 2009
Posts: 31

Original Poster
Rep: Reputation: 15
It's formatted as NTFS. Only the original linux system that crashed can read from it though.

My windows PC also has linux on it and no matter which OS I use the drive makes a weird clicking sound :\ What's also weird is the drive has 2 USB connections, one for data and one for power, but the linux PC only needs the data USB connected to read the drive, while the windows PC needs both connected to attempt to power (can feel the disk spinning but again makes the clicking noise and doesnt read).

This is the drive http://www.amazon.com/LaCie-All-Terr.../dp/B000CR7RW0
 
Old 07-13-2010, 05:34 PM   #8
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Getting information out of you is as easy as squeezing blood from a stone:
Quote:
It's formatted as NTFS. Only the original linux system that crashed can read from it though.
Thank you, that's a start.
Quote:
What's also weird is the drive has 2 USB connections, one for data and one for power, but the linux PC only needs the data USB connected to read the drive, while the windows PC needs both connected to attempt to power (can feel the disk spinning but again makes the clicking noise and doesnt read).
This is more interesting, and I wish you had mentioned it earlier.

You need to connect both the USB plugs. Both are used for power, one for data.

USB interfaces are limited (part HW, part software AFAIK) as to how much power they are allowed to supply to a device. If your device says it needs both plugged in, then it is very foolish of you only to plug one in even if that appears to work most of the time.

Meanwhile, if linux will read the drive, use linux to make a backup of your data to another device, while you can.

Then, after you have plugged in both cables, I suggest you use windows to repair the NTFS filesystem, because windows should know more about NTFS than linux does (but don't count on it).
 
Old 07-13-2010, 05:52 PM   #9
w00ly
Member
 
Registered: Aug 2009
Posts: 31

Original Poster
Rep: Reputation: 15
Actually according to the manual it should be fine.
Quote:
To connect the interface cable:
1. Connect one end of the interface cable to your computer.
2. Connect connect the other end of the interface cable to the
matching port on the LaCie hard disk.
3. After a few seconds, the hard disk will mount on your computer
and appear in My Computer (Windows users) or on your desktop
(Mac users).
NOTE: In the event that the USB bus on your computer does not
provide the necessary power to operate your LaCie hard disk, use
the included USB power cable to draw additional power from your
computer to power the hard disk.
I dont know if I can get the windows PC to even work with it at all to repair the FS though. I was trying avoid backing up all these files too but I guess there's no other option.
 
Old 07-14-2010, 12:30 AM   #10
jtarin
Member
 
Registered: May 2010
Location: Vladivostok, Russia
Distribution: LinuxMint 17
Posts: 104

Rep: Reputation: 23
I somehow am getting the impression that you are trying all this remotely, as from another box? Correct or not?
 
  


Reply


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
External HD wont dismount w00ly Ubuntu 5 07-13-2010 04:23 PM
replaced DLT drive caused Sol 9 to dismount /d02, dsironi Solaris / OpenSolaris 0 10-30-2009 04:01 PM
ubuntu installed on external hard drive, can't startup without external hard drive. Vanostaajen Linux - Software 23 01-20-2009 09:59 AM
CD Dismount error TuxToaster Fedora - Installation 3 09-19-2006 10:36 PM
external enclosure for an internal hard drive vs external USB hard drive powah Linux - Hardware 1 03-10-2006 09:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:23 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
Open Source Consulting | Domain Registration