View previous topic :: View next topic |
Author |
Message |
lwoody7110 n00b
Joined: 22 Dec 2018 Posts: 3
|
Posted: Sat Dec 22, 2018 3:31 pm Post subject: Can I move Gentoo from 1 Raspberry Pi to another? |
|
|
Hi all
I'm new. Please be gentle. My brief Googling wasn't successful beyond a basic command.
I'm using a Raspberry Pi as a programmer to repair a bad Intel Management Engine BIOS on a HP PC. Long story short, I put the programmer on the BIOS chip back-to-front and damaged the Raspberry Pi. My limited Gentoo knowledge all comes from https://wiki.gentoo.org/wiki/Sakaki%27s_EFI_Install_Guide/Disabling_the_Intel_Management_Engine. This guide helped me set the Pi up to read/write the BIOS. All was going well until I got stupid!
I've bought a 2nd identical Pi 3 Model B+ to replace the dead one. After putting the SD card from the damaged Pi into the new one, the new Pi doesn't boot into Xfce Desktop Environment like the original did. It booted up and is asking me to enter a username/password, which were left at their defaults of demouser/raspberrypi64. The username/password were taken. I typed 'startxfce4'.
Code: | demouser@none $ startxfce4
/usr/bin/startxfce4: Starting X server
(EE)
Fatal server error:
(EE) Could not create lock file in /tmp/.tX0-lock.
(EE)
(EE)
Please consult (URL removed from post)
(EE)
xinit: giving up
xinit: unable to connect to X server: Network is unreachable.
xinit: server error |
I've no idea what to do next.
The SD card contains a number of revisions of the BIOS that I do not want to lose. I'm hoping to get the GUI up and running again so I'm back to the environment I was used to when reading/writing the BIOS's to the faulty PC. The GUI is needed for ease managing the various bin files.
I appreciate this may be very basic but I'd appreciate it if someone could link me to a guide or offer me some direct help.
Regards |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54615 Location: 56N 3W
|
Posted: Sat Dec 22, 2018 3:46 pm Post subject: |
|
|
Moved from Kernel & Hardware to Gentoo on ARM. Its one of these.
lwoody7110,
Welcome to Gentoo.
Yes, you can move the SD card between Pis. You can even make the SD card work on whatever Pi it finds itself on but that's another topic right now.
Your Code: | (EE) Could not create lock file in /tmp/.tX0-lock. | suggests that either the file system on the SD card or the SD card itself was damaged.
The filesystem might be able to be fixed. Lets check a few things.
Boot the Pi, log in and at the shell prompt run the command
it will take a few seconds. You will need a working network connection.
If all is well, you will get something like
Code: | $ dmesg | wgetpaste
Your paste can be seen here: https://paste.pound-python.org/show/mCxR8fmU3VdEf1ukpr5v/ |
Tell us the link that you get. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
lwoody7110 n00b
Joined: 22 Dec 2018 Posts: 3
|
Posted: Sat Dec 22, 2018 5:03 pm Post subject: |
|
|
Hi NeddySeagoon. Many thanks for helping me.
Code: | demouser@(none) ~ $ dmesg | wgetpaste
-bash: wgetpaste: command not found |
There is a link light on the ethernet port but I can see in DHCP that an IP address hasn't been assigned to the Pi.
EDIT: Your signature about backups has made me wonder if I can get away without *having* to recover this SD card. I have a number of BIOS files on a USB stick. The organisation of the USB stick is a bit different to those in the working area on the SD card.
Out of interest, can the SD card be read by Windows or MacOS without to much difficulty? If I can browse the file system and jog my own memory about 'where I got to' then I could possibly just reinstall Gentoo from scratch and bring the files back into the refreshed installation and carry on from where I left off. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54615 Location: 56N 3W
|
Posted: Sat Dec 22, 2018 6:47 pm Post subject: |
|
|
lwoody7110,
I just knew you were going to ask that :)
There are three partitions on the SDCard.
The first is /boot. Thats a FAT filesystem. Its the files to get the Pi started. There won't be anything of interest there.
The second is swap. Its cleaned every boot. There is noting of interest there either.
The third is root. Its ext4. If there is an ext4 filesystem driver for Mac or Windows, then yes.
Maybe this helps?
I would put System Rescue CD onto a USB stick and boot that in place of Windows on the Windows system.
Its Gentoo and has a simple desktop too. I have not had Windows at home since 2002, so I don't get asked to fix Windows any more.
You will need another Linux to recover the SD, if that's possible, as you will need to run fsck on its partition 3.
As the network didn't start, I suspect that dmesg says something along the lines of filesystem could not be fixed
Run fsck manually. Then the filesystem stays read only and very little works. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
lwoody7110 n00b
Joined: 22 Dec 2018 Posts: 3
|
Posted: Sun Dec 23, 2018 2:43 pm Post subject: |
|
|
Thanks for this
I tried a couple of ext4 drivers for Windows but none seemed to work. As a consequence, I trusted the backups on my USB stick and went ahead and reinstalled Gentoo to the Pi.
I've repaired the PC successfully now.
Now I can spend a bit of time experiencing Gentoo and what it can offer.
Thanks again |
|
Back to top |
|
|
|