You are not logged in.
Yesterday I backed up all of my data with rsync to a USB thumb drive. Surprisingly it all fit, but my intentions were to wipe my disk and create a new partition scheme for a dualboot while still being able to continue where I left off with arch. So after backing up with the script from the arch wiki titled full system restore with rsync, I followed the rest of that page, and modified the fstab on the backup on the USB and reconfigured grub and restarted my computer and I was able to boot into the USB. Then, I decided that it would be easier to just use the live cd to repartition and pacstrap the base system and generated an fstab. Next, I chrooted from the livecd environment into the newly built base and installed rsync. I then mounted my USB to /mnt in the chrooted environment and used
rsync -aAXv /mnt/ARCH_BACKUP/* / --exclude={/mnt/ARCH_BACKUP/etc/fstab,/mnt/ARCH_BACKUP/boot/grub/}I just did this since I figured that all of the directories excluded in the script wouldn't really have to be excluded here since they were already empty. Everything seemed to run smoothly except for one file(or maybe directory?) called /etc/resolv.conf.t.jbnW2 which kept giving an error. I figured the file was unique to the USB or something and continued to reinstall grub and then reboot. The weird thing is that everything was back on my system, but it didn't automatically boot into a display manager which it's set up to do. Then when trying to manually start x, that wouldn't work. Then I tried to connect to wifi, it recognized my network but wouldn't connect, so I tried sudo su, which worked but returned an error that the var file system was read only. I then tried to use rsync again thinking maybe that directory would transfer now that I wasn't in the chrooted environment. But instead, it was trying to restore every single file, but every one returned the error "filesystem is read only".
It seems like when I restored all of the files in my entire system were made read only.
Can anyone tell me what may have caused this and how to fix it?
I think it may either be that when I mounted the device in the chrooted environment I didn't specify 'rw' capabilities, or it may be that when I backed up I didn't specify 'rw' capabilities I just opened the file manager and clicked on it and it automagically mounted to /media/.
Last edited by eroge008 (2013-01-25 20:29:22)
Offline
Still no success on fixing this issue. I even tried chowning the entire drive recursively and also chmoding the entire drive recursively in each case I either get the error "operation not permitted" or "read only file system"
Any help would be greatly appreciated.
Offline
What's really strange is that I don't get any of these errors before a reboot. Everything works fine. I just did the entire process for the 3rd time. Now I don't know if I want to reboot or not. Hmmm... ?
Offline
You didn't back them up to a FAT32 or NTFS filesystem, did you? Because they have no concepts of owners or permissions.
Which bootloader? GRUB? Then you probably just forgot to re-generate a new grub.cfg (since the UUID - that long string of numbers that GRUB uses - changes every time you format or crate a partition).
when I mounted the device in the chrooted environment
Don't mount anything while you're in a chroot. Mount them BEFORE you perform a chroot.
https://wiki.archlinux.org/index.php/Chroot
It would explain why your graphical stuff didn't come up. Because ~/.xinitrc (from a separate home partition, if you have one) wasn't present.
rsync -aAXv /mnt/ARCH_BACKUP/* / --exclude={/mnt/ARCH_BACKUP/etc/fstab,/mnt/ARCH_BACKUP/boot/grub/}This isn't right. It should be "rsync -parameter(s) /path/to/source /path/to/destination". While you're trying to restore it on the... root... of the LiveCD?
Last edited by DSpider (2013-01-25 06:36:25)
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
The USB is formatted in ext4. And yes I used grub and regenerated a new grub.cfg
After I restored to the root directory in the chrooted environment, I figured that may have been the problem, so I reinstalled arch, following the guide up until after chrooting, then I just installed rsync and configured wifi and grub so I could just basically boot into the bare arch install and restore everything from the back up into the root directory of the newly installed os. I ended up with the exact same problem.
And yes, I know that the command is rsync /path/from/source /path/to/destination. That command was to transfer the files back into the system from the usb.
Thanks for the help though, I have been trying to fix this for a couple of days now with no luck.
Last edited by eroge008 (2013-01-25 08:13:22)
Offline
Ok, well I fiixed it. I had edited the fstab on the usb to be able to boot into the usb, and, while I edited it again on the hdd each time I restored from the backup, I didn't realize that the top entry /dev/sda1 (which is my root partition) was on a line that was commented out. I guess I accidentally hit the backspace button or something while editing it to be able to boot into the usb.
Also, I think there was a second problem, that my usb controller is starting to fail. Because on the last time that I backed up, if I moved my computer or anything I would get a I/O error. This was caused by the failing usb controller. The computer would remount it as read-only because of the failure. The solution to this was to use
hdparm -r0 /dev/sdxyNote: The device must be unmounted.
Where x is the device and y is the partition number, for me this was sdb1.
Then mount specifying read-write option.
mount -o rw /dev/sdxy /media/<BACKUP>I also tried
mount -o remount,rw /dev/sdxy /media/<BACKUP>as was recommended on all of the sites that I could find, but this command kept returning an error.
Note: For newer users, Arch does not automatically create the media folder as it doesn't provide automatic mounting of external drives. If such is the case, and you haven't installed a desktop environment with a file manager that will automatically do this for you when the device is recognized, you must make the media directory and the directory which you intend to mount to manually.
# mkdir /media
# mkdir /media/<BACKUP>Where <BACKUP> can be whatever you want it to be.
Last edited by eroge008 (2013-01-25 20:27:52)
Offline