Hi all
When using RPi OS Lite,
If you connect a USB Device such as an Ethernet NIC, or a Wi-Fi NIC, or anything else,
then when you're done, before you physically disconnect the USB Device from the RPi,
do you need to run any command, to tell the OS that you're disconnecting?
(like you do on Windows, before disconnecting a USB device)
Thank you
Re: On RPiOS Lite: Do I have to Run Some Command Before Disconnecting a USB Device?
only if it's a data drive, adapters should be fine.
the reason for a clean eject is to not corrupt data.
you can lsblk to see the mounted devices and sudo eject /media/device/sd* or mmcblk* for usb/sd data drives.
the reason for a clean eject is to not corrupt data.
you can lsblk to see the mounted devices and sudo eject /media/device/sd* or mmcblk* for usb/sd data drives.
Re: On RPiOS Lite: Do I have to Run Some Command Before Disconnecting a USB Device?
Thank you kerry_s
For USB Data Drives, I always do
umount /mnt/<...>
So I should run eject in addition to umount?
Or maybe instead of umount?
(and if I do it instead of umount, will it spare the need to mount it next time I physically connect the drive?)
For USB Data Drives, I always do
umount /mnt/<...>
So I should run eject in addition to umount?
Or maybe instead of umount?
(and if I do it instead of umount, will it spare the need to mount it next time I physically connect the drive?)
Re: On RPiOS Lite: Do I have to Run Some Command Before Disconnecting a USB Device?
i use umount if i leave the drive in but don't want it mounted, i use eject if i'm going to unplug drive.
lite version does not auto mount drives, i usually use udiskie(sudo apt install udiskie) then you can just run udiskie &, it'll do the work for you with the proper permissions.
lite version does not auto mount drives, i usually use udiskie(sudo apt install udiskie) then you can just run udiskie &, it'll do the work for you with the proper permissions.
Re: On RPiOS Lite: Do I have to Run Some Command Before Disconnecting a USB Device?
Thank you for this, will try it..
Oh, so eject replaces umount
I'll go and read the man about both of them,
I think I need this info..
Thank you very much
Re: On RPiOS Lite: Do I have to Run Some Command Before Disconnecting a USB Device?
eject tries to run umount for you on all mounted partitions on the drive. I usually do a umount first anyway.
Unreadable squiggle