[Solved] Linux Mint XFCE 21 - Cannot change Mount Location and Disk Name

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Post Reply
ScarletMcLearn
Level 3
Level 3
Posts: 130
Joined: Wed Dec 13, 2017 12:02 pm

[Solved] Linux Mint XFCE 21 - Cannot change Mount Location and Disk Name

Post by ScarletMcLearn »

Hello.

I am running Linux Mint XFCE 21.

Running the following comment :

Code: Select all

df
Gives the following output:

Code: Select all

df
Filesystem     1K-blocks      Used Available Use% Mounted on
tmpfs            1625608     11940   1613668   1% /run
/dev/sda2      982862268 189576872 743285064  21% /
tmpfs            8128036    328780   7799256   5% /dev/shm
tmpfs               5120         4      5116   1% /run/lock
tmpfs            8128040     44052   8083988   1% /tmp
tmpfs            8128036         0   8128036   0% /run/qemu
/dev/sda1         523244      6224    517020   2% /mnt/DD96-DBB8
tmpfs            1625604       188   1625416   1% /run/user/1001
/dev/sdc2      250041340     99236 249942104   1% /media/scarlet2/SSD
/dev/sdd1      325675004 117561672 208113332  37% /mount/Project
/dev/sdd3      325541884 147410220 178131664  46% /mount/Documents
/dev/sdd2      325542908    146072 325396836   1% /mnt/HDD

I want to change the following mount points -

Code: Select all

/dev/sdc2      250041340     99236 249942104   1% /media/scarlet2/SSD
/dev/sdd2      325542908    146072 325396836   1% /mnt/HDD
To the following -

Code: Select all

/mount/SSD
/mount/HDD

I searched in this Forum, Googled as well, and also saw some Youtube videos.

I tried changing it from here :
https://pasteboard.co/7OeASTkIwDPd.png

But the changes are not reflected in the system.
https://pasteboard.co/Cuiywi9tiTwn.png

And in Nemo, the SSD has a broken / NOT icon :
https://pasteboard.co/FqLlRM7fvtxY.png

Please let me know why is this and how I can fix it.

Thank you for your time.
Last edited by ScarletMcLearn on Sat Mar 02, 2024 2:12 pm, edited 1 time in total.
ThaCrip
Level 5
Level 5
Posts: 988
Joined: Sat Dec 07, 2019 12:13 pm

Re: Linux Mint XFCE 21 - Cannot change Mount Location and Disk Name

Post by ThaCrip »

I see you got NTFS as while I did that at one point pretty much everything I mount now is EXT4. anyways, the gist of what I used when I mounted a general hard drive to a specific location I do it through '/etc/fstab' using UUID.

for example here is how I got mine set on one of my EXT4 HDD's (I got a total of three I mount similar to this, but here is a example)...

Code: Select all

UUID=********-a644-40f3-****-44df6f0fd6ed /media/HDD1 ext4 defaults,nofail,noatime 0 0
I just removed some of the stuff with "*" (since that's my real UUID of one of my HDD's), and gave a example of where to mount it, but that gives you the general idea. but with yours since it's NTFS that 'ext4' would be NTFS etc. I might have used some other stuff in there to, but I don't recall the exact one I used when I was using NTFS a while ago before I pretty much wiped my HDD's and put them to EXT4 once I was sure I was sticking with Linux Mint long term, which I did after about a year (Jan 2019 to Jan 2020).

basically once I do that and boot my computer hard drives are mounted to the specific location assigned there automatically. because '/dev/sda' etc varies but UUID won't change (short of formatting HDD etc).

WARNING: if you mess up the 'fstab' file it might cause your system to not boot. so be careful and take measures to backup stuff before modifying it! (like make a copy of it as this way if you mess up anything you can say boot to a USB stick and swap the faulty 'fstab' with the backup copy and your computer should boot again like usual etc. NOTE: that 'code' stuff above I just add at the very end of the 'fstab' file (but obviously you got to tweak it to your setup).

p.s. I changed my label through GParted upon initial formatting, so I don't have too much experience in that dept doing it outside of it, but I suspect there might be a way if you want to look into it.
MainPC: i5-3550 (undervolted by -0.120v (CPU runs 12c cooler) /w stock i3-2120 hs/fan) | 1050 Ti 4GB | 16GB (2x 8GB) DDR3 1600Mhz RAM | Backups: AMD E-300 CPU (8GB RAM) / Athlon X2 3600+ CPU (@2.3GHz@1.35v) (4GB RAM) | All /w Mint 21.x-Xfce
altair4
Level 20
Level 20
Posts: 11461
Joined: Tue Feb 03, 2009 10:27 am

Re: Linux Mint XFCE 21 - Cannot change Mount Location and Disk Name

Post by altair4 »

Please post the output of the following commands so the folks here can see how you are set up:

Code: Select all

lsblk -fl

Code: Select all

cat /etc/fstab
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
ScarletMcLearn
Level 3
Level 3
Posts: 130
Joined: Wed Dec 13, 2017 12:02 pm

Re: Linux Mint XFCE 21 - Cannot change Mount Location and Disk Name

Post by ScarletMcLearn »

Thank you guys for your responses.

I am providing the outputs below:

Please go over when you get time.

Thank you!

Code: Select all

lsblk -fl
NAME FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                         
sda1 vfat   FAT32       DD96-DBB8                             504.9M     1% /mnt/DD96-DBB8
sda2 ext4   1.0         c67dfae0-7298-48f2-9e37-5efcb3d07124  705.2G    20% /
sdb                                                                         
sdb1                                                                        
sdc                                                                         
sdc1                                                                        
sdc2 ntfs         SSD   E606DA6806DA38EF                      216.6G     9% /mount/SSD
sdd                                                                         
sdd1 ntfs         Project
                        C224411A24411339                      187.9G    40% /mount/Project
sdd2 ntfs         HDD   0E5CAFD55CAFB5BD                      310.3G     0% /mount/HDD
sdd3 ntfs         Documents
                        52CEB43ECEB41C63                      169.2G    46% /mount/Documents
sr0            

Code: Select all

lsblk -fl
NAME FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                         
sda1 vfat   FAT32       DD96-DBB8                             504.9M     1% /mnt/DD96-DBB8
sda2 ext4   1.0         c67dfae0-7298-48f2-9e37-5efcb3d07124  705.2G    20% /
sdb                                                                         
sdb1                                                                        
sdc                                                                         
sdc1                                                                        
sdc2 ntfs         SSD   E606DA6806DA38EF                      216.6G     9% /mount/SSD
sdd                                                                         
sdd1 ntfs         Project
                        C224411A24411339                      187.9G    40% /mount/Project
sdd2 ntfs         HDD   0E5CAFD55CAFB5BD                      310.3G     0% /mount/HDD
sdd3 ntfs         Documents
                        52CEB43ECEB41C63                      169.2G    46% /mount/Documents
sr0                                                                         
scarlet2@Scarlet ~/D/Mint Configurations> cat /etc/fstab

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda2 during installation
UUID=c67dfae0-7298-48f2-9e37-5efcb3d07124 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
/swapfile                                 none            swap    sw              0       0
/dev/disk/by-uuid/DD96-DBB8 /mnt/DD96-DBB8 auto nosuid,nodev,nofail,x-gvfs-show 0 0
LABEL=Drive /media/scarlet/Drive auto nosuid,nodev,nofail,x-gvfs-show 0 0
LABEL=Linux\040Mint\04021.1\040Xfce\04064-bit /mnt/Linux\040Mint\04021.1\040Xfce\04064-bit auto nosuid,nodev,nofail,noauto,x-gvfs-show 0 0
LABEL=Project /mount/Project auto nosuid,nodev,nofail,x-gvfs-show,noauto 0 0
LABEL=Documents /mount/Documents auto nosuid,nodev,nofail,x-gvfs-show,noauto 0 0
LABEL=SSD /mount/SSD auto nosuid,nodev,nofail,x-gvfs-show,noauto 0 0
LABEL=New\040Volume /mount/New\040Volume auto nosuid,nodev,nofail,x-gvfs-show,noauto 0 0
LABEL=HDD /mount/HDD auto nosuid,nodev,nofail,noauto,x-gvfs-show 0 0

altair4
Level 20
Level 20
Posts: 11461
Joined: Tue Feb 03, 2009 10:27 am

Re: Linux Mint XFCE 21 - Cannot change Mount Location and Disk Name

Post by altair4 »

The partitions labeled SSD, Project, HDD, and Documents all have the same set of options in their mount declarations:
auto nosuid,nodev,nofail,noauto,x-gvfs-show 0 0
None of those partitions will mount automatically at boot because of the noauto option.

Do you want them to mount at boot? If you do just remove that option:
auto nosuid,nodev,nofail,x-gvfs-show 0 0
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
ScarletMcLearn
Level 3
Level 3
Posts: 130
Joined: Wed Dec 13, 2017 12:02 pm

Re: Linux Mint XFCE 21 - Cannot change Mount Location and Disk Name

Post by ScarletMcLearn »

No, I do not.
The issue is, when I start my PC with the USB Dongle plugged in with the SSD and HDD, it gets stuck.

I need to stop the dongle and start it again once it resumes loading.

Can you suggest how to fix this?
altair4
Level 20
Level 20
Posts: 11461
Joined: Tue Feb 03, 2009 10:27 am

Re: Linux Mint XFCE 21 - Cannot change Mount Location and Disk Name

Post by altair4 »

I have a suggestion but you are not going to like it:

Change the mount point to be under /media ... something like /media/SSD.

Then change the mount declaration from this:
LABEL=SSD /mount/SSD auto nosuid,nodev,nofail,x-gvfs-show,noauto 0 0
To this:
LABEL=SSD /media/SSD auto nosuid,nodev,nofail,x-gvfs-show,noauto,user 0 0
noauto == will make it so it doesn't mount at boot
user == allows an ordinary user ( you vs sudo ) to mount the partition

This will only work graphically through your file manager if the mount point is under your home directory or /media.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
ScarletMcLearn
Level 3
Level 3
Posts: 130
Joined: Wed Dec 13, 2017 12:02 pm

Re: Linux Mint XFCE 21 - Cannot change Mount Location and Disk Name

Post by ScarletMcLearn »

Thank you for the suggestion.

Is there any other way we can resolve it without changing the mount point?

I have several things running that are dependent on these specific mount points.

Please let me know your feedback.
altair4
Level 20
Level 20
Posts: 11461
Joined: Tue Feb 03, 2009 10:27 am

Re: Linux Mint XFCE 21 - Cannot change Mount Location and Disk Name

Post by altair4 »

There's always the systemd method. Change your mount expression to this:
LABEL=SSD /mount/SSD auto nosuid,nodev,nofail,x-gvfs-show,noauto,x-systemd.automount 0 0
This will also not mount at boot. It will only mount when the mountpoint is accessed. It does this seamlessly.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
ScarletMcLearn
Level 3
Level 3
Posts: 130
Joined: Wed Dec 13, 2017 12:02 pm

Re: Linux Mint XFCE 21 - Cannot change Mount Location and Disk Name

Post by ScarletMcLearn »

Thank you so much for your suggestion.

I have configured it as such.

If the problem doesn't come, I will mention here and mark as solved.
ScarletMcLearn
Level 3
Level 3
Posts: 130
Joined: Wed Dec 13, 2017 12:02 pm

Re: Linux Mint XFCE 21 - Cannot change Mount Location and Disk Name

Post by ScarletMcLearn »

Wanted to update you.
The issue is fixed!
Thank you so much for the help!
Post Reply

Return to “Storage”