HDDs: /mnt vs /media <SOLVED>

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
Benzius
Level 1
Level 1
Posts: 7
Joined: Mon Apr 20, 2020 4:45 am

HDDs: /mnt vs /media <SOLVED>

Post by Benzius »

I have 5 drives in an HTPC:

#1) 400 GB Intel PCIe (OS: separate partitions each for 1) EFI System, 2) Filesystem Root and 3) /home)
#2) 2 TB WD HDD
#3) 3 TB WD HDD
#4) 3 TB WD HDD
#5) 8TB WD HDD

The 400GB is obviously in a PCIe slot. The other 4 HDDS are all connected internally via sata cables. I have two things going on that are strange to me.

Issue #1:
The 2 TB and both 3 TB HDDs show up under /mnt but the 8 TB only shows up under /media no matter how I format or partition it. Other strange things happen which I'm sure are related. If I can fix one, I'm pretty sure the other issues will go away.

Issue #2
Using the "Disks" tool, the 2 TB HDD list partitioning as 'Master Boot Record' while all other drives say 'GUID Partition Table'. I think that's because at one point it was an old Windows HDD or something. Does that difference mean anything significant?. If so can I correct it without losing data?

Hope that makes sense & thankz in advance for any help.

I dumped Windows 2 months ago and switched to Linux Mint. There is no turning back. So far, I'm really enjoying the journey.
Last edited by Benzius on Tue Jun 09, 2020 12:32 am, edited 3 times in total.
User avatar
deck_luck
Level 5
Level 5
Posts: 967
Joined: Mon May 27, 2019 6:57 pm
Location: R-4808 North

Re: HDDs: /mnt vs /media

Post by deck_luck »

Benzius wrote:
Mon Jun 08, 2020 7:38 pm

Issue #1:
The 2 TB and both 3 TB HDDs show up under /mnt but the 8 TB only shows up under /media no matter how I format or partition it. Other strange things happen which I'm sure are related. If I can fix one, I'm pretty sure the other issues will go away.

Issue #2
Using the "Disks" tool, the 2 TB HDD list partitioning as 'Master Boot Record' while all other drives say 'GUID Partition Table'. I think that's because at one point it was an old Windows HDD or something. Does that difference mean anything significant?. If so can I correct it without losing data?
...
Issue#1:
The Removable Media Manger might use the /media/${USER}/mount_points to automatically mount a disk, unless it is has an entry in the /etc/fstab file. Please provide the output for the following commands:

Code: Select all

lsblk -f
cat /etc/fstab
Issue#2:
The GPT 'GUID Partition Table' is a requirement for UEFI booting. Also, the GPT is a requirement for storage devices over 2TB. I do not believe it is worth the trouble to convert it to GPT.
🐧Linux Mint 19 XFCE 💡Give a friend a fish, and you feed them for a day. Teach a friend how to fish, and you feed them for a lifetime. ✝️ Proverbs 4:7 Wisdom is the principal thing; therefore get wisdom: and with all thy getting get understanding.
Benzius
Level 1
Level 1
Posts: 7
Joined: Mon Apr 20, 2020 4:45 am

Re: HDDs: /mnt vs /media

Post by Benzius »

Here it is.

Last time I messed with fstab, I bricked my whole system so I will be very careful this time.
Thankz again.

benzius@Benzius-HTPC:~$ lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
sda
└─sda1 ext4 Disk1 a1393ba1-91ba-49f9-9160-d78a2aeb3ea2 /mnt/Disk1
sdb
└─sdb1 ext4 Disk2 24c61867-c0d3-4834-b6ed-4a64b186d307 /mnt/Disk2
sdc
└─sdc1 ext4 Disk3 e376fb06-e35e-4965-86bf-e309480a12fa /mnt/Disk3
sdd
└─sdd1 ext4 Disk4 8488cd8a-76c0-4ae6-a18d-dcffd3102c10 /media/benzius/Dis
nvme0n1
├─nvme0n1p1 vfat 9B8E-47FE /boot/efi
├─nvme0n1p2 ext4 d709ac97-188e-438a-9780-4abb179e7058 /
└─nvme0n1p3 ext4 a8384473-87ff-438f-afa8-274729054959 /home
benzius@Benzius-HTPC:~$ 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/nvme0n1p2 during installation
UUID=d709ac97-188e-438a-9780-4abb179e7058 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=9B8E-47FE /boot/efi vfat umask=0077 0 1
# /home was on /dev/nvme0n1p3 during installation
UUID=a8384473-87ff-438f-afa8-274729054959 /home ext4 defaults 0 2
/swapfile none swap sw 0 0
LABEL=Disk1 /mnt/Disk1 auto nosuid,nodev,nofail,x-gvfs-show 0 0
LABEL=Disk2 /mnt/Disk2 auto nosuid,nodev,nofail,x-gvfs-show 0 0
LABEL=Disk3 /mnt/Disk3 auto nosuid,nodev,nofail,x-gvfs-show 0 0
/dev/disk/by-partlabel/Disk4 /mnt/Disk4 auto nosuid,nodev,nofail,x-gvfs-show 0 0
/dev/disk/by-uuid/464b874d-5183-4aa1-9f32-52a1c3845734 /mnt/464b874d-5183-4aa1-9f32-52a1c3845734 auto nosuid,nodev,nofail,x-gvfs-show 0 0
benzius@Benzius-HTPC:~$
User avatar
deck_luck
Level 5
Level 5
Posts: 967
Joined: Mon May 27, 2019 6:57 pm
Location: R-4808 North

Re: HDDs: /mnt vs /media

Post by deck_luck »

If I understand the situation correctly the Disk1-4 will remain internal. If correct proceed with the following suggestions.

The item of interest is the following /etc/fstab entry:
/dev/disk/by-partlabel/Disk4 /mnt/Disk4 auto nosuid,nodev,nofail,x-gvfs-show 0 0

Always make a backup or save copy of the /etc/fstab file before modifying it.

Code: Select all

sudo cp /etc/fstab{,.saved}
Create a mount point in the /mnt directory for the Disk4 device.

Code: Select all

sudo mkdir -p /mnt/Disk4
sudo chmod 755 /mnt/Disk4
Change the Disk4 entry in the /etc/fstab file.

From:

Code: Select all

/dev/disk/by-partlabel/Disk4 /mnt/Disk4 auto nosuid,nodev,nofail,x-gvfs-show 0 0
To:

Code: Select all

LABEL=Disk4 /mnt/Disk4 auto nosuid,nodev,nofail,x-gvfs-show 0 0
You should unmount the /media/"${USER}"/Disk4 and mount the /mnt/Disk4 with the following commands:

Code: Select all

sudo umount /media/"${USER}"/Disk4
sudo mount /mnt/Disk4
Notice, after mounting the Disk4 device on the /mnt/Disk4 mount point, the file system head directory permissions may prevent access. You can use the following command to change the ownership to your user.

Code: Select all

sudo ls -ld /mnt/Disk4
sudo chown "${USER}": /mnt/Disk4 
sudo ls -ld /mnt/Disk4

Your current configuration does not seem have the storage device with the following /etc/fstab entry:

/dev/disk/by-uuid/464b874d-5183-4aa1-9f32-52a1c3845734 /mnt/464b874d-5183-4aa1-9f32-52a1c3845734 auto nosuid,nodev,nofail,x-gvfs-show 0 0
🐧Linux Mint 19 XFCE 💡Give a friend a fish, and you feed them for a day. Teach a friend how to fish, and you feed them for a lifetime. ✝️ Proverbs 4:7 Wisdom is the principal thing; therefore get wisdom: and with all thy getting get understanding.
Benzius
Level 1
Level 1
Posts: 7
Joined: Mon Apr 20, 2020 4:45 am

Re: HDDs: /mnt vs /media

Post by Benzius »

WOW !!! That worked perfectly. Thank you very much!!!

I will see how to mark this as SOLVED and do so, a.s.a.p.

Thankz again!!!
Post Reply

Return to “Newbie Questions”