You are not logged in.

#1 2016-05-01 22:11:50

tombenko
Member
From: Balassagyarmat
Registered: 2013-08-24
Posts: 119

Eject vs. umount

Is there any difference between eject and umount? I connected a pendrive, the Caja mounted it. when I eject it, it becomes totally invisible for the system, but when I umount it, it still visible. Somehow I can't get it.

Offline

#2 2016-05-01 22:33:19

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,846
Website

Re: Eject vs. umount

I think you just answered your own question..


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2016-05-02 01:26:29

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: Eject vs. umount

unmounting a filesystem and ejecting a device are two completely different things.

Offline

#4 2016-05-02 02:08:48

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: Eject vs. umount

They are completely different, but the distinction is not as obvious for flash drives as it would be for cds or floppy disks.  When a cd or floppy is inserted, a device node is created (e.g., /dev/sr0) if that device has a filesystem on it, that filesystem can be mounted somewhere (e.g., /media/data-cd/).  If you unmount the filesystem, the contents of /media/data-cd are gone, but the device node at /dev/sr0 would still be there.  If you eject the cd/floppy, the disk is physically popped out of the machine and the filesystem is unmounted and the device node is also gone.

If you eject a flash drive, obviously it doesn't actually pop off the usb port, but as far as the OS is concerned it has been "removed" (at least until the OS rescans for devices).


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2016-05-02 12:11:26

tombenko
Member
From: Balassagyarmat
Registered: 2013-08-24
Posts: 119

Re: Eject vs. umount

WorMzy wrote:

I think you just answered your own question..

I was confused, because I thought that eject totally removes  the device, but this can't be done with a pendrive. This made me think of no difference between the in this case.

Offline

#6 2016-05-03 00:33:31

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Eject vs. umount

Some pen drives might not be "ejectable". This has to do with some information that is reported by the drive to the kernel, if you see something like 'sd w:x:y:z: [sdX] Attached SCSI removable disk' then most probably you can eject it, if it doesn't say removable eject will most probably do nothing.

Instead of eject you can try 'udisksctl power-off -b /dev/sdX'. I have found that you can still "eject" some drives that don't report to be removable without any problems, but others will do strange things.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#7 2017-09-18 10:25:25

matteoipri
Member
Registered: 2016-06-08
Posts: 17

Re: Eject vs. umount

Hi all, I am running the GNOME DE and noticed that from the File application the eject and unmount action are not discerned. They share the GUI element representing the eject symbol.
The problem I have is that once I eject a pen drive or my iPhone, I have to change the USB port to see it again because reattaching the device to the same USB port causes nothing until a reboot.
It seems like the device get blacklisted on that particular USB port.
Is this behviour normal? How can I eject a device and connect it back to same USB port without rebooting?
Thanks

Offline

#8 2017-09-18 10:37:15

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Eject vs. umount

Hi matteoipri.
In future can you please start your own thread instead of necro-bumping an old thread that isn't relevant to your issue.

Anyway, does this help...
https://bbs.archlinux.org/viewtopic.php?id=229475

Last edited by Slithery (2017-09-18 10:39:27)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#9 2017-09-18 10:56:24

matteoipri
Member
Registered: 2016-06-08
Posts: 17

Re: Eject vs. umount

Hi slithery,
Thank ou very much for your kind answer.
Yes, I'll do that next time. Just an OT question: how can I tell when a post is too old and I am necro-bumping it? I don't want to open new topics striaght without searching for the problem first...
In the meanwhile I'll study the udev wikipage and will try the solution the other users posted.

Offline

#10 2017-09-18 13:53:54

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,665

Re: Eject vs. umount

You can look at the bar above each post where you will see the date, in this case the last post was from more than a year ago.

And yes your question is different to the topic at hand.

Closing.

Last edited by V1del (2017-09-18 13:54:09)

Online

Board footer

Powered by FluxBB