[SOLVED] Arch Linux - Backup (may have overwritten partitions)
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Arch Linux - Backup (may have overwritten partitions)
Hello,
so I have ran into some catastrophic trouble. I was trying to backup my arch linux setup with rsync to my external hard drive but have instead rendered the system unbootable. I followed these instruction https://wiki.archlinux.org/index.php...kup_with_rsync.
At this point I had to leave my room for a short while so I unmounted and shut it off. When I returned the system was unbootable. I get the following error at the filesystem check:
Code:
Checking File Systems [BUSY]
Fsck.ext3: No such file on directory while trying to open /dev/sdb1
Possibly non-existent device?
File system check failed.
Give root password for maintenance
(or type Control-D to continue):
When I type password, I immediately notice that things are wrong as bash shows root@(empty): (rather than @my alias).
And everything seems to be gone (my user in /home/ is gone) and no commands work (e.g. vi, nano, sudo, pacman, anything). All the expected directories in / exist but it seems like things were moved to my backup. Luckily, the backup does seem to have all the files that I had asked it to copy over. What could have happened and what should I do now? Thank you for any help.
I think syg00 is right, do you know on which parition was your / directory? please try to mount it from a live-CD and post your old /etc/fstab and the output of
Thank you for the responses. I do believe that I have edited the wrong file. How do I mount / and edit the file from a live cd? I am not able to edit anything currently (i.e. vim doesn't work)
How do I mount / and edit the file from a live cd?
I use a Fedora live CD and just open the File Browser, click on the hard drive (it is visible) and browse it - in that situation you are root...Use gedit to work the file(s)...I do, it works for me...
(testing this NOW to verify...)
EDIT - verified : use a live CD and just browse the drive, tested with a Fedora 14 LXDE...
BTW, dude, you freak me out...I just hope you can rescue the chinaware...
I'll be watching this thread closely...
Thor
Last edited by ButterflyMelissa; 03-26-2011 at 12:54 PM.
Thank you for the tip. Also, does this fstab look correct? I believe this is what I had, but I did not do a backup since I did not intend to edit my main fstab:
I am unsure about the dump and check options (I believe they were all 0 1 except swap, 0 0) and the mount options (again, believe all were defaults,noatime, besides the first two). Thank you in advance.
Which bootloader are you using? if you're using grub, look at the /boot/grub/menu.lst file if the boot and / partitions are set correctly. Then you may try to boot your system. The options in the fstab file are not as much important that they would prevent your system from booting. Otherwise it is important that you have the partitions correctly, at least for /, boot, /var and /usr
Thank you for the response. Well I am entirely sure that the partitions are correctly linked to the appropriate entry (I had a list written down from when I installed arch). So I guess the other options should not affect the boot?
EDIT: Sorry forgot to mention that I am using Grub
Ah, it does seem to have worked. The main /etc/fstab was indeed altered and I am once again on Arch. I am actually wondering, are those last two parts of the guide necessary (https://wiki.archlinux.org/index.php...kup_with_rsync)? After doing rsync, I have all of the files that I want backed up on the external hard drive. I don't necessarily need to make the hard drive bootable by changing fstab and installing grub. After just backing up files to hard drive, would it still be possible to restore system if I wanted? Thank you everyone for the help
Not needed at all.
BTW, regarding the fstab, all you had to do was look at your backup. Perhaps this should be a lesson - always take a (known good) backup before editting system config files. Even if you think it's unnecessary.
Get comfortable with using a liveCD as a rescue - it will save you lots of angst.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.