mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Linux (https://www.mersenneforum.org/forumdisplay.php?f=39)
-   -   Upgrading to new LTS version - any pitfalls? (https://www.mersenneforum.org/showthread.php?t=23594)

paulunderwood 2018-08-22 17:32

[QUOTE=Rodrigo;494460]
The /home folder is currently in the same partition as the OS. It's not a straightforward matter of creating a new partition for /home and copying everything over, is it?[/QUOTE]

The installation media for Xubuntu should have the program [c]gparted[/c], which will allow you resize a partition, and create a new one and format it.

Then you need a sane [c]/etc/fstab[/c] to reflect your new partition. So the first thing I would do before using gparted is to make sure no user processes are running and [c]cd /[/c], then [c]umount /home[/c] and [c]mv /home /home_orig[/c]. Then run gparted from the installation media and mount the new partition under /home (if gparted does that for you on request). Finally, boot, then [c]cp -pr /home_orig/* /home/[/c] and reboot. (I hope fstab will then be sane, otherwise it will need editing.)

This assumes you can log on as root and have enough disk space to do all these operations, otherwise you might consider using a USB HDD/SSD to act as an intermediate storage system.

[URL="https://www.maketecheasier.com/move-home-folder-ubuntu/"]This page[/URL] might help

Rodrigo 2018-08-23 05:41

Good news: I remembered that I'd put away a disk drive for an old laptop, containing Kubuntu 16.04. I'd used the drive last year when first exploring that OS, and would swap it occasionally with the original Vista HDD. What better way to test the process, especially since the drive includes the two critical programs (Master PDF Editor and Softmaker Office).

So I put the Kubuntu drive in the laptop, let it update, and soon it was offering the upgrade to 18.04. I allowed it to proceed.

Less than five hours later, I have a spanking new Kubuntu version on the laptop. Best of all, those two applications made it through unscathed! :fusion:

The only casualties seem to be the desktop icons (Firefox, Textmaker, and Dolphin), which are now generic. Even the Vista desktop theme was unaffected.

All in all, a very promising test run.

VictordeHolland 2018-09-14 16:08

My Dual_Xeon homebrewed machine with Ubuntu 16.04 LTS is now reporting errors every time I reboot (I can cancel them and everything [U]appears[/U] to function, but something is wrong under the hood). It probably happened after one of my last massive update/upgrades of packages (including trying gcc7.3), so I probably broke something.

I hope a distro upgrade to 18.04 LTS fixes it for me (I'm not counting on it, I'm downloading a new USB image as I type this). But who knows :)

chalsall 2018-09-14 19:15

[QUOTE=VictordeHolland;496080]My Dual_Xeon homebrewed machine with Ubuntu 16.04 LTS is now reporting errors every time I reboot (I can cancel them and everything [U]appears[/U] to function, but something is wrong under the hood).[/QUOTE]

What kind of errors?

[QUOTE=VictordeHolland;496080]I'm downloading a new USB image as I type this). But who knows :)[/QUOTE]

Always a good idea. I carry a bootable USB stick and a bootable CDR with me at all times. But, then, some have said I'm a bit paranoid and extreme (they're probably not incorrect)....

VictordeHolland 2018-09-14 21:56

[QUOTE=chalsall;496086]What kind of errors?[/QUOTE]
[I]The volume boot has 0 bytes[/I] disk space [I]remaining[/I]
which I found odd, since Ubuntu 16.04 was installed on a 3TB drive.
and LVM was complaining about something else (I forgot the exact message).

Anyway, I performed a clean install of 18.04 LTS with the USB stick. And now that I'm at it, I might just as well recompile the factoring programs that I was using on it (msieve, gmp-ecm, CADO-NFS, YAFU) so that I have the latest versions of them :smile:.

chalsall 2018-09-14 22:37

[QUOTE=VictordeHolland;496098][I]The volume boot has 0 bytes[/I] disk space [I]remaining[/I] which I found odd, since Ubuntu 16.04 was installed on a 3TB drive.
and LVM was complaining about something else (I forgot the exact message).[/QUOTE]

Listen to the warnings! Seriously!!! :wink:

"/boot/" is different from "/". Often on a different partition. And sometimes important for sanity....

[QUOTE=VictordeHolland;496098]Anyway, I performed a clean install of 18.04 LTS with the USB stick.[/QUOTE]

You might want to come around and figure out why your /boot/ partition became full, before it happens again.

FWIW.

xilman 2018-09-15 06:22

[QUOTE=chalsall;496103]Listen to the warnings! Seriously!!! :wink:

"/boot/" is different from "/". Often on a different partition. And sometimes important for sanity....



You might want to come around and figure out why your /boot/ partition became full, before it happens again.

FWIW.[/QUOTE]BTDT. The system on which I am typing has a 100M /boot partition. Too many kernels and, especially, compressed filesystems and it fills up quite rapidly. These days I'm in the habit of checking free space before building a kernel but several times in previous years /boot has filled --- with unfortunate consequences.

Another gotcha: /boot is often not mounted until required and then umounted afterwards. [c]df /boot[/c] then tells you the amount of space on the root partition and not on the /boot partition.


All times are UTC. The time now is 23:26.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.