I am experimenting with a boot setup for an external drive. Most of the time, the operation ends up including OSes from my SSD (which I don't want) or messing the boot configuration of my internal SSD, which is an extra work.
To be extra safe, I just want to eject my internal SSD to prevent this from happening again. Disassembling my laptop to unplug my internal SSD manually is a lot of work.
Is there any way to eject my internal SSD in Ubuntu? I mean commands that would do "Safely Remove Hardware" kind of eject, not just unmounting them.
I have tried using eject
, udisksctl
, udisks
, hdparm
but it seems that none of these works for internal SSD, and /sys/block/nvme0n1/device/delete
doesn't even exist
My internal SSD device path is /dev/nvme0n1
EDIT 1:
I am using Ubuntu Live CD to do this.
Another use case might be:
- Doing things (even stupid ones) on a live CD and have great confidence that anything you do there (including installing GRUB for another device) wont affect the internal SSD of the device you're using.