Score:1

Removing Ubuntu from a previous install, leaving the data

pk flag

Ubuntu 22.04.1 LTS is installed as dual-boot with Windows 11 onto a 1 TB SSD. An internally-attached 8TB hard drive contains a 6TB partition with Ubuntu 18.04 LTS installed, which has my Shotwell folder containing 4.3 TB of photos and videos. I would like to remove all of the Ubuntu 18.04 system files from the disk, freeing up space for more photos. Is it possible to delete the system files or must I copy my photos to another drive and reformat this drive to get the space back?

Nmath avatar
ng flag
Ubuntu system files take up an insignificant amount of space, a drop in the bucket when you are talking about 4-8TB. That being said, why can't you just delete everything you don't want to keep? Is there something preventing you from doing that? Before you do anything, I hope you have good backups of any data you don't want to lose. You hopefully can identify which files and folders contain your photos and videos and which ones do not, but this is insurance against yourself making a mistake.
Score:0
cn flag

To remove the Ubuntu system files without removing the user data, delete all folders except the ones you want to keep. You can do that from a live session started by booting an Ubuntu installation USB or DVD.

Restore the Windows bootloader, so the system boots automatically into Windows without loading the linux bootloader first.

Note, however, that Linux uses the ext4 file system, which Windows cannot access, although drivers are available to do so. So in the end, you will prefer to reformat the drive to ntfs instead, then copy the photo's back to that drive from your backup.

hessmo avatar
pk flag
I modified my question before I noticed the answer. I was unaware that a live session would allow me to delete the unwanted system files, so this is the answer that I'm looking for. Thank you
vanadium avatar
cn flag
If this answer resolved your question, then please show your appreciation by "accepting" it: click the checkmark next to the question.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.