Can't ssh anymore.

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Can't ssh anymore.

Postby Highvoltag3 » Tue Jan 29, 2013 1:39 am

So after the last update I lost AFPD, so I couldn't use my netatalk to backup anymore. I did some digging and ended up killing sysvinit in favor of systemd, I got it installed with some other packages needed and enabled the services based on the DAEMONS I had in rc.conf before. After reboot, I got locked out. No ssh and yes I did enable the sshd.servivce.

Any idea on how I can get back in?

P.S: The device (GoFlex Net) Boots.. or well the green led blinks for a while and then stays on. (After a reboot --unpluging it and plugin it back on).
Highvoltag3
 
Posts: 45
Joined: Sat Mar 19, 2011 10:28 am

Re: Can't ssh anymore.

Postby WarheadsSE » Tue Jan 29, 2013 2:22 am

Did you enable dhcpcd@eth0 or netcfg@ethernet-dhcp ?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Can't ssh anymore.

Postby Highvoltag3 » Tue Jan 29, 2013 2:44 am

Interesting came in to post exactly that seems like I did not enable something network related (besides network.service) which I did enable.

Short answer no I did not :( I'm screwed right?
Highvoltag3
 
Posts: 45
Joined: Sat Mar 19, 2011 10:28 am

Re: Can't ssh anymore.

Postby moonman » Tue Jan 29, 2013 6:46 am

No you are not, you can connect the drive to a linux computer then mount the drive at /mnt

now run this:
$this->bbcode_second_pass_code('', 'ln -s '/mnt/usr/lib/systemd/system/dhcpcd.service' '/mnt/etc/systemd/system/multi-user.target.wants/dhcpcd@eth0.service'')
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Can't ssh anymore.

Postby Highvoltag3 » Tue Jan 29, 2013 9:19 am

$this->bbcode_second_pass_quote('moonman', 'N')o you are not, you can connect the drive to a linux computer then mount the drive at /mnt

now run this:
$this->bbcode_second_pass_code('', 'ln -s '/mnt/usr/lib/systemd/system/dhcpcd.service' '/mnt/etc/systemd/system/multi-user.target.wants/dhcpcd@eth0.service'')


No luck :( boots blinking green led turn static green, but no ssh yet :( any other .service I'm forgetting?

Image
Highvoltag3
 
Posts: 45
Joined: Sat Mar 19, 2011 10:28 am

Re: Can't ssh anymore.

Postby Highvoltag3 » Tue Jan 29, 2013 7:14 pm

Ok so cat /proc/1/comm is returning init (at some point it was returning systemd... figuring out how to change that...
Highvoltag3
 
Posts: 45
Joined: Sat Mar 19, 2011 10:28 am

Re: Can't ssh anymore.

Postby Highvoltag3 » Tue Jan 29, 2013 8:04 pm

$this->bbcode_second_pass_quote('Highvoltag3', 'O')k so cat /proc/1/comm is returning init (at some point it was returning systemd... figuring out how to change that...


Ok, seems like I did run out of luck on this one the init=..../systemd had to be set in the boot loader, which having no access to the booted system I think I won't be able to change, going into /boot on the flash drive only has two images so no files I can't actually mod bummer. :cry:

EDIT: Created modprobe.conf in /etc/modprobe.d/ and added init=/usr/lib/systemd/systemd
no luck :cry: still trying...

P.S: The thing boots though so does anyone know of any file that gets called during boot? and that can pass kernel params?

EDIT2: In another attempted to get this rolling I decided to rename /sbin/init and make a symlink called init to /usr/lib/systemd/systemd no luck :(
Highvoltag3
 
Posts: 45
Joined: Sat Mar 19, 2011 10:28 am

Re: Can't ssh anymore.

Postby moonman » Wed Jan 30, 2013 12:50 am

My suggestion may not have been correct since the path will change when you plugin the hdd to another system. The way I did it was use qemu and chroot into the the installation and then do everything from there. Which is fine if you can do it and may be easier in the long run.
Otherwise I suppose you can try creating a relative symlink
$this->bbcode_second_pass_code('', 'cd /mnt/etc/systemd/system/multi-user.target.wants
ln -s '../../../../usr/lib/systemd/system/dhcpcd@.service' 'dhcpcd@eth0.service'')
Last edited by moonman on Wed Jan 30, 2013 12:57 am, edited 1 time in total.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Can't ssh anymore.

Postby WarheadsSE » Wed Jan 30, 2013 12:55 am

Nope, just /usr/lib/... it's read @ access time.

Also dhcpcd@.service
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Can't ssh anymore.

Postby moonman » Wed Jan 30, 2013 12:59 am

You are right about '@' , my bad.

$this->bbcode_second_pass_quote('', 'N')ope, just /usr/lib/... it's read @ access time.


I am not sure what you mean here.
EDIT: I guess it should be like this then
$this->bbcode_second_pass_code('', 'ln -s '/usr/lib/systemd/system/dhcpcd@.service' '/mnt/etc/systemd/system/multi-user.target.wants/dhcpcd@eth0.service'')
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am
Top

Next

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 6 guests