How to stop automounting hd partitions  [Solved]

Help with the version of MX KDE officially released by the Development Team.
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
bidral
Posts: 23
Joined: Sun Feb 04, 2024 12:14 pm

How to stop automounting hd partitions

#1 Post by bidral »

Hello, I have installed MX Linux 23.2 KDE. Everything is going as expected for now. I hope it will continue well in the future.
The first thing I want to draw your attention to is that I don't want to automatically mount the extra partitions on my hard disk. How is this possible? I would be glad to know that. Thank you all

User avatar
m_pav
Developer
Posts: 1892
Joined: Sun Aug 06, 2006 3:02 pm

Re: How to stop automounting hd partitions

#2 Post by m_pav »

Open Xfce Settings, look for Removeable Drives and Media, turn off the options you want to stop.
It's on my list of things to put right straight after a fresh installation.
Mike P

Regd Linux User #472293
(Daily) Lenovo T560, i7-6600U, 16GB, 2.0TB SSD, MX_ahs
(ManCave) AMD Ryzen 5 5600G, 32G, 8TB mixed, MX_ahs
(Spare)2017 Macbook Air 7,2, 8GB, 256GB SSD, MX_ahs

User avatar
dolphin_oracle
Developer
Posts: 22739
Joined: Sun Dec 16, 2007 12:17 pm

Re: How to stop automounting hd partitions

#3 Post by dolphin_oracle »

The user is using kde. But i presume there is a similar setting in dolphin.

To be clear just because extra partitions are listed doesn’t mean they are mounted. For internal devices you usually have to do something to mount them.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

bidral
Posts: 23
Joined: Sun Feb 04, 2024 12:14 pm

Re: How to stop automounting hd partitions

#4 Post by bidral »

Thanks, but I can't find any option to disable partition mounting.

User avatar
dolphin_oracle
Developer
Posts: 22739
Joined: Sun Dec 16, 2007 12:17 pm

Re: How to stop automounting hd partitions

#5 Post by dolphin_oracle »

I mean, the partitions shouldn't be automounting unless they are defined in your /etc/fstab.

otherwise they are just listed in dolphin, but not actually mounted.

there are some options under SystemSettings->Removable Storage. I'm not sure they apply to internal partitions, but they might. there is a "All Known Devices" option.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

User avatar
siamhie
Global Moderator
Posts: 3790
Joined: Fri Aug 20, 2021 5:45 pm

Re: How to stop automounting hd partitions

#6 Post by siamhie »

@bidral Partitions in KDE (as well as XFCE, fluxbox) won't be automatically mounted at boot time unless you have edited your fstab to do so.

Here I'm booted into KDE (on a triple boot system) and only my root partition is mounted. The other four partitions are not mounted (orange icons next to them).

You can also hide partitions from the device section if you want. (right click on the device and select hide)

Code: Select all

$ blkid
/dev/nvme0n1p1: LABEL_FATBOOT="EFI-SYSTEM" LABEL="EFI-SYSTEM" UUID="D18B-2141" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="boot" PARTUUID="917d581a-0070-477e-8aea-3c3a30ddf25f"
/dev/nvme0n1p2: LABEL="root" UUID="2ddf2dad-ce02-49c0-bd7f-2c1df275b242" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="root" PARTUUID="067de7a7-2442-468c-a309-f309b790f4a1"
/dev/sdb2: LABEL="swap" UUID="cff60e0f-9504-4506-897b-e1d32c646cc4" TYPE="swap" PARTLABEL="swap" PARTUUID="4665e3c7-2cdb-4e2c-a906-af074b10735c"
/dev/sdb1: LABEL="Stream" UUID="3a983c2f-21bf-4ec1-aa81-ca5f36570ba5" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="stream" PARTUUID="030a1960-13ae-4d07-8362-6f0e1fe447ff"
/dev/nvme1n1p2: LABEL="root" UUID="a00fe0ea-b5ac-4571-8ca3-5a5371578480" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="root" PARTUUID="bae10767-ccc5-47ac-bae9-134a07da6f16"
/dev/nvme1n1p1: LABEL="root" UUID="74a0b2d6-f1c1-4d7c-8fb2-bfd21eeaefab" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="root" PARTUUID="2c87e55f-c577-4c4e-8714-f428a03dab8c"
/dev/sda1: LABEL="Data" UUID="73184b5c-2cb1-48e2-9eb6-b38b2d2e0022" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="data" PARTUUID="ee705cc0-212b-48b4-99ef-31781d66422a"

Code: Select all

$ cat /etc/fstab
# Pluggable devices are handled by uDev, they are not in fstab
UUID=a00fe0ea-b5ac-4571-8ca3-5a5371578480 / ext4 discard,noatime 1 1
UUID=D18B-2141 /boot/efi vfat noatime,dmask=0002,fmask=0113 0 0
UUID=cff60e0f-9504-4506-897b-e1d32c646cc4 SWAP swap discard
dolphin.jpg
You do not have the required permissions to view the files attached to this post.
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

User avatar
oops
Posts: 2029
Joined: Tue Apr 10, 2018 5:07 pm

Re: How to stop automounting hd partitions  [Solved]

#7 Post by oops »

... an easy way is via a GUI like: disk-manager
Pour les nouveaux utilisateurs: Alt+F1 pour le manuel, ou FAQS, MX MANUEL, et Conseils MX Conseils Debian - Info. système “quick-system-info-mx” (QSI) ... Ici: System: MX-19-23_x64 & antiX23_x32 runit

User avatar
pbear
Posts: 311
Joined: Tue Aug 09, 2022 9:24 pm

Re: How to stop automounting hd partitions

#8 Post by pbear »

@bidral, you can easily confirm what everyone is telling you. Open Konsole; run lsblk -f (that's an F). The last column will show which partitions are mounted.
Notice also in Dolphin the little x-in-an-orange-circle siamhe mentions, which correspond to the partitions shown by lsblk as not mounted.

bidral
Posts: 23
Joined: Sun Feb 04, 2024 12:14 pm

Re: How to stop automounting hd partitions

#9 Post by bidral »

Thanks,
I ran this command and got the following output.
$ lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sr0 iso9660 Joliet Extension HiSuite 2018-03-07-15-25-02-00
nvme0n1
├─nvme0n1p1 vfat FAT32 CD48-5D66 283.1M 5% /boot/efi
├─nvme0n1p2 ext4 1.0 rootMX23 25ff091c-cf73-4b4c-87d8-6c1a73570 34G 23% /
├─nvme0n1p3 ext4 1.0 homeMX 23fe1303-974b-4496-ac13-ac64705a0 134.6G 23% /home
├─nvme0n1p4 ext4 1.0 fdcadc00-c878-4208-a594-9b36cb899 73.6G 63% /media/nvme0n1p4
└─nvme0n1p5 swap 1 a840d296-6416-4b3e-8d85-7af1fca03 [SWAP]
I noticed that root permission is required to write anything to the extra partition of the hard disk. It's ok. But wanted the extra backup partition to remain unmounted until clicked it's name on file browser's sidebar. It is the default in LinuxMint mate.
Last edited by bidral on Thu Feb 22, 2024 11:20 am, edited 1 time in total.

bidral
Posts: 23
Joined: Sun Feb 04, 2024 12:14 pm

Re: How to stop automounting hd partitions

#10 Post by bidral »

Look at the screenshot. Does the 233.4 GB internal drive is not mounted?
You do not have the required permissions to view the files attached to this post.

Post Reply

Return to “MX KDE Official Release”