LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-13-2021, 07:59 PM   #1
jan128
Member
 
Registered: Nov 2020
Posts: 201

Rep: Reputation: Disabled
Disks - can it mount dynamically?


I understand that Disks can be optioned to mount device on boot / start.

How can I use Disks or other application to change mount at "run time" ?

I am not that comfortable messing with fstab.

Cheers
 
Old 02-13-2021, 08:27 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
Quote:
Originally Posted by jan128 View Post
I understand that Disks can be optioned to mount device on boot / start.

How can I use Disks or other application to change mount at "run time" ?

I am not that comfortable messing with fstab.

Cheers
Yes disks can be mounted dynamically, this is what occurs when you attach a USB drive.

I believe the best way to handle this is using the command line and editing fstab.
 
Old 02-13-2021, 11:22 PM   #3
jan128
Member
 
Registered: Nov 2020
Posts: 201

Original Poster
Rep: Reputation: Disabled
Debian versus Ubuntu ?

Yes, I did read "how to choose distribution...

I am totally flustered with the latest Ubuntu 20.04.2

Can anybody point out the major differences between Debian and Ubuntu?
( I rather switch then fight...)

I need RELIABLE OS to write C/C++ code - run IDE likes Eclipse and QtCreator.
I could careless for social media applications.
I also like open forum with reasonable participation.

Ubuntu is NOT open forum - it is "privilege" to post there...

So is Debian a good choice ?
 
Old 02-14-2021, 03:47 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,682
Blog Entries: 19

Rep: Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492
I used to run Debian and liked it very much. Ubuntu was based on it, so Debian is more mainstream. It comes in three varieties, Stable, Testing and Unstable, so you can choose the degree of software novelty you feel most at home with. But Debian now uses systemd, which a lot of people here hate. If you want a Debian variant that uses sysvinit, there is Devuan.
 
Old 02-14-2021, 05:54 AM   #5
crajor
Member
 
Registered: Mar 2019
Location: Akron, Ohio
Distribution: PCLinuxOS 2020
Posts: 91
Blog Entries: 4

Rep: Reputation: Disabled
Quote:
Can anybody point out the major differences between Debian and Ubuntu?
( I rather switch then fight...)

I need RELIABLE OS to write C/C++ code - run IDE likes Eclipse and QtCreator.
I could careless for social media applications.
I also like open forum with reasonable participation.

Ubuntu is NOT open forum - it is "privilege" to post there...
Hazel described the situation pretty well. However, Ubuntu is now pretty much a resource hog.
Older hardware? Try Xubuntu (XFCE WM, I have used before with much better performance on my older hardware.) or Lubuntu (LXDE WM). If hardware is the issue, These may be better options than Debian.
Want real lean and mean? try bodhi (used happily for several years)

Last edited by crajor; 02-14-2021 at 05:58 AM. Reason: trying to use quote in quick reply
 
Old 02-14-2021, 06:09 AM   #6
crajor
Member
 
Registered: Mar 2019
Location: Akron, Ohio
Distribution: PCLinuxOS 2020
Posts: 91
Blog Entries: 4

Rep: Reputation: Disabled
As to the original question, working in fstab can be scary at first, but it is not too hard to become knowing about it. Most distros now set up drives so accessible (if during install a drive is seen, it is configured to be mounted so you can access with the file manager.)Did your install not do this? Trying to mount a DVD drive? Working with the man pages for mount and fstab can give you the info that you will need to your specific issue.
 
Old 02-14-2021, 06:26 AM   #7
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,682
Blog Entries: 19

Rep: Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492
Editing existing lines in fstab is more frightening nowadays because they use UUIDs instead of device names and it makes the whole thing look more difficult and obscure. Adding lines is easier because you can use the device names or your own labels, which is what I do.

When I have to edit any file in /etc, I always start by making a copy with the .orig suffix. That way, if my edited version (or any subsequent one) doesn't work, I can always get back to what the distro's installer provided. Also, it allows me to see at a glance which files I have personalised.

Some people recommend keeping a notebook into which you enter all changes of this sort.
 
Old 02-14-2021, 07:06 AM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
Define "mount dynamically".

Does it mean you mount manually in a running system as opposed to mounting boot time? Nothing is easier, in particular if you have it already in fstab. Otherwise you need superuser rights and the command line must be complete.

Or you mean automounting when devices are mounted automatically when accessed? There are several ways to accomplish this. A quick net search will bring up all tutorials you may need.
 
Old 02-14-2021, 07:32 AM   #9
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
Quote:
Originally Posted by jan128 View Post
Yes, I did read "how to choose distribution...

I am totally flustered with the latest Ubuntu 20.04.2

Can anybody point out the major differences between Debian and Ubuntu?
( I rather switch then fight...)

I need RELIABLE OS to write C/C++ code - run IDE likes Eclipse and QtCreator.
I could careless for social media applications.
I also like open forum with reasonable participation.

Ubuntu is NOT open forum - it is "privilege" to post there...

So is Debian a good choice ?
The question is no longer about how to mount dynamically?

You can try before you switch, using VM or live boot.

Only you can decide if a distribution is right for you.
 
Old 02-14-2021, 10:52 AM   #10
jan128
Member
 
Registered: Nov 2020
Posts: 201

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rtmistler View Post
The question is no longer about how to mount dynamically?

If you need to know - I have no clue how it got in this thread.

You can try before you switch, using VM or live boot.

I did ask for opinions not "try it an see".


Only you can decide if a distribution is right for you.

Would it be too impertinent to ask you to once a while contribute instead of just waste your talent preaching?
 
Old 02-14-2021, 10:59 AM   #11
jan128
Member
 
Registered: Nov 2020
Posts: 201

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
Define "mount dynamically".

Does it mean you mount manually in a running system as opposed to mounting boot time? Nothing is easier, in particular if you have it already in fstab. Otherwise you need superuser rights and the command line must be complete.

Or you mean automounting when devices are mounted automatically when accessed? There are several ways to accomplish this. A quick net search will bring up all tutorials you may need.
Simple - I have stuff , C/C++ code build in SPECIFIC OS files.
To access it in currently running OS, which keeps changing with each new version install ( version upgrade takes way to long, new install from ISO is much faster )
I need to change mount points - hence dynamic mounting.

As explained above - auto mounting does not work for me. I had some luck with "sudo -i commomand"


BTW Disks does have an option to mount "on the fly" . My big isse is I cnnot get Disks to always execute - it will time out. I am hoping next Ubuntu version will work better.

Last edited by jan128; 02-14-2021 at 11:01 AM.
 
Old 02-14-2021, 11:03 AM   #12
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,682
Blog Entries: 19

Rep: Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492
Another possibility would be a bind mount. This is where you have a disk mounted on one directory but you bind another (preferred) directory to it as and when required. You can do that with mount using sudo.
 
Old 02-14-2021, 11:06 AM   #13
jan128
Member
 
Registered: Nov 2020
Posts: 201

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
Editing existing lines in fstab is more frightening nowadays because they use UUIDs instead of device names and it makes the whole thing look more difficult and obscure. Adding lines is easier because you can use the device names or your own labels, which is what I do.

When I have to edit any file in /etc, I always start by making a copy with the .orig suffix. That way, if my edited version (or any subsequent one) doesn't work, I can always get back to what the distro's installer provided. Also, it allows me to see at a glance which files I have personalised.

Some people recommend keeping a notebook into which you enter all changes of this sort.
Here is a simpleton view of this.

Application "Disks" ALLEGEDLY updates fstab.
true or false?

I have a great respect for hackers fluent in using CLI.
However, I also subscribe to KISS principle.

If GUI , in this case "Disks" really updates fstab - why bother ?
 
Old 02-14-2021, 11:32 AM   #14
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
Quote:
Originally Posted by jan128 View Post
Here is a simpleton view of this.

Application "Disks" ALLEGEDLY updates fstab.
true or false?

I have a great respect for hackers fluent in using CLI.
However, I also subscribe to KISS principle.

If GUI , in this case "Disks" really updates fstab - why bother ?
Put simply, per your request:
True. Yes the Gnome Disks application can do this.

There's a gear icon to edit disk options where you can tell to either auto mount versus not, you'll want to set it to not.

Last edited by rtmistler; 02-14-2021 at 11:39 AM.
 
  


Reply

Tags
disks



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
Can fstab dynamically mount a partition by reading from a file or filename? Sharvin26 Linux - Newbie 9 05-09-2019 08:49 PM
how to: mount extra disks (non-boot disks) maxreason Ubuntu 2 12-27-2012 09:54 PM
[SOLVED] RAID 5 with 4 hard disks... array started with only 3 out of 4 disks kikinovak Slackware 9 08-11-2012 06:33 AM
[SOLVED] What implications does it have now that IDE disks are seen as "scsi" disks? harryhaller Slackware 8 03-28-2011 07:54 AM
Installation Disks not recognized as official disks when booting with floppy coal-fire-ice Mandriva 13 12-09-2004 04:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:55 PM.

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