0

I have 2 versions of Ubuntu-Mate, 18.04 and 20.04.

This is my home directory for 20.04.

/media/andy/81353260-b5a5-4b72-9fce-432e7c620fdc/home/andy/

/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/sda2 during installation

UUID=5b4b2ae5-9aaa-4559-9f41-afb313998c75 / ext4 errors=remount-ro 0 1 /swapfile none swap sw 0 0

Is there a way I can change the name to a more user friendly and shorter name.

fixit7
  • 3,127

4 Answers4

1

You could create an symlink in the /home directory of your 20.04 installation.

sudo ln -s /media/andy/81353260-b5a5-4b72-9fce-432e7c620fdc/home/andy /home/andy_1804

Then simply access your 18.04 "home" folder by using the shorter path "/home/andy_1804".

Enterprise
  • 12,352
0

The reason I wanted a shorter name for my home directory is I thought I would have to change some aliases that change directories.

One alias was alias dwn='cd /home/andy/Downloads'

But the actual directory is

/media/andy/81353260-b5a5-4b72-9fce-432e7c620fdc/home/andy/Downloads/

But the alias still works.

fixit7
  • 3,127
0

Run

  • lsblk to spot which partition holds the 20.04 install

  • blkid /dev/[what you found with sd* or nvme*n*p*] and copy the entire UUID=xx string (including the UUID= part)

  • mkdir whatever folder name you want in the /media/andy folder (ex. mkdir /media/andy/2004)

  • sudo nano /etc/fstab

  • Get at the end of the file and paste what I wrote in the code block and replace the UUID= and /media/andy/ part with yours

UUID=xxxxxx /media/andy/  ext4 rw,nofail,nosuid,nouser,auto,exec user 0 0 

See man 5 fstab and man 8 mount to find docs about what I did

Reboot and normally you should be able to cd to your new directory and have your partition mounted

0

I had the same issue. Go to settings and then about. Change the Device Name and voilà.