[arch-general] how to restore root and boot directory

Fernando fernando at softwareperonista.com.ar
Fri Sep 23 17:46:46 UTC 2016


El vie, 23 de sep 2016 a las 2:32 , niya levi via arch-general 
<arch-general at 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




More information about the arch-general mailing list