You are not logged in.
Pages: 1
Topic closed
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.
Online
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
unmounting a filesystem and ejecting a device are two completely different things.
Offline
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
Online
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.
Online
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
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
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)
Offline
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
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)
Offline
Pages: 1
Topic closed