PDA

View Full Version : Install from other linux distro?



Jeff Sadowski
10th August 2017, 03:38 PM
During my upgrade from Fedora 25 to 26 it was interrupted and the system is irrecoverable.
I tried a lot of things and am to the point of "just reinstall."
I backed up all things I want from the old install /etc and /root /home is its own partition so it should be good.

Would it be possible to install fedora from Clonezilla?
I have an ssh session to clonezilla. Otherwise I have to wait till I get home to start.

I tried chrooting to my root partition from clonezilla and mounting the cd image for fc26
Then I tried


#location I mounted fc26 cd image
cd /mnt/cdrom
find -name "*rpm" -exec rpm -i --nodeps --force {} \;


hoping if I install everything it would boot but it just flops

So if there is no way to do it from clonezilla I will wait but if there is or if anyone has things to try let me know.

Jeff Sadowski
10th August 2017, 05:16 PM
And I screwed up my remote session. Will do a fresh install when I get home.

trying to replace /lib/x86_64-linux-gnu/libc.so.6 not such a good idea.

Interesting how bash internal commands still work.

I think I managed to create a bash internal cat command


__cat() { while read -r LINE;do echo "$LINE";done < $*; }

maybe not the above worked for /etc/issue but is showing different when I copy a binary using this method
I may be able to fix my bash only cat program

jwmueller
10th August 2017, 08:02 PM
You could always download and boot a fedora live DVD/image, either the network installer or your specific spin preference, and reinstall.

antikythera
10th August 2017, 10:19 PM
Think Jeff already established that much ;)


Will do a fresh install when I get home.

Jeff Sadowski
10th August 2017, 11:19 PM
You could always download and boot a fedora live DVD/image, either the network installer or your specific spin preference, and reinstall.

That would require being at the computer I was attempting to do this remotely.

The ssh session stopped but I had a solution to my issue of accidentally deleting /lib/x86_64-linux-gnu/libc.so.6

I created a bash only __cp


__cp()
{
echo -n > $2
while LANG=C IFS= read -r -d '' -n 1 char ;do
if [ "$char" ];then
printf "%s" "$char" >> $2
else
echo -ne '\0' >> $2
fi
done < $1
}