I lost access to my ubuntu operating system because of a sudden "kernel panic", which I described in this question (Kernel panic 0x00007f00). I spent the entire day trying to boot to the system and get the data, since all my external hard drives failed recently. I am considering reinstalling ubuntu without the "format" checkbox. Will it delete the user files? I found completely opposite answers to this same question on previous stack overflow entries this year.
2 Answers
So, to help future users with the same issue:
-Boot into the Live USB
-Click install ubuntu
-When there is a list of options such as "Erase Partition and Reinstall Ubuntu", choose "Something else" instead
-There will be a list of partitions. If you, like me, have only one partition for ubuntu, and don't have any other separate partition for /home, then, one and only one of the partitions will be listed as having ubuntu. Choose that partition, choose Ext4 and mount point /, and make sure the "Format?" checkbox is not checked.
-If, for example, the ubuntu partition is /dev/sda2, choose /dev/sda as the device to mount the bootloader.
-If you do things right, the installation will warn you that you DIDN'T choose any partition to be formated. That's good. It will also warn you to backup any critical system files, and will list some system file directories as examples, which do not include /home. That's good too.
I had a kernel panic 0x0007f00, and could solve it after doing this procedure for reinstallation.
Always backup your personal data. But, if you, like me yesterday, wasn't able to do it in time, this procedure might help you reinstalling ubuntu while preserving the data.

- 131
You can reinstall Ubuntu without erase your personal data (the one in the /home). I assume that you create different partitions in your system for:
- /home
- swap (optional)
- root/
If you did that, then when you ask to select partitions in your install settings window, you check "format" only in root partition. Doing that, you keep your old files in /home partition (You still have to select the partition as mount point for /home, but without format it).

- 13
something else
option it will format and erase the partitions it is told to format. Use a Live or Persistent Ubuntu USB to recover your files. – C.S.Cameron Oct 13 '20 at 02:47ubiquity
,subiquity
andcalamares
installers, and options can vary on the installer used; ie. ISO selected). You've provided no details on which you're talking about. – guiverc Oct 13 '20 at 02:52No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04 LTS Release: 20.04 Codename: focal
– David Moseler Oct 13 '20 at 02:58ubiquity
which yes will be something-else and ensure 'format' is unchecked, however backup first, and I'd find your issue first (hardware related unless you made a change in the prior session before the kernel panic). If the change/panic was caused by a user config, it'll likely occur again on new install; if a system config yes it will be fixed.. If a package added by user, it may still re-occur (details maybe more obscured by unclean re-install); result will depend on currently unknown cause – guiverc Oct 13 '20 at 03:04rsync
. I'd suggest using whatever tools you normally use (rsync
for me,cp
orscp
to just copy etc). Youmount
the internal drive on the live system, then backup/copy/rsync from the mounted directory. – guiverc Oct 13 '20 at 03:23