LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 04-12-2011, 10:35 PM   #1
gustav521
LQ Newbie
 
Registered: Apr 2011
Distribution: Ubuntu 10.04 "Lucid"
Posts: 17

Rep: Reputation: 0
Ubuntu 10.04 Desktop: safely removing ext hdd


Cannot safely remove Western Digital 2TB ext hdd. When I right click on drive to unmount, it says: "Unable to stop drive, This file cannot be stopped" Anyone know how to unmount, maybe using the terminal??
Thanks. -gustav521
 
Old 04-12-2011, 10:47 PM   #2
EDDY1
Guru
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,084

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
Is it the drive containing OS?
 
Old 04-12-2011, 11:25 PM   #3
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,229

Rep: Reputation: 286Reputation: 286Reputation: 286
If the 2TB drive does not contain the OS, there may be some program that is accessing files on the drive. You may need to stop that program first so you can then unmount the drive.
Have you tried unmounting the drive with the umount command? You may need to use sudo for this depending on the permissions for the drive.
If you still have problems, post the output of
Code:
sudo fdisk -l
And tell us which partition has the OS, and which partition(s) are on the drive you wish to unmount.

Last edited by tommcd; 04-12-2011 at 11:26 PM.
 
1 members found this post helpful.
Old 04-13-2011, 11:19 AM   #4
gustav521
LQ Newbie
 
Registered: Apr 2011
Distribution: Ubuntu 10.04 "Lucid"
Posts: 17

Original Poster
Rep: Reputation: 0
Hello everyone! I now remember that I was coping files to this ext hdd, when I inadvertently turned off the main pc! The ext hdd was still working at that time. How do I find the process accessing the hdd and turn it off?? Thank you! -gustav521
 
Old 04-13-2011, 02:03 PM   #5
gustav521
LQ Newbie
 
Registered: Apr 2011
Distribution: Ubuntu 10.04 "Lucid"
Posts: 17

Original Poster
Rep: Reputation: 0
Here is the output using mount:

~$ mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/william/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=william)
/dev/sdb1 on /media/Elements type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)

and using sudo fdisk -l :

Disk /dev/sda: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000357c0

Device Boot Start End Blocks Id System
/dev/sda1 * 1 30166 242304000 83 Linux
/dev/sda2 30166 30516 2810881 5 Extended
/dev/sda5 30166 30516 2810880 82 Linux swap / Solaris

Disk /dev/sdb: 2000.4 GB, 2000396746752 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00020fc3

Device Boot Start End Blocks Id System
/dev/sdb1 1 243202 1953511424 7 HPFS/NTFS

What can I do?? Thank you! -gustav521
 
Old 04-13-2011, 02:52 PM   #6
gustav521
LQ Newbie
 
Registered: Apr 2011
Distribution: Ubuntu 10.04 "Lucid"
Posts: 17

Original Poster
Rep: Reputation: 0
I have now used: sudo umount /dev/sdb1 ,but does that properly umount the drive?? Thank you -gustav521
 
Old 04-13-2011, 04:25 PM   #7
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,177

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
I believe that should do it.
 
Old 04-13-2011, 05:12 PM   #8
gustav521
LQ Newbie
 
Registered: Apr 2011
Distribution: Ubuntu 10.04 "Lucid"
Posts: 17

Original Poster
Rep: Reputation: 0
Thank you "EDDY1", "tommcd", and "widget" for all your help! That


solves the problem! Next, I will try to compile audacity 1.2.6 for

Ubuntu 10.04 via a new tread. Hope you can help there! Thank you.


-gustav521
 
  


Reply

Tags
umount


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
Ubuntu LiveCD from ext. HDD alongside Windows Owndapwn Linux - Newbie 18 02-20-2011 04:24 AM
LVM - removing a physical volume safely karnaf Linux - General 4 08-09-2010 02:47 PM
On removing safely Suse Linux 9.3 sfzab Suse/Novell 4 04-16-2006 08:30 PM
Removing safely Suse Linux 9.3 sfzab Suse/Novell 4 04-16-2006 06:59 PM
Safely removing ext hdd nanoprobe Linux - Hardware 1 07-24-2005 07:34 PM


All times are GMT -5. The time now is 11:54 PM.

Main Menu
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