1

During an upgrade to the latest Ubuntu version, my disk got full and lots of issues started to appear such as being unable to boot so I tried several different solutions but whilst every solution seemed to fix something, on reboot another issue appeared.

So, my question is, if I reinstall on top of my existing installation, would it replace all broken system files?

I don't care about reinstalling any apps I had before. My main concern is not to lose my /home/username folder during the reinstallation process.

graham
  • 13,061

1 Answers1

-1

It would.

In case you have a separated /home partition you can re-install system and fix all of your issues. So i will share a similar issue i had in system and how i re-installed it.

Make a bootable usb of an ubuntu installation Do things normally and when you get to installation type you select the something else. You remove the old system partition and install new system on the free space you made. do not make a separated home.

When ubuntu is installed successfully you restore your old /home as your current home partition by editing the fstab

Prepare mount point sudo mkdir /mnt/temp_home Mount temporary sudo mount /dev/sdXY /mnt/temp_home

sudo -H gedit /etc/fstab 

Edit your fstab Add these lines:

/dev/sdXY   /home   ext4   defaults   0   2

/dev/sdXY: Replace with your home partition's device identifier.

/home: Mount point where the partition should be mounted. ext4: File system type (adjust accordingly if your partition uses a different file system).

defaults: Mount options (typically defaults is sufficient for most use cases).

0: Specifies the order of file system checks at boot (usually 0 for non-root partitions).

2: Specifies whether the file system should be backed up using dump (usually 2 for /home).

finally do a reboot.

trojan
  • 42