Advanced Partitioning

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
lizbeth

Advanced Partitioning

Post by lizbeth »

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=dedd17d8-bc36-4c64-b822-4ea008accbbc /boot ext4 rw,errors=remount-ro 0 0
# /dev/sda5
UUID=6fd53794-afac-4626-be27-eb11c159c026 /home/lizzi/Downloads ext4 rw,errors=remount-ro 0 0
# /dev/sda11
UUID=25b6c059-83e4-49b0-913f-1eb2ec301e3a /home ext4 rw,errors=remount-ro 0 0
# /dev/sda10
UUID=2b5e94cf-5c14-4f82-a032-4920e9980b05 / ext4 rw,errors=remount-ro 0 1
# /dev/sda9
UUID=f10103e7-b921-4c4f-8904-1998bace69a2 /opt ext4 rw,errors=remount-ro 0 0
# /dev/sda8
UUID=1c89b80c-78fe-4c01-b56e-16fd74b2583b /usr ext4 rw,errors=remount-ro 0 0
# /dev/sda7
UUID=30753dd4-a7a2-441c-ae5d-fffb31b71cce /var ext4 rw,errors=remount-ro 0 0
# /dev/sda6
UUID=d75eea3a-3959-4f2a-92cc-01f02e25814c /tmp ext4 rw,errors=remount-ro 0 0
# /dev/sda3
UUID=6bda764b-0f2d-4e20-ad76-cd225ae9364d swap swap sw 0 0


Somehow, my /home/lizzi/Downloads is inaccessible. Any thoughts on what to do?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
xenopeek
Level 25
Level 25
Posts: 29506
Joined: Wed Jul 06, 2011 3:58 am

Re: Advanced Partitioning

Post by xenopeek »

Well, let's step through that. Was it accessible earlier and suddenly no longer? Or have you just set it up and won't it work at all.

First, let's see if the partition is even mounted. Run the following command on the terminal and it will list all the mounted partitions. You would expect "/dev/sda5 on /home/lizzi/Downloads" to be there in the output.

Code: Select all

mount | grep ^/
If it is not, check the UUID:

Code: Select all

sudo blkid -c /dev/null
This will list the UUIDs of all your partitions. You would expect /dev/sda5's UUID to match up with the value in /etc/fstab.

Next, check the ownership and permissions on the mount point?

Code: Select all

ls -ld /home/lizzi/Downloads
When in doubt, just copy the text from the terminal here for us to have a look. You can easily copy text to/from the terminal, see its Edit menu.

Side note, I see that except for your root partition you have the <pass> value for each partition set to 0 (zero). That should be 2 (indeed it should be 1 for the root partition). With pass 0, the partitions won't be checked regularly by fsck. With pass 2 they will. I hope there is no data corruption on your Downloads partition, but perhaps.
Image
lizbeth

Re: Advanced Partitioning

Post by lizbeth »

It's a new setup that isn't working......

first :
  • mount | grep ^/
    /dev/disk/by-uuid/2b5e94cf-5c14-4f82-a032-4920e9980b05 on / type ext4 (rw,relatime,errors=remount-ro,user_xattr,barrier=1,data=ordered)
    /dev/sda1 on /boot type ext4 (rw,relatime,errors=remount-ro,user_xattr,barrier=1,data=ordered)
    /dev/sda5 on /home/lizzi/Downloads type ext4 (rw,relatime,errors=remount-ro,user_xattr,barrier=1,data=ordered)
    /dev/sda11 on /home type ext4 (rw,relatime,errors=remount-ro,user_xattr,barrier=1,data=ordered)
    /dev/sda9 on /opt type ext4 (rw,relatime,errors=remount-ro,user_xattr,barrier=1,data=ordered)
    /dev/sda8 on /usr type ext4 (rw,relatime,errors=remount-ro,user_xattr,barrier=1,data=ordered)
    /dev/sda7 on /var type ext4 (rw,relatime,errors=remount-ro,user_xattr,barrier=1,data=ordered)
    /dev/sda6 on /tmp type ext4 (rw,relatime,errors=remount-ro,user_xattr,barrier=1,data=ordered)
Second:
  • sudo blkid -c /dev/null
    /dev/sda1: UUID="dedd17d8-bc36-4c64-b822-4ea008accbbc" TYPE="ext4"
    /dev/sda3: LABEL="Swap" UUID="6bda764b-0f2d-4e20-ad76-cd225ae9364d" TYPE="swap"
    /dev/sda5: LABEL="Downloads" UUID="6fd53794-afac-4626-be27-eb11c159c026" TYPE="ext4"
    /dev/sda6: UUID="d75eea3a-3959-4f2a-92cc-01f02e25814c" TYPE="ext4"
    /dev/sda7: UUID="30753dd4-a7a2-441c-ae5d-fffb31b71cce" TYPE="ext4"
    /dev/sda8: UUID="1c89b80c-78fe-4c01-b56e-16fd74b2583b" TYPE="ext4"
    /dev/sda9: UUID="f10103e7-b921-4c4f-8904-1998bace69a2" TYPE="ext4"
    /dev/sda10: UUID="2b5e94cf-5c14-4f82-a032-4920e9980b05" TYPE="ext4"
    /dev/sda11: UUID="25b6c059-83e4-49b0-913f-1eb2ec301e3a" TYPE="ext4"


Third:
  • ls -ld /home/lizzi/Downloads
    drwxr-xr-x 2 lizzi lizzi 4096 May 8 03:40 /home/lizzi/Downloads

Lastly, when I access the partitioning in gparted, /home/lizzi/Downloads aka /dev/sda5 is 228.75 GB but when I access it through the file manager it shows /home/lizzi/Downloads = 9.86 MB or the same size as /home

Also, Downloads shows mounted on my desktop...
lizbeth

Re: Advanced Partitioning

Post by lizbeth »

So the uuids match and i have ownership of the partition/mount... weird eh?
lizbeth

Re: Advanced Partitioning

Post by lizbeth »

Also in my file manager, Downloads appears on the left panel with the hard drive image next to it, twice in the list..
lizbeth

Re: Advanced Partitioning

Post by lizbeth »

I changed the labels i gparted for sda5 from Downloads to files... same problem, files is reported in file manager as the same size as home directory even though sda5 is mounted as /home/lizzi/Downloads at the time of install and sda11 is mounted as /home at time of install...

So obviously, the files on sda5 are not available
User avatar
xenopeek
Level 25
Level 25
Posts: 29506
Joined: Wed Jul 06, 2011 3:58 am

Re: Advanced Partitioning

Post by xenopeek »

lizbeth wrote:Lastly, when I access the partitioning in gparted, /home/lizzi/Downloads aka /dev/sda5 is 228.75 GB but when I access it through the file manager it shows /home/lizzi/Downloads = 9.86 MB or the same size as /home
The first number (228.75 GB) is the total available disk space on the partition. The second number (9.86 MB) is the user disk space. If you don't have any files in Downloads, that wouldn't be strange.

I don't usually mount partitions in my home folder, I link to them from my home folder. Perhaps there is a difference. If you are willing to try, we could mount this partition somewhere else and then link it from your home folder.

Run the following commands to create a new mount point:

Code: Select all

sudo mkdir /Downloads
sudo chmod 1777 /Downloads
Then edit your /etc/fstab file as root and change:
UUID=6fd53794-afac-4626-be27-eb11c159c026 /home/lizzi/Downloads ext4 rw,errors=remount-ro 0 0
to:
UUID=6fd53794-afac-4626-be27-eb11c159c026 /Downloads ext4 rw,errors=remount-ro 0 0
Save the file and close it. Then run the following command to first unmount (not a typo in below) the old mount and then mount it with the new configuration.

Code: Select all

sudo umount /dev/sda5
sudo mount -a
Finally, create a link to it from your home folder (I'm calling it Downloads2 for now, so as to not overwrite your current Downloads folder--you can rename it later if this does work correctly):

Code: Select all

ln -s /Downloads /home/lizzi/Downloads2
Then see if the Downloads2 folder in your home folder is working correctly for you.
Image
lizbeth

Re: Advanced Partitioning

Post by lizbeth »

That worked well! Thanks!


Only one nit though... All the permissions in /home/lizzy/Downloads2 was set to root....
User avatar
Lumikki
Level 4
Level 4
Posts: 228
Joined: Wed Feb 01, 2012 5:21 pm

Re: Advanced Partitioning

Post by Lumikki »

Not sure if this affects anyting. I'm just newbie.

You seem to have mount /home in fstab after you mount something behind it.
Meaning mount /home before you mount /home/lizzy/....
Asus P7P55D, i5 750 2.6Ghz, 8GB DDR3, GeForce 750Ti, 80GB Intel SSD, Dell 1600x1200, Dual boot, Linux Mint 19.3 Cinnamon, Windows 7
lizbeth

Re: Advanced Partitioning

Post by lizbeth »

Good Question.... i should reinstall and reorder fstab and see... I did apply the other solution and it worked tho so I think its a keeper
lizbeth

Re: Advanced Partitioning

Post by lizbeth »

AHHHHH!!!!! Got my account back.... liking this again....
Locked

Return to “Installation & Boot”