Accidantelly deleted important partition

no:-/ How do I do that? (sry)

Open a text editor and edit the file /mnt/etc/fstab. Find the line for /efi. Then change UUID on that line to 331A-4FEB


I received an Error

Because you can’t edit that file as a normal user.

You need to edit the file as root. Since you are on the live ISO, it is fine to run the text editor with sudo. I think it is xed on the ISO so close it and try typing sudo xed from a new terminal. Not the one you are using for the chroot.

It is done Thank You soo much. I really thought it wasnt possible

1 Like

Just to make it completely clear: on a live ISO, there is no danger of doing that, because the ISO is immutable, so you can’t break it, but you should never run GUI programs with sudo on your actual, installed system.

3 Likes

Awesome to watch you guys save us noobs. You mentioned don’t run GUI programs with sudo… I occasionally run bleachbit to remove useless localizations, and I’ve been starting it in the terminal with sudo. Otherwise they’re not accessible. Is there a better way?

1 Like

localepurge.

sudo localepurge
Alias tip: sud localepurge
localepurge: Disk space freed:   8448 KiB in /usr/share/locale
localepurge: Disk space freed:      0 KiB in /usr/share/man
localepurge: Disk space freed:      0 KiB in /usr/share/cups/templates
localepurge: Disk space freed:      0 KiB in /usr/share/cups/templates
localepurge: Disk space freed:      0 KiB in /usr/share/help
localepurge: Disk space freed:      0 KiB in /usr/share/vim/vim90/lang

Total disk space freed by localepurge: 8448 KiB
1 Like

Yeah, don’t use bleachbit. It’s terrible software, you don’t need it.

2 Likes

What does this command do exactly? Is it different than removing cache with pacache?

Edit: example

pachche -r

So I hear. Only used it for locales. I think I have localepurge working. Thanks!

Removes unwanted locales, they take a fair bit of space.

This is different then the settings file locales? Where do they originate from?

Edit: You also have to install this package i assume?

They get installed with a lot of packages, but who needs vietnamese or chinese, unless you come from there :smiley:

Yes it is in the aur, install it, run it, report how much disk space you recover!!

*They = locales

[ricklinux@rick-ms7c37 ~]$ sudo localepurge

          You have to configure "localepurge" by editing

              /etc/locale.nopurge file

          to make /usr/bin/localepurge actually start to function.

          Nothing to be done, exiting ...

I guess i have to edit the conf file? What do you put in it or set?

Edit: Do you just uncomment this?

#DONTBOTHERNEWLOCALE

Edit: I think i figured it out. I only use english anyway.

[ricklinux@rick-ms7c37 ~]$ sudo localepurge
Some new locales have appeared on your system:

jp 

They will not be touched until you reconfigure localepurge
with the following command:

    /usr/bin/localepurge-config

localepurge: Disk space freed: 699636 KiB in /usr/share/locale
localepurge: Disk space freed:   4680 KiB in /usr/share/man
localepurge: Disk space freed:   1820 KiB in /usr/share/cups/templates
localepurge: Disk space freed:      0 KiB in /usr/share/cups/templates
localepurge: Disk space freed:   5516 KiB in /usr/share/help

Total disk space freed by localepurge: 711652 KiB
1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.