💾 Archived View for bacaliu.de › 20220915-switch-from-manjaro-to-arch.html captured on 2023-07-10 at 13:50:37.

View Raw

More Information

-=-=-=-=-=-=-

<!DOCTYPE html>
<html lang="en">
<head>
<!-- 2023-06-26 Mo 07:33 -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Switch From Manjaro To Arch</title>
<meta name="description" content="I document my process to backup my old data and install Arch linux the „hard“ way" />
<meta name="keywords" content="Arch, Manjaro, Linux" />
<meta name="generator" content="Org Mode" />

<meta property="og:type" content="article">
<meta property="og:site_name" content="Bacaliu.de">
<link rel="stylesheet" type="text/css" href="/css/modus.css">
<link rel="shortcut icon" href="/favicon.ico" sizes="65x65">
<script src=/static/js/htmx.min.js></script>
<link rel="stylesheet" type="text/css" href="/css/colors/auto.css"
      id="ef-theme"
      hx-swap="outerHTML" hx-get="/data/colorscheme"
      hx-trigger="load">
</head>
<body>
<header id="preamble" class="status">
<a id='top'></a>
<pre style='text-align: left; font-size: min(2vw, 1rem); display: inline-block;'>
 ___               _ _           _
| _ ) __ _ __ __ _| (_)_  _   __| |___
| _ \/ _` / _/ _` | | | || |_/ _` / -_)
|___/\__,_\__\__,_|_|_|\_,_(_)__,_\___|

</pre><br>
<a href='#top'>↑</a>
- <a href='/index.html'>Home</a>
- <a href='/search.html'>Search</a>
- <a href='#bottom'>↓</a>
<br>
<div hx-get="/data/colorlist" hx-trigger="load"></div>
<hr>
</header>
<main id="content" class="content">
<header>
<h1 class="title">Switch From Manjaro To Arch</h1>
<p class="subtitle" role="doc-subtitle">I'll use Arch btw</p>
</header><nav id="table-of-contents" role="doc-toc">
<h2>Table of Contents</h2>
<div id="text-table-of-contents" role="doc-toc">
<ul>
<li><a href="#motivation">1. Motivation</a></li>
<li><a href="#process">2. Process</a>
<ul>
<li><a href="#backup">2.1. Backup</a>
<ul>
<li><a href="#system">2.1.1. System</a></li>
<li><a href="#data">2.1.2. Data</a></li>
</ul>
</li>
<li><a href="#install-stick">2.2. Install-stick</a></li>
<li><a href="#installation">2.3. Installation</a></li>
<li><a href="#get-data-back">2.4. Get the data back</a></li>
<li><a href="#ready">2.5. Ready!</a></li>
</ul>
</li>
<li><a href="#-another-installation">3. Another Installation <span class="timestamp-wrapper"><span class="timestamp">&lt;2022-09-30 Fr&gt;</span></span></a>
<ul>
<li><a href="#problems">3.1. Problems</a></li>
<li><a href="#get-packages-back">3.2. Get the packages back</a></li>
<li><a href="#another-installation-2022">3.3. Ready!</a></li>
</ul>
</li>
<li><a href="#bibliography">4. Bibliography</a></li>
<li><a href="#nav">Nav</a></li>
</ul>
</div>
</nav>

<div id="outline-container-motivation" class="outline-2">
<h2 id="motivation"><span class="section-number-2">1.</span> <a href="#motivation">Motivation</a></h2>
<div class="outline-text-2" id="text-1">
<p>
Manjaro is a nice OS in general. But there are some issues (<a href="#citeproc_bib_item_7">Robertson 2022a</a>) like polybar fails for some weeks because Manjaros repos update two week after Archs', so the AUR is out of sync with them.<br>
</p>

<p>
It was a good starting point for me to experience Linux; now I feel confident enough to use bare Arch.<br>
</p>
</div>
</div>

<div id="outline-container-process" class="outline-2">
<h2 id="process"><span class="section-number-2">2.</span> <a href="#process">Process</a></h2>
<div class="outline-text-2" id="text-2">
</div>
<div id="outline-container-backup" class="outline-3">
<h3 id="backup"><span class="section-number-3">2.1.</span> <a href="#backup">Backup</a></h3>
<div class="outline-text-3" id="text-2-1">
<p>
It's possible, if having the <kbd>/home</kbd> folder in its own partition, to install a new linux system and keep the data. But there is the risk of overwriting it, therefore a Backup is recommended in any case.<br>
</p>
</div>

<div id="outline-container-system" class="outline-4">
<h4 id="system"><span class="section-number-4">2.1.1.</span> <a href="#system">System</a></h4>
<div class="outline-text-4" id="text-2-1-1">
<p>
To get a list of the currently installed packages, I stored the output of <code>pacman</code> into a file.<br>
</p>

<div class="org-src-container">
<label class="org-src-name"><span class="listing-number">Listing 1: </span>list of programms</label><pre class="src src-sh">pacman -Qeq &gt; package-list.txt
</pre>
</div>

<p>
(just lists the <i>explicit</i> installed packages.)<br>
</p>

<p>
This way, I <i>could</i> simply push this list into pacman to get the same packages as now; but I'll rather use it to look at it if I need to and don't install all the unused packages too.<br>
</p>
</div>
</div>

<div id="outline-container-data" class="outline-4">
<h4 id="data"><span class="section-number-4">2.1.2.</span> <a href="#data">Data</a></h4>
<div class="outline-text-4" id="text-2-1-2">
<p>
To backup my personal data, I plugged in an old HDD. It was named <code>/dev/sda1</code>. So I mounted it and archived my whole home-directory into it. While doing so, i ran into some errors.<br>
</p>
<ol class="org-ol">
<li>When doing my first try, I was logged in as <code>adrian</code>. At the very end complained about changed files. Conclusion: don't be logged in while cerating the backup.<br></li>
<li>By trying different compressions, I found that it's faster to just throw the data uncompressed at the drive than using something like . My initial thought was that the slow HDD would be the smallest part in the pipe, but it was the compression.<br></li>
</ol>

<p>
So I logged in as <code>root</code>, mountet the HDD and stored my data onto it.<br>
</p>

<div class="org-src-container">
<label class="org-src-name"><span class="listing-number">Listing 2: </span>mounting the HDD</label><pre class="src src-sh">mkdir ~/media
mount /dev/sda1 ~/media
</pre>
</div>

<div class="org-src-container">
<label class="org-src-name"><span class="listing-number">Listing 3: </span>backup the data</label><pre class="src src-sh">tar -cvf media/Backup/2022-09-15.tar /home/adrian
</pre>
</div>


<figure id="HDD with slightly oversized cooling fan">
<img src="images/IMG_20220915_145948.jpg" alt="IMG_20220915_145948.jpg"><br>

<figcaption><span class="figure-number">Figure 1: </span>HDD with slightly oversized cooling fan</figcaption>
</figure>
</div>
</div>
</div>


<div id="outline-container-install-stick" class="outline-3">
<h3 id="install-stick"><span class="section-number-3">2.2.</span> <a href="#install-stick">Install-stick</a></h3>
<div class="outline-text-3" id="text-2-2">
<p>
I just downloaded an Arch-iso from some mirror (<a href="#citeproc_bib_item_2">“Arch Linux - Downloads” 2022</a>) and wrote it on the usb-drive. (The stick was connected as <code>/dev/sda</code>.)<br>
</p>

<div class="org-src-container">
<label class="org-src-name"><span class="listing-number">Listing 4: </span>writing</label><pre class="src src-sh">pv archlinux-2022.09.03-x68_64.iso &gt; /dev/sda
</pre>
</div>
</div>
</div>

<div id="outline-container-installation" class="outline-3">
<h3 id="installation"><span class="section-number-3">2.3.</span> <a href="#installation">Installation</a></h3>
<div class="outline-text-3" id="text-2-3">
<p>
The installation is relatively simple. (<a href="#citeproc_bib_item_6">“Installation guide - ArchWiki” 2022</a>)<br>
</p>
<ol class="org-ol">
<li>make the computer boot from the usb-drive<br></li>
<li>the arch-iso loads<br></li>
<li><p>
run (<a href="#citeproc_bib_item_1">archlinux 2022</a>) and fill in all the information<br>
</p>

<p>
I let the installer whipe the whole disk, created a user <code>adrian</code> again, set up language, time, keyboard and installed i3wm (<a href="#citeproc_bib_item_4">Developers 2022</a>) as a window manager.<br>
</p></li>
</ol>
</div>
</div>

<div id="outline-container-get-data-back" class="outline-3">
<h3 id="get-data-back"><span class="section-number-3">2.4.</span> <a href="#get-data-back">Get the data back</a></h3>
<div class="outline-text-3" id="text-2-4">
<p>
Now I had a functional Arch-System with nearly empty home directory. I took the HDD, mountet it and moved the data back. I did it again as <code>root</code> to prevent any more difficulties.<br>
</p>

<div class="org-src-container">
<label class="org-src-name"><span class="listing-number">Listing 5: </span>mounting the HDD</label><pre class="src src-sh">mkdir ~/media
mount /dev/sda1 ~/media
</pre>
</div>

<div class="org-src-container">
<label class="org-src-name"><span class="listing-number">Listing 6: </span>get the data back</label><pre class="src src-sh">tar --skip-old-files --file media/Backup/2022-09-15.tar /
</pre>
</div>

<p>
Notice<br>
</p>
<ol class="org-ol">
<li>the flag, which I used to pause and resume the extraction to get sleep without the noise of the HDD.<br></li>
<li>the location is specified as and not as , because the archive already contains the information about where the data goes.<br></li>
</ol>
</div>
</div>


<div id="outline-container-ready" class="outline-3">
<h3 id="ready"><span class="section-number-3">2.5.</span> <a href="#ready">Ready!</a></h3>
<div class="outline-text-3" id="text-2-5">
<div class="org-src-container">
<pre class="src src-sh">pfetch
</pre>
</div>

<pre class="example" id="orga31afce">
      /\         adrian@archlinux
     /  \        os     Arch Linux
    /\   \       host   81LG Lenovo IdeaPad L340-15IWL
   /      \      kernel 5.19.8-arch1-1
  /   ,,   \     wm     i3
 /   |  |  -\    uptime 6h 23m
/_-''    ''-_\   pkgs   791

</pre>

<p>
Now I run Arch. Browser, Matrix-client etc. work all like before on Manjaro, because their userdata is unchanged. I've already installed some missing packages as I ran into errors in my daily workflow (one because of a bug in Doom Emacs (<a href="#citeproc_bib_item_5">doomemacs 2022</a>) which I installed manually), and there are still some missing. Nevertheless There are only 791 packages installed currently. On Manjaro I had more then two thousand installed!<br>
</p>
</div>
</div>
</div>

<div id="outline-container--another-installation" class="outline-2">
<h2 id="-another-installation"><span class="section-number-2">3.</span> <a href="#-another-installation">Another Installation <span class="timestamp-wrapper"><span class="timestamp">&lt;2022-09-30 Fr&gt;</span></span></a></h2>
<div class="outline-text-2" id="text-3">
<p>
After two weeks, I decided to install it again. The main reason is, that <code>archinstall</code> decided the <code>/</code> Partition should only get 20GB, which is not enough for all the software I use. Also I<br>
</p>
<ul class="org-ul">
<li>use Systemd-boot, because Grub has some annoying problems (<a href="#citeproc_bib_item_8">Robertson 2022b</a>)<br></li>
<li>use no preslected profile (like i3wm which would install all stuff to make i3 run), because I made a new package-list which I just read in before the reinstall<br></li>
</ul>
</div>

<div id="outline-container-problems" class="outline-3">
<h3 id="problems"><span class="section-number-3">3.1.</span> <a href="#problems">Problems</a></h3>
<div class="outline-text-3" id="text-3-1">
<p>
I run into the same problems this time, as last time. But this time I was prepared for this and documented my way solving them.<br>
</p>
<ul class="org-ul">
<li><p>
No Internet connection<br>
</p>
<div class="org-src-container">
<label class="org-src-name"><span class="listing-number">Listing 7: </span>enable network</label><pre class="src src-sh">systemctl enable systemd-networkd
systemctl start systemd-networkd
systemctl enable systemd-resolved
systemctl start systemd-resolved
pacman -S NetworkManager
systemctl enable NetworkManager
systemctl start NetworkManager
</pre>
</div>
<ul class="org-ul">
<li><code>systemctl</code> enable and start <code>systemd-networkd</code>, <code>systemd-resolved</code><br></li>
<li>install <code>NetworkManager</code> and <code>systemctl</code> enable and start it's<br></li>
</ul></li>
<li><p>
For some reason, the locale wasn't set right. So I had to edit the <code>/etc/locale.conf</code> and <code>/etc/locale.gen</code>, then run <code>locale-gen</code><br>
</p>
<div class="org-src-container">
<label class="org-src-name"><span class="listing-number">Listing 8: </span>/etc/locale.conf</label><pre class="src src-conf"><span class="org-variable-name">LANG</span>=de_DE.UTF-8
</pre>
</div>
<div class="org-src-container">
<label class="org-src-name"><span class="listing-number">Listing 9: </span>/etc/locale.gen</label><pre class="src src-conf"><span class="org-comment-delimiter">#</span><span class="org-comment">...</span>
de_DE.UTF-8 <span class="org-comment-delimiter"># </span><span class="org-comment">(comment out the needed language)</span>
<span class="org-comment-delimiter">#</span><span class="org-comment">...</span>
</pre>
</div>
<div class="org-src-container">
<label class="org-src-name"><span class="listing-number">Listing 10: </span>generate locale</label><pre class="src src-sh">sudo locale-gen
</pre>
</div></li>
</ul>
</div>
</div>

<div id="outline-container-get-packages-back" class="outline-3">
<h3 id="get-packages-back"><span class="section-number-3">3.2.</span> <a href="#get-packages-back">Get the packages back</a></h3>
<div class="outline-text-3" id="text-3-2">
<p>
First, I needed to get paru (<a href="#citeproc_bib_item_3">“AUR (en) - paru” 2022</a>), a very useful AUR-helper.<br>
</p>

<p>
Following the instructions on it's github-page, I installed <code>git</code> and <code>base-devel</code>, cloned it <b>as a normal user</b>, then <code>mkpkg -si</code>.<br>
</p>

<p>
Afterwards, I could simply push the List of packages into it.<br>
</p>

<div class="org-src-container">
<label class="org-src-name"><span class="listing-number">Listing 11: </span>reinstall the packages</label><pre class="src src-sh">paru -S $(cat ~/media/package-list.txt)
</pre>
</div>
</div>
</div>

<div id="outline-container-another-installation-2022" class="outline-3">
<h3 id="another-installation-2022"><span class="section-number-3">3.3.</span> <a href="#another-installation-2022">Ready!</a></h3>
<div class="outline-text-3" id="text-3-3">
<p>
Now I use Arch again, but<br>
</p>
<ul class="org-ul">
<li>The <code>/</code> partition will not run full unless my <code>/home</code> is full too (because both are the same)<br></li>
<li>by using <code>systemd-boot</code> instead of <code>grub</code> I don't risk any issues<br></li>
<li>By Installing it a second time, I got better in getting the network work. (last time I tried so many things, that I couldn't write about it, I just hadn't known what made it work)<br></li>
</ul>
</div>
</div>
</div>

<div id="outline-container-bibliography" class="outline-2">
<h2 id="bibliography"><span class="section-number-2">4.</span> <a href="#bibliography">Bibliography</a></h2>
<div class="outline-text-2" id="text-4">
<style>.csl-entry{text-indent: -0; margin-left: 0;}</style><div class="csl-bib-body">
  <div class="csl-entry"><a id="citeproc_bib_item_1"></a>archlinux. 2022. “archinstall,” <i>Github</i> September 16, 2022, URL: <a href="https://github.com/archlinux/archinstall">https://github.com/archlinux/archinstall</a>.</div>
  <div class="csl-entry"><a id="citeproc_bib_item_2"></a>“Arch Linux - Downloads,”. 2022. September 16, 2022, URL: <a href="https://archlinux.org/download">https://archlinux.org/download</a>.</div>
  <div class="csl-entry"><a id="citeproc_bib_item_3"></a>“AUR (en) - paru,”. 2022. October 1, 2022, URL: <a href="https://aur.archlinux.org/packages/paru">https://aur.archlinux.org/packages/paru</a>.</div>
  <div class="csl-entry"><a id="citeproc_bib_item_4"></a>Developers, I. 2022. “i3 - improved tiling wm,” June 21, 2022, URL: <a href="https://i3wm.org">https://i3wm.org</a>.</div>
  <div class="csl-entry"><a id="citeproc_bib_item_5"></a>doomemacs. 2022. “Symbol’s function definition is void,” <i>Github</i> September 16, 2022, URL: <a href="https://github.com/doomemacs/doomemacs/issues/6784">https://github.com/doomemacs/doomemacs/issues/6784</a>.</div>
  <div class="csl-entry"><a id="citeproc_bib_item_6"></a>“Installation guide - ArchWiki,”. 2022. <i>Archwiki</i> September 16, 2022, URL: <a href="https://wiki.archlinux.org/title/Installation_guide">https://wiki.archlinux.org/title/Installation_guide</a>.</div>
  <div class="csl-entry"><a id="citeproc_bib_item_7"></a>Robertson, B. 2022a. “I Can No Longer Recommend Manjaro Linux,” <i>Youtube</i>, Youtube September 16, 2022, URL: <a href="https://www.youtube.com/watch?v=5KNK3e9ScPo&feature=youtu.be">https://www.youtube.com/watch?v=5KNK3e9ScPo&#38;feature=youtu.be</a>.</div>
  <div class="csl-entry"><a id="citeproc_bib_item_8"></a>Robertson, B. 2022b. “GRUB Broke My Arch Linux Installation!,” <i>Youtube</i>, Youtube August 30, 2022, URL: <a href="https://www.youtube.com/watch?v=b_KHtK2b5cA">https://www.youtube.com/watch?v=b_KHtK2b5cA</a>.</div>
</div>
</div>
</div>

<div id="outline-container-nav" class="outline-2">
<h2 id="nav"><a href="#nav">Nav</a></h2>
<div class="outline-text-2" id="text-nav">
<ul class="org-ul">
<li>Tags: <a href="./tags/IT.html">IT</a> - <a href="./tags/Linux.html">Linux</a><br></li>
</ul>
<!-- BEGIN insert Backlinks (but there are no) -->
<ul class="org-ul">
<li>Formats: <a href="./20220915-switch-from-manjaro-to-arch.md">md</a> - <a href="./20220915-switch-from-manjaro-to-arch.txt">txt</a> - <a href="./20220915-switch-from-manjaro-to-arch.html">html</a> - <a href="./20220915-switch-from-manjaro-to-arch.gmi">gmi</a></li>
</ul>
</div>
</div>
</main>
<footer id="postamble" class="status">

<hr>
2022-09-15 
<br>
<img alt="CC BY-4.0" style="border-width:0; vertical-align: middle; height: 1em;" src="/icons/cc-by-4.0-80x15.svg">
<a rel='license' href='http://creativecommons.org/licenses/by/4.0/'>
        CC BY-4.0.
</a>
<br>
running at <a href='https://www.hosting.de/'>hosting.de</a>
<br>
Creator: <a href="https://www.gnu.org/software/emacs/">Emacs</a> 28.2 (<a href="https://orgmode.org">Org</a> mode 9.5.5);
<br>
<a href='/impressum-datenschutz.html' id='impressum-dings'>
    Impressum und Datenschutzerklärung
</a>
<a id='bottom'></a>
</footer>
</body>
</html>