[SOLVED] Hard disk on internal SATA bus recognized as removable. How to change?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,634
Rep:
Hard disk on internal SATA bus recognized as removable. How to change?
This is on a Gigabyte X570 Aorus Elite with an AMD Ryzen 9 5900X 12-Core Processor. Operating systems reside on two NVME SSDs. I want to avoid an accidental "ejection" (unmounting) of the hard disk. How can I teach the system that it is not a removable disk?
I want to avoid an accidental "ejection" (unmounting) of the hard disk. How can I teach the system that it is not a removable disk?
Configure the same way now as more than two decades ago, by putting it /etc/fstab. Use the noauto mount option if perchance you wish it not to always be mounted.
Technically no. Ideally, you want to minimize opportunity for surprise failures. An example frequently encountered is booting while a USB stick forgotten about is still inserted. It is typical for a BIOS to assign names to USB sticks before internal drives. That could make your normal sda1 enumerate as sdb1 or sde1, fail to mount, and prevent a normal startup.
For mounting, the optimal way to avoid surprises is to mount by something other than device name, generally meaning either by UUID or by volume LABEL. UUIDs are always created unique. LABELs are as unique as you care to make them, meaning, among other things, you can purposely replicate volumes meant to be rotated through one particular mount point, though this latter is wholly unsuited to internal drives.
Last edited by mrmazda; 08-01-2022 at 05:58 PM.
Reason: Left out the part about cloning destroying the uniqueness of UUID creation.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,634
Original Poster
Rep:
Quote:
Originally Posted by mrmazda
Technically no. Ideally, you want to minimize opportunity for surprise failures. An example frequently encountered is booting while a USB stick forgotten about is still inserted. It is typical for a BIOS to assign names to USB sticks before internal drives. That could make your normal sda1 enumerate as sdb1 or sde1, fail to mount, and prevent a normal startup.
For mounting, the optimal way to avoid surprises is to mount by something other than device name, generally meaning either by UUID or by volume LABEL. UUIDs are always unique. LABELs are as unique as you care to make them, meaning, among other things, you can purposely replicate volumes meant to be rotated through one particular mount point, though this latter is wholly unsuited to internal drives.
There is nothing more I can say here. I have two fstab entries and the partitions are shown as removable devices in nemo file manager. And that is what you want to avoid.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,634
Original Poster
Rep:
Quote:
Originally Posted by mrmazda
Any filesystem not in use can be purposely removed by root, except for /. OP was about accidental ejection.
Sure, you can umount any partition you want. In the OP I wanted to avoid Plasma to mark /dev/sda1 as possible to eject. It still is. I want to change that.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.