LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 03-06-2021, 10:36 AM   #1
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 344

Rep: Reputation: Disabled
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.
 
Old 03-06-2021, 10:55 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
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.
 
Old 03-06-2021, 11:20 AM   #3
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 344

Original Poster
Rep: Reputation: Disabled
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?
 
Old 03-06-2021, 11:34 AM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
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.
 
Old 03-06-2021, 12:03 PM   #5
leclerc78
Member
 
Registered: Dec 2020
Posts: 179

Rep: Reputation: Disabled
Set the flag to 'diag' ?
 
Old 03-06-2021, 05:44 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,380

Rep: Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190
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.
 
Old 03-07-2021, 04:21 AM   #7
LinWinux
Member
 
Registered: May 2019
Location: Germany
Distribution: MX Linux & Linux Mint XFCE
Posts: 344

Original Poster
Rep: Reputation: Disabled
Thanks a bunch. Those comments were helpful. Have a great Sunday.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Setting flags Debian init.d scripts kamaradski1 Linux - Newbie 3 12-26-2011 02:36 PM
Setting up global USE flags mrmnemo Gentoo 7 09-25-2011 02:15 PM
[SOLVED] Setting USE flags advice mrmnemo Gentoo 3 06-22-2011 05:41 PM
Optimizing flags compiling question wrc1944 Linux - Newbie 14 08-13-2002 09:55 AM
Compiling KDE 3.0 w/ multiple architecture flags (quick and easy question)? MatMan5959 Linux - Software 4 05-31-2002 01:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration