Help with fstab and mountting a partition I forgot at install?

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
mdevour
Level 2
Level 2
Posts: 50
Joined: Fri Aug 08, 2014 8:24 am

Help with fstab and mountting a partition I forgot at install?

Post by mdevour »

Sorry about that! I accidentally published the OP, and THOUGHT I deleted it! I then finished editing and published it... and it ended up being the 4th post in the thread. <sigh>

Here's what the OP is supposed to look like! :roll:

---

I'm working on getting Mint 19.2 going to replace my vintage 17.3 install. :wink:

My configuration looks like:

sda is a 500G SSD and primary boot drive
sda1 root partition

sdb is a 750G HDD
sdb1 swap
sdb2 /home

sdc is a 2TB HDD with bootloader for Mint 17.3
sdc1 through 4 is my archival Mint 17.3 install
sdc5 is to be used for snapshots of my system files and backups of /home. Partition label is 'backup'.

The behavior I'm seeing that I don't like is that I think Timeshift is mounting the backup partition as superuser and causing it to pop up on my desktop. Clicking on it yields the error: "Could not display "/media/root/backup". The file is of an unknown type."

I can only unmount it after authenticating with my root password.

What I think I want to do is add an entry to fstab so that it's mounted at boot in user mode. It should end up looking something like this...

Code: Select all

# /etc/fstab: static file system information.
# ...
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=9f8a9357-6cf9-4bd9-aa26-67a6593cb8fa /               ext4    errors=remount-ro 0       1
# /home was on /dev/sdb2 during installation
UUID=6d57d65a-1830-4055-8766-16008d9daca8 /home           ext4    defaults        0       2
# swap was on /dev/sdb1 during installation
UUID=287ec08c-a173-4bfb-a411-841650cd0928 none            swap    sw              0       0

# Proposed entry for backup partition...
UUID=71d6153e-a2f4-46e7-9862-5379c3e5b6a4 /backup         ext4    defaults        0       2
I'm not sure if I got that right, if it will do what I want, or have unintended effects that i don't want?

Will /backup now show up as another available file system in file manager windows?

Will changing its status to a mounted user file system muck around with the Timeshift configuration I've already set up? Or will Timeshift adapt to not having to mount the file system and still see the previous backups? Will I stop seeing the backup partition show up on my desktop when accessed by Timeshift?

Will this muck up file ownership or other metadata of the /backup partition and/or files?

I just want to head off any avoidable confusion or frustration. I hope with all the research I've done successfully on the rest of this install, y'all won't begrudge me a little hands-on assistance. :D

Meanwhile I'm off to do the optimizations for the SSD configuration. Thanks to all!

Mike D.
Last edited by mdevour on Thu Dec 05, 2019 8:34 pm, edited 1 time in total.

gittiest personITW
Level 7
Level 7
Posts: 1999
Joined: Tue May 28, 2019 4:27 pm

Re: Help with fstab and mountting a partition I forgot at install?

Post by gittiest personITW »

Hi,
Is this a question or a statement?

If you need help you need to say exactly what it is you are wanting to do and what you have tried so far.
Or, you could look here:
viewtopic.php?t=277741

jglen490
Level 5
Level 5
Posts: 999
Joined: Sat Jul 15, 2017 9:57 pm

Re: Help with fstab and mountting a partition I forgot at install?

Post by jglen490 »

Kinda like what gittiest asked. Have you installed 19.2? What partition did you forget during the install?
I feel more like I do than I did when I got here.
Toshiba A135-S2386, Intel T2080, ATI Radeon® Xpress 200M Chipset, 2GB RAM, 500GB

mdevour
Level 2
Level 2
Posts: 50
Joined: Fri Aug 08, 2014 8:24 am

Help with fstab and mounting a partition I forgot at install?

Post by mdevour »

I'm working on getting Mint 19.2 going to replace my vintage 17.3 install. :wink:

My configuration looks like:

sda is a 500G SSD and primary boot drive
sda1 root partition

sdb is a 750G HDD
sdb1 swap
sdb2 /home

sdc is a 2TB HDD with bootloader for Mint 17.3
sdc1 through 4 is my archival Mint 17.3 install
sdc5 is to be used for snapshots of my system files and backups of /home. Partition label is 'backup'.

The behavior I'm seeing that I don't like is that I think Timeshift is mounting the backup partition as superuser and causing it to pop up on my desktop. Clicking on it yields the error: "Could not display "/media/root/backup". The file is of an unknown type."

I can only unmount it after authenticating with my root password.

What I think I want to do is add an entry to fstab so that it's mounted at boot in user mode. It should end up looking something like this...

Code: Select all

# /etc/fstab: static file system information.
# ...
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=9f8a9357-6cf9-4bd9-aa26-67a6593cb8fa /               ext4    errors=remount-ro 0       1
# /home was on /dev/sdb2 during installation
UUID=6d57d65a-1830-4055-8766-16008d9daca8 /home           ext4    defaults        0       2
# swap was on /dev/sdb1 during installation
UUID=287ec08c-a173-4bfb-a411-841650cd0928 none            swap    sw              0       0

# Proposed entry for backup partition...
UUID=71d6153e-a2f4-46e7-9862-5379c3e5b6a4 /backup         ext4    defaults        0       2
I'm not sure if I got that right, if it will do what I want, or have unintended effects that i don't want?

Will /backup now show up as another available file system in file manager windows?

Will changing its status to a mounted user file system muck around with the Timeshift configuration I've already set up? Or will Timeshift adapt to not having to mount the file system and still see the previous backups? Will I stop seeing the backup partition show up on my desktop when accessed by Timeshift?

Will this muck up file ownership or other metadata of the /backup partition and/or files?

I just want to head off any avoidable confusion or frustration. I hope with all the research I've done successfully on the rest of this install, y'all won't begrudge me a little hands-on assistance. :D

Meanwhile I'm off to do the optimizations for the SSD configuration. Thanks to all!

Mike D.

HaveaMint
Level 5
Level 5
Posts: 746
Joined: Fri Feb 02, 2018 9:56 pm
Location: Somewhere in the USA
Contact:

Re: Help with fstab and mounting a partition I forgot at install?

Post by HaveaMint »

mdevour wrote:
Thu Dec 05, 2019 5:28 pm
# Proposed entry for backup partition...
UUID=71d6153e-a2f4-46e7-9862-5379c3e5b6a4 /backup ext4 defaults 0 2
UUID=71d6153e-a2f4-46e7-9862-5379c3e5b6a4 /media/yourusername/backup ext4 defaults 0 2
The way you are proposing will mount it under root.
"Tune for maximum Smoke and then read the Instructions".

mdevour
Level 2
Level 2
Posts: 50
Joined: Fri Aug 08, 2014 8:24 am

Re: Help with fstab and mounting a partition I forgot at install?

Post by mdevour »

HaveaMint wrote:
Thu Dec 05, 2019 5:54 pm
UUID=71d6153e-a2f4-46e7-9862-5379c3e5b6a4 /media/yourusername/backup ext4 defaults 0 2
The way you are proposing will mount it under root.
And I do that if I want those files and that partition to belong to me as user? Makes sense, I think!

Any thoughts on what'll happen to the several snapshots I've already taken with Timeshift?

Post Reply

Return to “Installation & Boot”