Jump to content

Photo

Ejecting media


  • Please log in to reply
17 replies to this topic

#1 michmanbiker

michmanbiker

    Member

  • Members
  • 61 posts
  • LocationMontreal, Quebec, Canada

Posted 08 August 2017 - 11:15 PM

Hello, Whenever I try to eject my phone or a USB drive using pcmanfm, I get an error message saying i do not have the permission to do so.

 

Do I have to launch pcmanfm as sudo to be able to do so? Is there an easier way to do it?

 

Thanks,

 

Michel





A big thank you to everyone who contributes to Bodhi Linux


#2 sef

sef

    Bodhi Builder Wizard

  • Developer
  • 306 posts
  • LocationATL

Posted 09 August 2017 - 01:11 AM

You might want to try Charles' suggestion in this other Bodhi forum post.


Nothing is as simple as it seems at first, or as hopeless as it seems in the middle, or as finished as it seems in the end.

 

"That's not how the force works..."

 

Forum Rules


#3 michmanbiker

michmanbiker

    Member

  • Members
  • 61 posts
  • LocationMontreal, Quebec, Canada

Posted 09 August 2017 - 03:12 AM

Does not work for me. I also tried changing settings in the setting panel / files / places. Still no unmount! I like pcmanfm its small and nimble but i might have to choose another one. What works well with Bodhi?



#4 DOOMguy

DOOMguy

    Member

  • Members
  • 163 posts

Posted 09 August 2017 - 09:30 AM

commands I find useful for ejecting media: df -h will list devices e.g. /dev/sdb2 /dev/sdc1 and so on

 

But I don't use gui a lot. If I don't have pcmanfm open, I have places, which shows me the devices on my desktop. I eject with umount /dev/sdb2 followed by eject /dev/sdb or eject from the desktop, again in places, with that little arrow emblem. I use thunar too; the desktop/place icons-pcmanfm-terminology combo works well for my habits.

 

The terminal would inform me if the device is in use, and I cannot unmount. Perhaps a job is running in the background, or I have another window looking at files in that device--either one would prevent unmount and eject from taking place. Maybe you haven't told us what other things are going on that prevent you from doing so. It may not be a permissions thing, in the first place. And you can stay with pcmanfm, like the rest of us :)


Unsolicited advice for learning linux, that won't cost you anything


#5 Sprinterdriver

Sprinterdriver

    Member

  • Members
  • 11 posts

Posted 12 August 2017 - 10:11 PM

Hi guys.

 

I'm sorry if I hijacks the thread, but my question should be relevant still.

 

In other distros, the usb pen drives is symbolized by a temporarly desktop icon. If you want to eject the media, then right click on that icon. In Bodhi Linux, that doesn't work because I doesn't see any desktop icon appear - but I still have normal access to the contents of the usb stick.

 

Is there other ways to eject usb drives, e.g. from within PCManFM ?

 

I'm still a Linux newbie, so here is the commands and outputs from my terminal when ejecting an usb drive (thanks DOOMguy)

sprinterdriver@TravelMate:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            234M     0  234M   0% /dev
tmpfs            50M  2,8M   48M   6% /run
/dev/sda2        14G  3,2G  9,4G  26% /
tmpfs           250M  156K  250M   1% /dev/shm
tmpfs           5,0M  4,0K  5,0M   1% /run/lock
tmpfs           250M     0  250M   0% /sys/fs/cgroup
/dev/sda5       2,5G  3,8M  2,4G   1% /tmp
/dev/sda6       5,6G  945M  4,2G  19% /var
/dev/sda7        32G   40M   30G   1% /home
/dev/sda1       734M   45M  636M   7% /boot
tmpfs            50M   76K   50M   1% /run/user/1000
/dev/sdb1       7,3G  2,6G  4,7G  36% /media/K_CLAS
sprinterdriver@TravelMate:~$ umount /dev/sdb1
sprinterdriver@TravelMate:~$ eject /dev/sdb
eject: unable to open `/dev/sdb'
sprinterdriver@TravelMate:~$ eject /dev/sdb1
eject: unable to open `/dev/sdb'
sprinterdriver@TravelMate:~$ sudo eject /dev/sdb1
[sudo] password for sprinterdriver:
sprinterdriver@TravelMate:~$



#6 michmanbiker

michmanbiker

    Member

  • Members
  • 61 posts
  • LocationMontreal, Quebec, Canada

Posted 12 August 2017 - 11:29 PM

Yes within PCmanfm the USB drive will be shown in the left panel with an arrow next to it. Normally by clicking the arrow you will "eject" the drive. My problem is that when I do that I get an error message.

 

Let me know if it works for you.

 

Michel



#7 Sprinterdriver

Sprinterdriver

    Member

  • Members
  • 11 posts

Posted 13 August 2017 - 11:05 AM

Hi. I doesn't find any arrow (K_clas is the name of the volume on the usb pen drive).

shot-2017-08-13-media-folder.png

 

Nor doesn't the right click menu (on the K_clas icon) offer any choice to unmount (print screen feature refuses to store any image as long as the right click menu is visible).



#8 michmanbiker

michmanbiker

    Member

  • Members
  • 61 posts
  • LocationMontreal, Quebec, Canada

Posted 13 August 2017 - 04:28 PM

Under View - Side pane make sure you have selected "Places". Or Just click down the arrow next to "Directory Tree" and select "Places"



#9 Sprinterdriver

Sprinterdriver

    Member

  • Members
  • 11 posts

Posted 14 August 2017 - 08:02 PM

Under View - Side pane make sure you have selected "Places". Or Just click down the arrow next to "Directory Tree" and select "Places"

Thank you  :)

 

 

[edit]

Now I also receive same error as OP mention in first post. At least terminal/sudo always works.



#10 DOOMguy

DOOMguy

    Member

  • Members
  • 163 posts

Posted 15 August 2017 - 01:24 PM

Let's get back to the original question, before it became a PCmanfm thread. There is a simpler way, called places. it lets you know when a device can be ejected; or unmounted first. Perhaps you were looking for something like this, with a terminal next to it to see what needs special attention.

 

The image shows "eject" but other times it would show "unmount".


Unsolicited advice for learning linux, that won't cost you anything


#11 michmanbiker

michmanbiker

    Member

  • Members
  • 61 posts
  • LocationMontreal, Quebec, Canada

Posted 15 August 2017 - 09:35 PM

Let's get back to the original question, before it became a PCmanfm thread. There is a simpler way, called places. it lets you know when a device can be ejected; or unmounted first. Perhaps you were looking for something like this, with a terminal next to it to see what needs special attention.

 

The image shows "eject" but other times it would show "unmount".

Same result. No authorization to eject media!



#12 Charles@Bodhi

Charles@Bodhi

    Old Faithful

  • Moderators
  • 4511 posts
  • LocationZeist, The Netherlands

Posted 15 August 2017 - 10:05 PM

Check your /media folder to see where the mountpoint is for the device. Maybe you should modify the ownership of the subfolder /media/username if this mountpoint is in that folder.

The error is about permissions after all.

 

Enjoy,

Charles



#13 DOOMguy

DOOMguy

    Member

  • Members
  • 163 posts

Posted 16 August 2017 - 02:14 AM

all i can say is


Unsolicited advice for learning linux, that won't cost you anything


#14 sef

sef

    Bodhi Builder Wizard

  • Developer
  • 306 posts
  • LocationATL

Posted Yesterday, 11:25 AM

I don't want to send things flying into outer space here, but if you wanted to install nemo and see if that will do what you're asking, you could install it like this --

sudo apt-get install --no-install-recommends nemo

Only reason I mention it is because pcmanfm seems to be giving you lots of heartache. I use nemo with very few problems.


Nothing is as simple as it seems at first, or as hopeless as it seems in the middle, or as finished as it seems in the end.

 

"That's not how the force works..."

 

Forum Rules


#15 michmanbiker

michmanbiker

    Member

  • Members
  • 61 posts
  • LocationMontreal, Quebec, Canada

Posted Yesterday, 07:29 PM

changed the permissions. once I insert the usb, the permissions are changed and I am not allowed to eject the media. I even formated the drive using gparted and still, I cannot eject it!



#16 michmanbiker

michmanbiker

    Member

  • Members
  • 61 posts
  • LocationMontreal, Quebec, Canada

Posted Yesterday, 07:34 PM

Same issue with nemo  :wacko:  :wacko:  :wacko: why is it that the device is always owned by root?



#17 DOOMguy

DOOMguy

    Member

  • Members
  • 163 posts

Posted Yesterday, 07:42 PM

@sef,

 

sef, no you did not send the thread to outer space, but I am hoping this other thread will plant it back where it belongs


Unsolicited advice for learning linux, that won't cost you anything


#18 michmanbiker

michmanbiker

    Member

  • Members
  • 61 posts
  • LocationMontreal, Quebec, Canada

Posted Yesterday, 07:59 PM

NB nemo screws my desktop. It removes the wallpaper, makes icon appear and removes conky! I uninstalled it. pcmanfm is really fine I think.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users