Skip to content

What happens when an Arch installation breaks?

I’ve been booting off a live USB more than I use my Windows system. Now that I want to do a bare metal install, I want to know what happens if Arch ever breaks on me.

Do I lose all my files? Do I have to fix the corrupted file in boot? Am I able to restore it from a backup?

16 points22 comments
Open on Reddit
About this post
Posted
Archived
Score
16 · 87% up
Kind
Text
ID
orp749

Author

6
posts
11
comments
0
media
View profile

25 comments

this is impossible to answer because there are many many ways an operating system can "break". but i cant think of one that wouldn't be recoverable with a backup that isnt also broken

31 points
unknown author

Deleted before we saved it.

9 points

If that’s the case I don’t mind even if I had to reinstall weekly. Thank u!

5 points

Unlike windows there's very few cases in Linux distros where you reinstall the OS.

The way you usually get the system back up is use the live boot usb then try to undo whatever broke the system.

8 points
unknown author

Deleted before we saved it.

17 points

The usual way of archlinux "breaking" (which does not happen nearly as much as people talk about it) is some change you did or some update messing things up, so it doesn't boot anymore.

No, that does not mean you lose anything (unless you fully encrypted your stuff and then messed up the headers without backups; but that's something you actively do, not something that might just happen...). And you basically just repeat what you already did while installing: Booting a live usb, (skip creating the partitons/filesystem ofc,) mount your drives and either fix your issue there directly or chroot into your system to repair/reconfigure/undo what broke it, then reboot.

If your Windows doesn't boot up anymore, you don't lose your stuff either. In the worst case you hook up the drives to another working system and copy everything you want to keep before you start reinstalling. Linux in general is much easier in that regard, because you have this "other working system" just from booting some easy accessible live system (as the archlinux stick you used for installing anyway). Even better that it brings the tools to not only access the raw files but to actually log into your not-booting system.

13 points

That seems simple enough. Idk why it’s always mentioned if the system is still restorable. Thank u!

5 points

Because (especially as a beginner when you are more prone to messing something up and not entirely comfortable using the command line) it's easy to panic when your system suddenly doesn't boot anymore. After the first couple of times, you just put your boot stick in, mount your stuff, login and take a look at the journal to find the problem.

For example a simple typo in your /etc/fstab can lead to your drives/partitions not being found properly and stopping the boot process.

But there's a wide margin between "oh my god ... what happened... my pc doesn't work anymore... did my drive die ... what do I do now" and "let's take a look... hmm... partition not found... open /etc/fstab ... wow, did I really type '/dev?sdb2' there instead of '/dev/sdb2'... sigh and reboot"

6 points

And if you hose your system somehow, you can always post the issue here. Yes, three people will tell you to go read the wiki, but four will tell you exactly what happened and how to fix it.

4 points

It's extremely unlikely your system will ever "break" to where it's unbootable. I've only had that happen once in the past decade of using Arch and it was a result of me deleting something I shouldn't have.

As others have mentioned you can simply boot into another OS, mount the drive and copy things over (as long as it's not encrypted). If you have important data, use a cloud service such as Dropbox or regularly make backups (https://wiki.archlinux.org/title/System_backup).

2 points

Often you can fix it by booting a live USB and chrooting into your system and fixing what you need.

7 points
unknown author

Deleted before we saved it.

14 points

This is way to vague and broad a question.

Its like asking "what happens when my car 'breaks'?

​

One tip, BTRFS + snapshots, make potential breakages waaay easier to recover from.

7 points

lose files? Yes if storage hardware failure corrupted boot, chroot and re install boot loader able to restore from backup? depends if it was set up correctly then yes

3 points

I recently had corrupted files in my /boot partition leading to a bios message saying found no boot devices. I booted the arch live usb. Mounted the partitions and went into arch-chroot and ran grub-install and rebooted. It fixed the issue quickly and easily

3 points

Arch really doesn’t break as easily or as often as people make you believe. I’ve been using Arch for over a year and I never had to reinstall it even once. Whenever something “breaks” it’s either because I changed a config file and so I just simply change it again to what it was before and the problem is fixed. Nevertheless, always backup your important files.

3 points

Most breakage isn't going to hose your filesystem, it's usually a matter of waiting until a new update fixes the issue, but there are circumstances where you might want to rollback config changes, hold off on updating or even do a restore from backup in extreme cases.

The most important thing to do is re-define breakage so that it's no longer the fault of Arch Linux itself though.

3 points

One tip is to either have your os and data files on two separate drives, not partitions on the same drive, because if the drive dies both partitions are lost. Have an external HDD for a daily (nightly) backup, the snapshot will only change if there has been any changes made to the areas your specified the backup to look at. Always always put the backup on a different drive

2 points

Thank you! That’s what I was looking for. Is there a tutorial how to do that though? I googled but maybe I’m wording it wrong

1 points

Personally I use back in time to backup my home partition and sub folders, you could try timeshift also, I prefer Back in Time tho, afaik there are detailed YouTube vids for both packages

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.