Advice on partition and data storage

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
User avatar
muffybean
Level 5
Level 5
Posts: 556
Joined: Thu Oct 17, 2019 8:22 am
Location: Pembrokeshire-Wales

Re: Advice on partition and data storage

Post by muffybean »

Think you missed that bit in my post here above viewtopic.php?p=1767869#p1767869. I did change it from user to veronica. One thing I wanted to clarify is it not possible to create a new folder of Backups from /home/veronica/Backups that shows on the left side of file browser that shows veronica, Desktop, Documents etc?
Running Linux Mint MATE on 2 desktops + Linux Mint Xfce on Netbook + Cinnamon VM on 3rd Desktop
User avatar
muffybean
Level 5
Level 5
Posts: 556
Joined: Thu Oct 17, 2019 8:22 am
Location: Pembrokeshire-Wales

Re: Advice on partition and data storage

Post by muffybean »

No I did change this as I mentioned in my post above viewtopic.php?p=1767869#p1767869 to
UUID=060456d0-5097-46da-9cd0-5e1095da89ca /home/veronica/Videos ext4 defaults 0 2
UUID=904feb3e-7688-49ff-8039-f049c1c9b882 /home/veronica/Pictures ext4 defaults 0 2
UUID=2f09d4f2-5168-4aed-a79a-576798ee4e1b /home/veronica/Backups ext4 defaults 0 2
Is it not possible to have Backups partition/folder showing in the Places column on the left in File Browser?
Running Linux Mint MATE on 2 desktops + Linux Mint Xfce on Netbook + Cinnamon VM on 3rd Desktop
User avatar
muffybean
Level 5
Level 5
Posts: 556
Joined: Thu Oct 17, 2019 8:22 am
Location: Pembrokeshire-Wales

Re: Advice on partition and data storage

Post by muffybean »

I have created subfolders in

Code: Select all

/home/veronica/Pictures
one of them being Captures. however after capturing it, when I clicked save and the location was

Code: Select all

/home/veronica/Pictures/Captures
it said "Failed to save image to

Code: Select all

/home/veronica/Pictures/Captures
. I was able to upload it to Imugur site Image. So then tried the Take a Screenshot and pointed to save it in the same folder and that failed to save. In fact I can't even save it to /home/veronica/Pictures. however, I can save to Desktop as shown here.
ksnip_20200225-212928.png
ksnip_20200225-212928.png (37.78 KiB) Viewed 534 times
I am wondering if it is anything to do with the way I created and copied files to these folders. To create folders I had to open as admin and copying files from another folder to a created folder I had to open both folders, source and destination or send them to the home folder. Is this an ownership thing?

Update, opened

Code: Select all

/home/veronica/Pictures/Captures in Terminal 
and used the

Code: Select all

echo $USER
and is saying the owner is veronica so it can't be that. i start wondering if it is do with that fstab editing is the issue, so hope I can get some help here.
Running Linux Mint MATE on 2 desktops + Linux Mint Xfce on Netbook + Cinnamon VM on 3rd Desktop
jglen490
Level 5
Level 5
Posts: 999
Joined: Sat Jul 15, 2017 9:57 pm

Re: Advice on partition and data storage

Post by jglen490 »

The echo $USER command just displays the current user. To see "ownership" on a specific directory, enter

Code: Select all

ls -al </path/to/directory
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
User avatar
AndyMH
Level 13
Level 13
Posts: 4738
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Advice on partition and data storage

Post by AndyMH »

Yes, and no, here's an example:

This is the line in my fstab:

Code: Select all

UUID=88fd75f0-8f7a-4686-afda-629ced8d982b	/home/andy/testmount	ext4	defaults	0	2
the partition is on another internal drive.

When I reboot, this is what I see in the file manager (nemo, I'm running cinnamon):
Screenshot from 2020-02-25 21-31-55.png
You can see that the partition has mounted in home as expected (I didn't create the folder testmount, mint did it automatically).

It IS in the device list on the left, but not as testmount. It appears as sdalinux. Why? Because this is the label I gave that partition. If it didn't have a label, it would appear as something like 13GB volume (like some of the other items in the devices list).

If you have it mounting in /home/veronica/Backups and want to see the same in the devices list, then label the partition Backups (can do in gparted, right click on the partition > label filesystem, you might need to unmount it first).

Note - there is a small x against testmount. This is because it is owned by root. If I wanted to write to it, I'd need to change ownership to me. I think changing the options in the fstab line from 'defaults' to 'defaults,uid=1000,gid=1000' will fix it.

A word of caution - if you are going to use Backups as your destination for backups of /home using, say, backintime, then you must exclude /home/veronica/Backups from the backup list. If you don't backintime is going to get its knickers in a twist. Alternatively mount it somewhere else like /media/veronica/Backups or /media/Backups. That is why my backup drive is mounted as /media/ultrabay. Also note that now you have mounted the other two partitions in /home as Pictures and Videos, a backintime backup is going to back them up as well (so depending on what you have in them, it could get quite large).
Homebrew i5-8400+GTX1080 Cinnamon 19.0, 3 x Thinkpad T430 Cinnamon 19.0, i7-3632 , i5-3320, i5-3210, Thinkpad T60 19.0 Mate
User avatar
AndyMH
Level 13
Level 13
Posts: 4738
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Advice on partition and data storage

Post by AndyMH »

jglen490 wrote:
Tue Feb 25, 2020 5:47 pm
To see "ownership" on a specific directory, enter

Code: Select all

ls -al </path/to/directory
Another way is stat -c %U /path/to/directory

As is being implied, don't think you own the Pictures folder.
Homebrew i5-8400+GTX1080 Cinnamon 19.0, 3 x Thinkpad T430 Cinnamon 19.0, i7-3632 , i5-3320, i5-3210, Thinkpad T60 19.0 Mate
User avatar
muffybean
Level 5
Level 5
Posts: 556
Joined: Thu Oct 17, 2019 8:22 am
Location: Pembrokeshire-Wales

Re: Advice on partition and data storage

Post by muffybean »

A word of caution - if you are going to use Backups as your destination for backups of /home using, say, backintime, then you must exclude /home/veronica/Backups from the backup list. If you don't backintime is going to get its knickers in a twist. Alternatively mount it somewhere else like /media/veronica/Backups or /media/Backups. That is why my backup drive is mounted as /media/ultrabay. Also note that now you have mounted the other two partitions in /home as Pictures and Videos, a backintime backup is going to back them up as well (so depending on what you have in them, it could get quite large).
So do I do that using fstab? Will it be better to mount all three partitions as /media/Pictures and the same for Backups and Pictures.
Running Linux Mint MATE on 2 desktops + Linux Mint Xfce on Netbook + Cinnamon VM on 3rd Desktop
User avatar
muffybean
Level 5
Level 5
Posts: 556
Joined: Thu Oct 17, 2019 8:22 am
Location: Pembrokeshire-Wales

Re: Advice on partition and data storage

Post by muffybean »

I have now changed the paths as follows in fstab to
UUID=904feb3e-7688-49ff-8039-f049c1c9b882 /media/Pictures ext4 defaults 0 2
UUID=2f09d4f2-5168-4aed-a79a-576798ee4e1b /media/Backups ext4 defaults 0 2
UUID=060456d0-5097-46da-9cd0-5e1095da89ca /media/Videos ext4 defaults 0 2
However, this seems to separated the link between the Videos and Picture folders in Places as shown here
Captures..png
Now the captures work fine now so think I will leave this as it is after what you told me about the Timeshift thing. do you agree?
Running Linux Mint MATE on 2 desktops + Linux Mint Xfce on Netbook + Cinnamon VM on 3rd Desktop
User avatar
AndyMH
Level 13
Level 13
Posts: 4738
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Advice on partition and data storage

Post by AndyMH »

However, this seems to separated the link between the Videos and Picture folders
Yes it has because the link in the devices list, say on Pictures, points to the partition now mounting at /media/Pictures. You now have two Pictures folders:
  • /media/Pictures, and
  • /home/veronica/Pictures
That's why you've got your capture back. When you mounted the pictures partition into /home/veronica/Pictures it hid the original Pictures folder.

I'd leave it the way you now have it, those new partitions are only one click away on the devices list.
Homebrew i5-8400+GTX1080 Cinnamon 19.0, 3 x Thinkpad T430 Cinnamon 19.0, i7-3632 , i5-3320, i5-3210, Thinkpad T60 19.0 Mate
jglen490
Level 5
Level 5
Posts: 999
Joined: Sat Jul 15, 2017 9:57 pm

Re: Advice on partition and data storage

Post by jglen490 »

I've done this before. Two physical drives. The /, /home/<user>, and SWAP on one drive. /home/multimedia on the other.

One rule I follow is NEVER backup to the source drive. If the source drive dies, your backup dies, too. Always backup to an external, detachable drive.

One single backup command, such as rsync or comparable GUI, on the source directory /home, captures all instance of /home/* and sends the all the data to the target drive. Real simple.
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
User avatar
muffybean
Level 5
Level 5
Posts: 556
Joined: Thu Oct 17, 2019 8:22 am
Location: Pembrokeshire-Wales

Re: Advice on partition and data storage

Post by muffybean »

/media/Pictures, and
/home/veronica/Pictures
That's why you've got your capture back. When you mounted the pictures partition into /home/veronica/Pictures it hid the original Pictures folder.

I'd leave it the way you now have it, those new partitions are only one click away on the devices list.
Further this Andy I am going to rename those two partitions on my second SSD , MyPictures and MyVideos to prevent any confusion.

Regards to what you say jglen I do actually take images using CloneZilla to an external USB Flash Drive but that is not a straightforward process. Things like Timeshift I cannot see any problem doing that to another drive within the machine that the distro does not reside on. I am not so paranoid to worry about drives going belly up, especially the modern SSD type. I do have three desktops with copies of stuff on each of them, plus external drives with copies of them plus my Synology NAS that I can access from anywhere. The most serious aspect is if my house burnt down and if it did the last thing I'd be worried about are my PC's as my concern is more for my home.

There is one aspect I do not like about Linux and that is the problem of copying and pasting from one device to another which are on the same PC but will raise that issue on another post. viewtopic.php?f=206&t=313117.

I have renamed those two partitions on the Samsung 256gb, Videos and Pictures, to MyVideos and MyPictures and modified the paths accordingly in fstab. BTW, Andy any progress with your backup utility?
Running Linux Mint MATE on 2 desktops + Linux Mint Xfce on Netbook + Cinnamon VM on 3rd Desktop
User avatar
AndyMH
Level 13
Level 13
Posts: 4738
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Advice on partition and data storage

Post by AndyMH »

Further this Andy I am going to rename those two partitions on my second SSD , MyPictures and MyVideos to prevent any confusion.
good idea!
I do actually take images using CloneZilla to an external USB Flash Drive but that is not a straightforward process
Andy any progress with your backup utility?
google foxclone, still in testing and development, think bugs are now chasing edge cases, like users trying to save a backup to a partition/folder owned by root. Legacy boot only, but working on that.

Now you have an understanding of fstab, you might go back and tidy up some of those entries (assume you created them by using the disks utility), e.g.

Code: Select all

/dev/disk/by-uuid/26046395046366B1 /mnt/26046395046366B1 auto nosuid,nodev,nofail,x-gvfs-show 0 0
instead of /dev/disk/by-uuid/26046395046366B1 use UUID=xxxx replacing xxxx with the UUID you find using blkid, mnt/26046395046366B1 is a terrible mount point, replace with something user understandable like /mnt/thesamsungHDD or whatever means something to you. Note if the partitions are on removable drives you are better mounting in /media. Finally, instead of letting linux guess the format, replace auto with ntfs, ext4, fat32 as appropriate. If you do this, do the entries one at a time.
Homebrew i5-8400+GTX1080 Cinnamon 19.0, 3 x Thinkpad T430 Cinnamon 19.0, i7-3632 , i5-3320, i5-3210, Thinkpad T60 19.0 Mate
User avatar
muffybean
Level 5
Level 5
Posts: 556
Joined: Thu Oct 17, 2019 8:22 am
Location: Pembrokeshire-Wales

Re: Advice on partition and data storage

Post by muffybean »

I am a bit confused here Andy. when I run blkid I get this
veronica@veronica:~$ blkid
/dev/sda1: UUID="9484e00e-3ec3-4549-989d-809aa651657b" TYPE="ext4" PARTUUID="2617de2c-01"
/dev/sdc5: LABEL="MyVideos" UUID="060456d0-5097-46da-9cd0-5e1095da89ca" TYPE="ext4" PARTUUID="2617de2c-05"
/dev/sdc6: LABEL="MyPictures" UUID="904feb3e-7688-49ff-8039-f049c1c9b882" TYPE="ext4" PARTUUID="2617de2c-06"
/dev/sdc7: LABEL="Backups" UUID="2f09d4f2-5168-4aed-a79a-576798ee4e1b" TYPE="ext4" PARTUUID="2617de2c-07"
/dev/sdd1: LABEL="USB-DRIVE" UUID="4CE8A9C92A10BC1B" TYPE="ntfs" PTTYPE="dos" PARTUUID="ccd4ebea-01"
veronica@veronica:~$
This is my fstab file details
# /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/sda1 during installation
UUID=9484e00e-3ec3-4549-989d-809aa651657b / ext4 noatime,errors=remount-ro 0 1
/swapfile none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
LABEL=MultiMedia /mnt/MultiMedia auto nosuid,nodev,nofail,x-gvfs-show 0 0
LABEL=USB-DRIVE /mnt/USB-DRIVE auto nosuid,nodev,nofail,x-gvfs-show 0 0
LABEL=2.6.4-10-amd64 /mnt/2.6.4-10-amd64 auto nosuid,nodev,nofail,x-gvfs-show 0 0
LABEL=Elements /mnt/Elements auto nosuid,nodev,nofail,x-gvfs-show 0 0
/dev/disk/by-uuid/26046395046366B1 /mnt/26046395046366B1 auto nosuid,nodev,nofail,x-gvfs-show 0 0
LABEL=Backup-Drive /mnt/Backup-Drive auto nosuid,nodev,nofail,x-gvfs-show 0 0
LABEL=Maxtor-External /mnt/Maxtor-External auto nosuid,nodev,nofail,x-gvfs-show 0 0
LABEL=Samsung\040SSD\040SATA /mnt/Samsung\040SSD\040SATA auto nosuid,nodev,nofail,x-gvfs-show 0 0
LABEL=Seagate-EXTERNAL /mnt/Seagate-EXTERNAL auto nosuid,nodev,nofail,x-gvfs-show 0 0
LABEL=INT-Seagate /mnt/INT-Seagate auto nosuid,nodev,nofail,x-gvfs-show 0 0
UUID=904feb3e-7688-49ff-8039-f049c1c9b882 /media/MyPictures ext4 defaults 0 2
UUID=2f09d4f2-5168-4aed-a79a-576798ee4e1b /media/Backups ext4 defaults 0 2
UUID=060456d0-5097-46da-9cd0-5e1095da89ca /media/MyVideos ext4 defaults 0 2
Where I have underlined that line you point to but as I said in blkid it is not there, neither can I see it in disks utility or gparted, so could do with further advice.
Last edited by muffybean on Wed Feb 26, 2020 6:44 pm, edited 1 time in total.
Running Linux Mint MATE on 2 desktops + Linux Mint Xfce on Netbook + Cinnamon VM on 3rd Desktop
User avatar
AndyMH
Level 13
Level 13
Posts: 4738
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Advice on partition and data storage

Post by AndyMH »

Is this an external drive that is not always plugged in (which would be why it's not showing in blkid = not plugged in)? It would also explain why disks has put the nofail option in (should have spotted that).
Homebrew i5-8400+GTX1080 Cinnamon 19.0, 3 x Thinkpad T430 Cinnamon 19.0, i7-3632 , i5-3320, i5-3210, Thinkpad T60 19.0 Mate
User avatar
muffybean
Level 5
Level 5
Posts: 556
Joined: Thu Oct 17, 2019 8:22 am
Location: Pembrokeshire-Wales

Re: Advice on partition and data storage

Post by muffybean »

AndyMH wrote:
Wed Feb 26, 2020 6:43 pm
Is this an external drive that is not always plugged in (which would be why it's not showing in blkid = not plugged in)? It would also explain why disks has put the nofail option in (should have spotted that).
Possibly an external, the only other disks I use is the CZ USB and a usb flash drive that I use for backups

Code: Select all

LABEL=USB-DRIVE /mnt/USB-DRIVE auto nosuid,nodev,nofail,x-gvfs-show 0 0
It is most probably another USB flash drive I used for transferring programs. so could I delete that line? also, I do not have a floppy drive on this machine and it is disabled in the bios so could take that out as well if that is OK.
Running Linux Mint MATE on 2 desktops + Linux Mint Xfce on Netbook + Cinnamon VM on 3rd Desktop
Post Reply

Return to “Installation & Boot”