• Linux
  • May 2018
    M T W T F S S
    « Apr   Jun »
     123456
    78910111213
    14151617181920
    21222324252627
    28293031  
  • Meta

  • Follow me on Twitter

  • Advertisements

A locale fix & an install script

When running updates on my Linux machines, I’d been seeing an error message in the terminal when update-initramfs ran — “Warning: No support for locale: us_US.UTF-8” It didn’t seem to be affecting anything but my curiosity about reached its limit and I googled it. The warning message appears because /usr/share/initramfs-tools/hooks/root_locale  is expecting to see individual locale directories in /usr/lib/locale,  but locale-gen is configured to generate an archive file by default.

The solution was simple – just two commands:

sudo locale-gen –purge –no-archive
sudo update-initramfs -u -t

Since I’d been seeing the warning message on all of my Linux systems, I put the commands into a bash script. Easy fix.

[12 July 2018 edit: I added the two commands to the scripts I run after a fresh install of Linux Mint since I know that locale-gen will, by default, generate locale-archive and cause the error when running update-initramfs. It seems like a good time to apply the fix.]

When I ran the script on the Latitude E5500, I get an error indicating the drive was full. I’m not sure how I managed to fill it but for all intents and purposes, it was. I had originally set it up with root and home both on a single LVM partition so I figured it was a good time to reinstall Mint on it while dividing the drive into three partitions – root, swap, and home.

Once I got Mint reinstalled, I tested a script I’d put together to install a few utilities, applications, services, and tweaks. Parts of the script worked while other parts of it didn’t so there were some things that I had to individually install. I’m looking at the script and seeing if I can tweak it some and determine why some things didn’t install.

I’m probably going to reload my Dell Latitude E6500 soon which is also set up with an LVM partition. I’m also thinking about reloading my Lenovo M91p desktop. It’s partitioning is a little funky too, essentially a 500GB Windows 10 partition and a Linux partition. I’ve had the system for a little over six months and I’ve never booted into the Windows partition and I don’t think it’s likely that I will. Maybe there’s a way I can move the Windows to another drive. It’s just the installation file. I’ll have to look into that.

Advertisements
%d bloggers like this: