Skip to content

Broken Arch and Grub

So I booted today and "fixed a few broken files" now my pc only starts till the grub rescue prompt. After turning secure boot on I could reboot into windows 8.1 and now I know that my whole / contains just a lost+found folder with a lot of files in it. Well, how do I repair my system now ? Do I just have to insert a boot medium and install Arch as usual or will there be more ? And what caused my system to do weird stuff like this and how do I prevent it in the future

1 points6 comments
Open on Reddit
About this post
Posted
Archived
Score
1 · 100% up
Kind
Text
ID
2hsfve

6 comments

What commands, exactly, did you run? And did you read about those commands and how they work beforehand? Because it seems like you may have deleted all of the files on your hard drive. Why/how did Arch 'want' you to run fsck manually?

If I were you, I'd just reformat and reinstall, that would probably be more productive than trying to recover anything. First, though, boot the install medium and see if you can mount your hard drive, try browsing the 'lost+found' files to see if you can find anything.

----------

Also...if you want to get good, helpful, productive answers to your questions, you should probably read this sometime soon.

3 points

I'm pretty shure I deleted everything. I ran fsck /dev/sda5 which is/were my home directory. I just couldn't boot from a Windows CD to rescue my bootloader GRUB just popped up no matter what I configured in my UEFI.

So now just a simple question: If I wanted to reinstall arch I just could do this with an Arch boot medium and reinstall GRUB as usual and everything will be fine ?

1 points

I ran fsck /dev/sda5 which is/were my home directory.

So you didn't read about the command at all before running it...? You have to unmount the drive first, and mount it as read-only - if you don't unmount it, all of your files will be lost, as you have discovered.

You really should read about things in the future if you'd like to avoid stuff like this - try running the command with '-h' or '--help', and read its man page. For fsck, you'd want to run 'fsck --help' and 'man fsck'. Reading the wiki is a good idea, too.

Yes, reinstalling arch would fix everything.

2 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.