You are not logged in.

#1 2017-09-13 09:53:07

lviggiani
Member
Registered: 2014-02-28
Posts: 78

[SOLVED] Repair or reinstall Arch Linux on dual boot

Hi, today while booting I got a serious problem on my file system (EXT4 - inodes errors) and had to run fsck manually to be able to at least boot and save some data.
Now the system is working only partially but is corrupted (for example mySQL does not work anymore, querying installed packages fails due to corrupted files etc).
I want to recover or even better reinstall Arch Linux on this laprtop where I have dual boot with Windows 10 and GRUB as boot loader already in place.

My partitions looks like this:

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
nvme0n1     259:0    0   477G  0 disk
├─nvme0n1p1 259:1    0   500M  0 part /boot
├─nvme0n1p2 259:2    0   128M  0 part
├─nvme0n1p3 259:3    0  78,1G  0 part
├─nvme0n1p4 259:4    0    16G  0 part [SWAP]
└─nvme0n1p5 259:5    0 382,2G  0 part /

Arch is on nvme0n1p5 (last one).

I think the best solution is to reinstall Arch from scratch.

I would proceed as follow:

1) Boot with live USB
2) Delete partition nvme0n1p5 and recreate it (is it advisable to also recreate swap partition?)
3) Proceed with Arch Linux installation on that partititon as per Arch wiki

Will this work? Or is there anything else to do?

About bootloader (which is aready in boot partition): do I need to reinstall it?

Any other suggestion?

Thanks in advance for your help!

Last edited by lviggiani (2017-09-13 17:37:57)

Offline

#2 2017-09-13 10:12:26

fsckd
Forum Moderator
Registered: 2009-06-15
Posts: 4,058

Re: [SOLVED] Repair or reinstall Arch Linux on dual boot

You don't need to delete the partition. You need to just wipe the filesystem and recreate it.

Do you know why there is corruption? If the cause for corruption persists, reinstalling won't solve anything. (I have zero experience with NVMe other than jealousy, so haven't a clue myself how to troubleshoot them, sorry.)


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#3 2017-09-13 10:26:18

graysky
Member
From: /usr/share/zoneinfo/US/Eastern
Registered: 2008-12-01
Posts: 9,263
Website

Re: [SOLVED] Repair or reinstall Arch Linux on dual boot

A from scratch reinstall is an option but if you have a tarball backup that is too.  Since the boot loader is in place, so long as you do not change the partition UUiS, I think you're fine to just untar and go.  The reinstall just gives you a more minimal set of packages and stock configurations if you want.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs • 1.21 JIGOWATTS!

Offline

#4 2017-09-13 14:34:40

Blasphemist
Member
From: Colorado
Registered: 2013-01-17
Posts: 150

Re: [SOLVED] Repair or reinstall Arch Linux on dual boot

It's right above that just re-formatting your root partition is enough to start over on it. You'd leave the existing ESP, EFI System Partition in place. You need to re-install your boot loader of choice if you desire to use one. You have a boot entry in UEFI and the boot loader files on the ESP but the boot loader package wouldn't be installed unless you do that for your new installation. Configuration of the boot loader should be checked at least but may not need redone.

Re-installation may not be needed though. Too often we fall into re-installing instead of repairing. If you don't have anything to loose, fine, but be sure it's really the best option.


Simple and Open

Offline

#5 2017-09-13 15:53:39

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 23,641
Website

Re: [SOLVED] Repair or reinstall Arch Linux on dual boot

Not an Installation issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#6 2017-09-13 17:37:13

lviggiani
Member
Registered: 2014-02-28
Posts: 78

Re: [SOLVED] Repair or reinstall Arch Linux on dual boot

Thanks everyone!

Offline

Board footer

Powered by FluxBB