Practical questions about disk partitioning, moving the /home directory and shrinking the / system directory.
Nils Kassube
kassube at gmx.net
Wed Jul 17 08:43:36 UTC 2024
On 17.07.24 Bas G. Roufs wrote:
> Yesterday, I forgot to attach the .txt file attached to this email.
> You'll find in that file:
> + everything from the fstab file used until 22 June 24 - /etc/fstab.ori;
> + everything from the fstab file I am using now, ever since 22 June 24;
> + a bunch of test results that reveal the UUID codes of all drives and
> partitions.
> I hope all this info together will help you to give me a good advise on
> rewriting the fstab file.
Thanks for sending the attachment. Now it looks clearer to me.
Fortunately there seem to be no duplicate UUIDs, so it shouldn't be a problem to connect the external disk.
So here is my modified version of the fstab file using the UUID for the sda5 partition:
-----------------------------------------------------------------
# /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>
UUID=2057-1177 /boot/efi vfat defaults 0 2
UUID=a26850d6-c991-4908-a3c8-2d9f3bf70dee / ext4 defaults 0 1
UUID=fc697194-bb73-4403-a072-e6f887af128b /home ext4 defaults 0 2
/swapfile swap swap defaults 0 0
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
-----------------------------------------------------------------
I have also attached the file to avoid issues with additional line breaks etc.
You should use this file after you have moved the bas folder to the top folder of sda5. As you can see, I have removed the entry for the external disk. Then it need not be connected when you boot the machine. If you connect the external disk while you are logged in to Kubuntu, there should be popup window where you can manage to connect it.
Nils
-------------- next part --------------
# /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>
UUID=2057-1177 /boot/efi vfat defaults 0 2
UUID=a26850d6-c991-4908-a3c8-2d9f3bf70dee / ext4 defaults 0 1
UUID=fc697194-bb73-4403-a072-e6f887af128b /home ext4 defaults 0 2
/swapfile swap swap defaults 0 0
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
More information about the kubuntu-users
mailing list