Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
03-06-2021, 10:36 AM
|
#1
|
Member
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 344
Rep: 
|
Question about setting boot flags ...
I noticed that on old computers it's sometimes helpful to ad a boot flag to the boot partition. When selecting the flag function initially, there are quite a few options which could be used. So I'm wondering about the following ...
... is it possible to mark a partition as "non-existent" (invisible in the file manager), to prevent anyone from accidentally storing files on that partition? And if so, which flag name/descriptor would that be? In other words, that particular partition would only become visible again if it's unmarked by Gparted or some similar application.
Thank you.
|
|
|
03-06-2021, 10:55 AM
|
#2
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
You do not mount and write files to partitions, you write files to filesystems which are residing on partitions. If a filesystem is not mounted then it is invisible and cannot be used.
|
|
|
03-06-2021, 11:20 AM
|
#3
|
Member
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 344
Original Poster
Rep: 
|
Oh, I see ..
Well, the idea came to me after a buddy of mine who's a Windows user should be that although he can only "see and use" his C:/ partition in his Windows Explorer, he can also see two additional partitions when he looks at the Windows Disk Manager. That's where you can see the system reserved as well es the system restore partitions which can't be seen anywhere else (without a terminal).
So my thinking was, if Microsoft can more or less hide partitions to prevent them from being used by accident, wouldn't it be possible to do the same thing in Linux? In Windows those two partitions exist, but can't be used. That's kinda what I was looking for.
Not possible?
|
|
|
03-06-2021, 11:34 AM
|
#4
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
You put your filesystem into /etc/fstab with 'noauto' option and it won't be mounted automatically and visible unless you mount it manually. See 'man fstab' and 'man mount', all details are there.
|
|
|
03-06-2021, 12:03 PM
|
#5
|
Member
Registered: Dec 2020
Posts: 179
Rep: 
|
Set the flag to 'diag' ?
|
|
|
03-06-2021, 05:44 PM
|
#6
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,380
|
On msdos (MBR) formatted disks there is a "hidden" atttribute as well as the boot flag for partitions - Microsoft uses both, Linux ignores them. For gpt there is a hidden attribute defined (by Microsoft) for (Windows) basic data partitions. I imagine Linux will ignore it too, but haven't tested.
|
|
|
03-07-2021, 04:21 AM
|
#7
|
Member
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 344
Original Poster
Rep: 
|
Thanks a bunch. Those comments were helpful. Have a great Sunday.
|
|
|
All times are GMT -5. The time now is 01:01 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|