![]() Before proceeding it would be wise to mount the boot partition at /boot because the root of the issue might be there. Now you have root access to your system, you are free to do anything you want. Now that the filesystem is mounted at /mnt (or wherever you want), you can chroot like this: arch-chroot /mnt To actually use the files and programs installed in that partition you have to log in as a known user, or “chroot” into the system. Mounting the filesystem by itself is not very useful. dev/sda3 8007680 3907028991 3899021312 1.8T Linux filesystemĪs you can see /dev/sda1 is the “boot” partition, /dev/sda2 is used for swap memory and /dev/sda3 is the one that I have to mount. In my case, this is the output: Device Start End Sectors Size Type dev/sdaX has to be replaced with the actual partition. In my case, my keyboard has a Spanish layout so I set the keyboard layout accordingly: loadkeys es Mount the Linux filesystemįrom the live installation, You can access your files and data by mounting the Linux filesystem partition. You are likely to spend a good amount with this bare bones terminal so I suggest to take a few minutes to tweak it a little to make it more comfortable for you. This gives you a terminal that you can use to access your system. When your system breaks and you can’t log in, the first thing you have to do is install Arch Linux on a USB flash drive and use it as a rescue USB. ![]() When it comes to restoring the disk from a saved image, the process is just as simple and straight-forward. I just boot Clonezilla from the USB drive and follow the “beginner” steps to clone my disk. This makes it super easy to clone the entire disk to an image in an external hard drive. I’ve been keeping in my desk a USB flash drive with Clonezilla installed for years. I try to backup my hard drive before a system update at least once every 3 months. Please bear in mind that disks can and will fail at some point. I don’t usually have to restore from backup but it’s good to be prepared for worst case scenario. I think I can’t stress enough how important it is to have full backups of your hard drive. Keep system backupsīefore doing anything, make sure you keep system backups. ![]() As this sort of incident becomes more rare I tend to forget what to do to fix my broken system, so I decided to write here the common steps that I take in these situations. This usually happens after updating the system or messing with configuration files. Arch Linux is actually really stable, but once a year or so my system breaks. It’s great to be able to install only the packages that you actually need and get their the most up-to-date versions. I’ve been using Arch Linux for the last 5 years and I’m very happy with its simplicity.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |