Welcome!
Important information
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.1 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

]SOLVED]Help with fstab syntax

Help for Current Versions of MX
User avatar
Captain Brillo
Forum Regular
Forum Regular
Posts: 198
Joined: Mon Jan 07, 2019 12:29 am

]SOLVED]Help with fstab syntax

#1

Post by Captain Brillo » Thu Jan 10, 2019 11:57 am

I have a disk with 2 partitions for backups and such, but I don't know how to add them to fstab correctly. Currently I have to mount them manually every start.

These are the blkid lines:

Code: Select all

/dev/sdc1: LABEL="Shared" UUID="98C00E9CC00E80AC" TYPE="ntfs" PARTUUID="2a239d93-01"
/dev/sdc2: LABEL="LinuxBackups" UUID="045f6195-6f28-4290-b36e-70d17b820629" TYPE="ext4" PARTUUID="2a239d93-02"
And this is the current fstab:

Code: Select all

# <file system> <mount point>   <type>  <options>       <dump>  <pass>

#Entry for /dev/sdb1 :
UUID=4ff54f32-74f8-446d-b04d-e0dbd0fc9f17	/			ext4		defaults,noatime	1	1
#Entry for /dev/sdb4 :
UUID=13a688db-fb0b-4598-a078-9c60bc19f43c	/media/sdb4	ext4		defaults			0	0
#Entry for /dev/sdb3 :
UUID=c726b11e-23ca-43d4-bfa3-f057d72351de	swap			swap		defauts			0	0
Could someone explain how to include my /sdc - the differences in terms have me very confused.
Last edited by Captain Brillo on Thu Jan 10, 2019 6:56 pm, edited 1 time in total.
GAFA-free zone

User avatar
Eadwine Rose
Forum Veteran
Forum Veteran
Posts: 7301
Joined: Wed Jul 12, 2006 2:10 am

Re: Help with fstab syntax

#2

Post by Eadwine Rose » Thu Jan 10, 2019 12:01 pm

Check out Disk Manager in the menu, that will take care of the automouting.
MX-18_x64 20-12-2018 * 4.19.0-1-amd64 ext4 Xfce 4.12.3 * AMD Asus M4A785TD-V EVO AM3 * ASUS GF GT640-1GD5-L NVIDIA 390.87 * AMD Proc. Athl II X4 635, sAM3 * HDA ATI SB VT1708S An * 2x4Gb DDR3 1600 Kingston * Samsung S24D330 & P2250 * HP Envy5030

User avatar
smilliken
Forum Guide
Forum Guide
Posts: 2156
Joined: Tue Feb 06, 2007 11:47 pm

Re: Help with fstab syntax

#3

Post by smilliken » Thu Jan 10, 2019 12:19 pm

Eadwine Rose wrote:
Thu Jan 10, 2019 12:01 pm
Check out Disk Manager in the menu, that will take care of the automouting.
Ditto, I won't mess around with the /etc/fstab file with this distro. The Disk Manager will do everything that needs to be done with solid mounted/installed hardware. Once a check mark is place next to the drive, it will automount each and every time the computer is started.
There is no "Ctrl+Z" in life!
Panasonic Toughpad FZ-G1 - MX-17
Acer 7551G MX-17 | Dell 1525, MX17 & Win 10
HP DV4-1118 Mx17 & Win 10
HP CP1215/Brother DCP-7065DN
Linux User# 4523410

User avatar
Captain Brillo
Forum Regular
Forum Regular
Posts: 198
Joined: Mon Jan 07, 2019 12:29 am

Re: Help with fstab syntax

#4

Post by Captain Brillo » Thu Jan 10, 2019 2:21 pm

This disk does not show in disk manager or fstab, but is visible in file manager and accessible after I manually mount it.

That's why I figure I need to add it to fstab.

I'd appreciate any better option?
GAFA-free zone

User avatar
Eadwine Rose
Forum Veteran
Forum Veteran
Posts: 7301
Joined: Wed Jul 12, 2006 2:10 am

Re: Help with fstab syntax

#5

Post by Eadwine Rose » Thu Jan 10, 2019 2:45 pm

Is it visible in disk manager AFTER you manually mount it?
MX-18_x64 20-12-2018 * 4.19.0-1-amd64 ext4 Xfce 4.12.3 * AMD Asus M4A785TD-V EVO AM3 * ASUS GF GT640-1GD5-L NVIDIA 390.87 * AMD Proc. Athl II X4 635, sAM3 * HDA ATI SB VT1708S An * 2x4Gb DDR3 1600 Kingston * Samsung S24D330 & P2250 * HP Envy5030

User avatar
Captain Brillo
Forum Regular
Forum Regular
Posts: 198
Joined: Mon Jan 07, 2019 12:29 am

Re: Help with fstab syntax

#6

Post by Captain Brillo » Thu Jan 10, 2019 3:47 pm

Nope.
Only the never-used Windows disk /sda, and a 1 TB that has MX, a swap and a data partition symlinked to/home/user /sdb.

This is a 2 TB, half ntfs called 'Shared" and half ext4 for my backups. I need for that one for sure to auto-mount.
GAFA-free zone

User avatar
towwire
Forum Regular
Forum Regular
Posts: 439
Joined: Fri Oct 15, 2010 12:15 pm

Re: Help with fstab syntax

#7

Post by towwire » Thu Jan 10, 2019 4:09 pm

Captain Brillo wrote:
Thu Jan 10, 2019 3:47 pm
Nope.
Only the never-used Windows disk /sda, and a 1 TB that has MX, a swap and a data partition symlinked to/home/user /sdb.

This is a 2 TB, half ntfs called 'Shared" and half ext4 for my backups. I need for that one for sure to auto-mount.
Open a terminal and lsblk -f Here is what mine looks like just for sda.
  • $ lsblk -f
    NAME FSTYPE LABEL UUID MOUNTPOINT
    sda
    ├─sda1 vfat 61C2-4446 /boot/efi
    ├─sda2 ext4 rootMX17 7d2c8dc5-faba-4a4c-a65f-2e9ca810a5fd /
    ├─sda3 ext4 homeMX17 fb4e99b1-4198-41f8-8183-30201dd65678 /home
    ├─sda4 ext4 Download fbab8605-72f9-4fe6-b8ca-5706ade940f3 /mnt/Download
    ├─sda5 ext4 MyData 98807904-4ecf-4fc4-bb51-1b077b1ea4f1 /mnt/MyData
    ├─sda6 ext4 Books e4d63628-4a54-4566-96e8-921efa76096d /mnt/Books
    ├─sda7 ext4 Video c6109bb8-f3a7-402d-a970-e2ea37a780c2
    └─sda8 ext4 Syfi 90b46357-4601-42dc-b749-afd5a3f68e03 /mnt/Syfi
You need to edit fstab as root and you need the info above. Here is a copy of mine.
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>

#Entry for /dev/sda2 :
UUID=7d2c8dc5-faba-4a4c-a65f-2e9ca810a5fd / ext4 defaults 1 1
#Entry for /dev/sda1 :
UUID=61C2-4446 /boot/efi vfat defaults 1 2
#Entry for /dev/sda4 :
UUID=fbab8605-72f9-4fe6-b8ca-5706ade940f3 /mnt/Download ext4 users,comment=x-gvfs-show 0 2
#Entry for /dev/sda5 :
UUID=98807904-4ecf-4fc4-bb51-1b077b1ea4f1 /mnt/MyData ext4 users,comment=x-gvfs-show 0 2
#Entry for /dev/sda6 :
UUID=e4d63628-4a54-4566-96e8-921efa76096d /mnt/Books ext4 users,comment=x-gvfs-show 0 2
#Entry for /dev/sda8 :
UUID=90b46357-4601-42dc-b749-afd5a3f68e03 /mnt/Syfi ext4 users,comment=x-gvfs-show 0 2
#Entry for /dev/sda3 :
UUID=fb4e99b1-4198-41f8-8183-30201dd65678 /home ext4 defaults 1 2
This should give you an idea of what to do.

philotux
Forum Regular
Forum Regular
Posts: 425
Joined: Sun Apr 22, 2018 12:57 pm

Re: Help with fstab syntax

#8

Post by philotux » Thu Jan 10, 2019 4:17 pm

You could use "Disks" (gnome-disk-utility) as well. Open the app, mark the appropriate drive and partition. Click on the cogwheel and choose "Edit mount options". In the next window, toggle off "Automatic Mount Options" and edit as you desire.

User avatar
Captain Brillo
Forum Regular
Forum Regular
Posts: 198
Joined: Mon Jan 07, 2019 12:29 am

Re: Help with fstab syntax

#9

Post by Captain Brillo » Thu Jan 10, 2019 5:16 pm

Tried both solutions.

Disk Manager simply opens up with an error message that it can't find any blkid's for these 2 disks, even though neither blkid and lsblk -f has any problem. Then it tells me I have to "Remove them from the Configuration File"

I still have to mount them manually.
Changes to gnome-disk-utility don't stay after a restart even though made as root.
And how to identify them in g-d-u - there are 8 other options besides the default used?

Getting MXed up. me... :confused: :p
GAFA-free zone

User avatar
timkb4cq
Forum Veteran
Forum Veteran
Posts: 4759
Joined: Wed Jul 12, 2006 4:05 pm

Re: Help with fstab syntax

#10

Post by timkb4cq » Thu Jan 10, 2019 5:40 pm

deleted
Last edited by timkb4cq on Thu Jan 10, 2019 5:50 pm, edited 1 time in total.
MSI 970A-G43 MB, AMD FX-6300 (six core), 16GB RAM, GeForce 730, Samsung 850 EVO 250GB SSD, Seagate Barracuda XT 3TB

Post Reply

Return to “MX Help”