[arch-general] how to restore root and boot directory
Hi everyone while reinstalling arch on raspberry pi memory stick i had the two partitions mounted on mount points called root and boot in my home dir on my laptop, i intended to delete everything in root and boot in my home directory but lost my mind and rm -rf /boot/* and /root/* instead, is there a easy way to restore files to boot and do i just fix the root user directory with useradd ? shadrock
Hi everyone while reinstalling arch on raspberry pi memory stick i had the two partitions mounted on mount points called root and boot in my home dir on my laptop, i intended to delete everything in root and boot in my home directory but lost my mind and rm -rf /boot/* and /root/* instead, is there a easy way to restore files to boot and do i just fix the root user directory with useradd ? shadrock
/root really shouldn't have anything of importance, unless you left it there - in which case, you can't recover it /boot has the kernel, the initramfs - which can be recreated if you reinstall the "linux" package and probably some bootloader files that you can also reinstall depending on the boot loader: - grub-install - extlinux - bootctl -- damjan
El vie, 23 de sep 2016 a las 2:32 , niya levi via arch-general <arch-general@archlinux.org> escribió:
Hi everyone while reinstalling arch on raspberry pi memory stick i had the two partitions mounted on mount points called root and boot in my home dir on my laptop, i intended to delete everything in root and boot in my home directory but lost my mind and rm -rf /boot/* and /root/* instead, is there a easy way to restore files to boot and do i just fix the root user directory with useradd ? shadrock
Hi! First you have to reinstall filesystem package. To list the packages that contains files in /boot use. You have to reinstall those packages. pacman -Ql | grep " /boot/" and then configure your bootloader. Fernando Fernandez Software Peronista
If you are using a Raspberry Pi, you can just download the image[1], and extract the /boot and /root directories to your SD card. [1] https://archlinuxarm.org/platforms/armv6/raspberry-pi
2016-09-23 19:59 GMT+02:00 Sebastiaan Lokhorst <sebastiaanlokhorst@gmail.com
:
If you are using a Raspberry Pi, you can just download the image[1], and extract the /boot and /root directories to your SD card.
Oops, misread. I thought you had bricked the Raspberry instead of your laptop. Sorry!
On 09/23/2016 07:46 PM, Fernando wrote:
To list the packages that contains files in /boot use. You have to reinstall those packages.
pacman -Ql | grep " /boot/"
Or pacman -Qo /boot, which gives me: /boot/ is owned by filesystem 2015.09-1 /boot/ is owned by intel-ucode 20160714-1 /boot/ is owned by linux 4.7.4-1 /boot/ is owned by linux-lts 4.4.21-1 /boot/ is owned by syslinux 6.03-6 So you need to reinstall at least "filesystem" and "linux" plus whatever booloader you're using. Reinstalling "linux" should run mkinitcpio automatically but your bootloader will need to be reconfigured. Jerome -- mailto:jeberger@free.fr http://jeberger.free.fr Jabber: jeberger@jabber.fr
participants (5)
-
Damjan Georgievski
-
Fernando
-
Jérôme M. Berger
-
niya levi
-
Sebastiaan Lokhorst