LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > VectorLinux
User Name
Password
VectorLinux This forum is for the discussion of VectorLinux.

Notices

Reply
 
Search this Thread
Old 09-03-2006, 06:21 PM   #1
shame
Member
 
Registered: Apr 2006
Location: England
Distribution: Debian Sidux - openSUSE
Posts: 261

Rep: Reputation: 30
How to safely remove device?


I've plugged in my k800i mobile phone using the usb cable but there was no indication of any kind that anything had been plugged in, no desktop icon and nothing in storage media in konqueror.
After a bit of browsing around I found that the phone itself had been mounted as /mnt/vl-hot/sda/vol1 and the memory card was mounted as /mnt/vl-hot/sdb/vol1
Ok, so I was able to browse through the phone and copy files to and from but because there is nothing in konqueror's storage media or on the desktop I couldn't work out how to safely remove or unmount the phone and I don't want to damage it by unplugging it.
A tried a few things in the terminal but umount /mnt/vl-hot, umount/mnt/vl-hot/sda gave errors that they weren't mounted. umount /mnt/vl-hot/sda/vol1 and umount /mnt/vl-hot/sdb/vol1 didn't give any errors so I assumed that had unmounted them but the phone was saying do not unplug the phone and I could still browse the directories and see everything on the phone.
I've tried adding entries so fstab to mount sda and sdb at /mnt/sda and /mnt/sdb respectively but I get errors about unknown filesystem.
I haven't tried any other devices as yet to see if this behaviour is the same.

Can anyone help?

Vector Soho 5.1.1
kde 3.5.1

Last edited by shame; 09-03-2006 at 06:23 PM.
 
Old 09-03-2006, 06:49 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
/etc/mtab should have a list of all currently mounted filesystems
 
Old 09-03-2006, 11:59 PM   #3
shame
Member
 
Registered: Apr 2006
Location: England
Distribution: Debian Sidux - openSUSE
Posts: 261

Original Poster
Rep: Reputation: 30
This is what mtab says -
Code:
/dev/sdb1 /mnt/vl-hot/sdb/vol1 vfat rw,noexec,nosuid,nodev,uid=0,gid=100,umask=0111,dmask=0000,quiet,utf8 0 0
/dev/sda1 /mnt/vl-hot/sda/vol1 vfat rw,noexec,nosuid,nodev,uid=0,gid=100,umask=0111,dmask=0000,quiet,utf8 0 0
But doing umount /mnt/vl-hot/sda/vol1 does not unmount or safely remove the device.
I've tried adding the above lines to fstab pointing to /mnt/sda1 and /mnt/sdb1 but when I go to storage media sda1 and sdb1 are shown as unmounted if I click on them it says they are already mounted on /mnt/vl-hot/sda1/vol1 etc.
 
Old 09-04-2006, 01:17 AM   #4
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
Code:
eject /dev/sda
eject /dev/sdb
 
Old 09-04-2006, 09:34 AM   #5
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
you can kill the process if you cannot umount the filesystem,
to know which prosses you the resource, type
#fuser -m /your/file/system
 
Old 09-06-2006, 03:06 PM   #6
shame
Member
 
Registered: Apr 2006
Location: England
Distribution: Debian Sidux - openSUSE
Posts: 261

Original Poster
Rep: Reputation: 30
fuser just gives me this - /media/sda/vol1: 3014
eject/dev/sda or eject /dev/sdb gives me this
Code:
umount: /dev/sda is not in the fstab (and you are not root)
eject: unmount of `/dev/sda1' failed
sudo eject /dev/sda does work and the phone tells me it is now safe to unplug it but it's still not ideal.
The missus won't do anything that involves command line, how do I get it to work the same way as it does in suse, debian and ubuntu? ie right click on icon in konqueror > safely remove or unmount.
At the moment I cannot get an icon to appear to do this.
 
Old 09-06-2006, 09:23 PM   #7
kstan
Member
 
Registered: Sep 2004
Location: Malaysia, Johor
Distribution: Dual boot MacOS X/Ubuntu 9.10
Posts: 851

Rep: Reputation: 31
it tell you umount won't work unless u r root. About the right click issue, you can google it for add custom right click menu for kde or gnome.
 
  


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
How to remove the kernel safely? hardstyleFX Linux - General 3 05-06-2006 03:19 PM
how do I (safely) remove gnome? sunpascal Linux - Newbie 1 02-12-2006 10:24 AM
How to safely remove linux :( TRUSTpunk Linux - Newbie 11 01-07-2005 01:55 AM
How to remove old kernels safely satimis Fedora 11 08-21-2004 09:06 AM
How do I safely remove old kernels? Amerist Linux - General 4 11-02-2002 11:56 PM


All times are GMT -5. The time now is 02:31 AM.

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