Welcome! Log In Create A New Profile

Advanced

USB serial console connected, lost root password

Posted by Tushar 
USB serial console connected, lost root password
March 20, 2017 04:06PM
Hi,

I have my Pogoplug V4 connected via serial cable which is on U-Boot 2016.05-tld-1 (June 12 2016 ....) I forgot my Debian's root password. Is there any way I can reset the password? -or- most preferably, I like to re-install the rootfs/linux (debian) on a new flash drive - how can I do that ?

Thanks,

Tushar.
Re: USB serial console connected, lost root password
March 20, 2017 06:34PM
Tushar Wrote:
-------------------------------------------------------
> Hi,
>
> I have my Pogoplug V4 connected via serial cable w
> hich is on U-Boot 2016.05-tld-1 (June 12 2016 ....
> ) I forgot my Debian's root password. Is there any
> way I can reset the password? -or- most preferably
> , I like to re-install the rootfs/linux (debian) o
> n a new flash drive - how can I do that ?
>
> Thanks,
>
> Tushar.

The default root pasword is root (unless you have changed it).

To install new rootfs:
http://forum.doozan.com/read.php?2,12096

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: USB serial console connected, lost root password
March 20, 2017 06:46PM
Hi Bodhi, Thanks for reply. I was wondering if I could revert back to original pogoplug factory firmware? Given the fact that I have serial connection and also I kept backup copy of MTD and all necessary files before upgrading to Debian?

Thanks.
Re: USB serial console connected, lost root password
March 22, 2017 04:20AM
Tushar Wrote:
-------------------------------------------------------
> Hi Bodhi, Thanks for reply. I was wondering if I c
> ould revert back to original pogoplug factory firm
> ware? Given the fact that I have serial connection
> and also I kept backup copy of MTD and all necessa
> ry files before upgrading to Debian?
>
> Thanks.

See here:
http://forum.doozan.com/read.php?3,16789,16789#msg-16789

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: USB serial console connected, lost root password
March 26, 2017 02:36PM
Tushar Wrote:
-------------------------------------------------------
> Hi,
>
> I have my Pogoplug V4 connected via serial cable w
> hich is on U-Boot 2016.05-tld-1 (June 12 2016 ....
> ) I forgot my Debian's root password. Is there any
> way I can reset the password? -or- most preferably
> , I like to re-install the rootfs/linux (debian) o
> n a new flash drive - how can I do that ?
>
> Thanks,
>
> Tushar.

-- Actually what I meant here if it is possible to install rootfs/ (debian-linux) right from the serial console? in my pogopolug series 4 model, I get "Pogov4>" prompt which doesn't have /tmp path or any "linux" like environment so that I could extract the rootfs as described in topic http://forum.doozan.com/read.php?2,12096
Re: USB serial console connected, lost root password
March 26, 2017 04:26PM
Tushar,

> -- Actually what I meant here if it is possible to
> install rootfs/ (debian-linux) right from the seri
> al console?

No, it is not possible. It has be done inLinux. Any Linux system would work.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: USB serial console connected, lost root password
March 26, 2017 04:55PM
bodhi Wrote:
-------------------------------------------------------
> Tushar,
>
> > -- Actually what I meant here if it is possible
> to
> > install rootfs/ (debian-linux) right from the se
> ri
> > al console?
>
> No, it is not possible. It has be done inLinux. An
> y Linux system would work.

So, I went ahead and formatted an USB stick on my laptop (running Debian 8) and copied whole "linux-4.10.0-kirkwood-tld-1-bodhi.tar.bz2" to the /boot directory, extract the archive and now, getting following error while I try to run dpkg install command...

note that, I manually created /boot directory inside the usb stick labeled as 'rootfs'

root@atlantis:/media/root/rootfs/boot# dpkg -i linux-image-4.10.0-kirkwood-tld-1_1.0_armel.deb
dpkg: error processing archive linux-image-4.10.0-kirkwood-tld-1_1.0_armel.deb (--install):
package architecture (armel) does not match system (i386)
Errors were encountered while processing:
linux-image-4.10.0-kirkwood-tld-1_1.0_armel.deb



Edited 1 time(s). Last edit at 03/26/2017 04:58PM by Tushar.
Re: USB serial console connected, lost root password
March 26, 2017 07:20PM
Tushar,

You can create the Debian rootfs on any Linux box, that's what I meant.

To install newer kernel, you need to do it in the system while Debian is running. Or using chroot in the host system.

What you did using dpkg is not creating rootfs, you tried to install a newer kernel. This is the section you need to follow:

Quote

Updated 20 Feb 2016:

This Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 is to keep in sync with kernel Linux-4.4.0-kirkwood-tld-1.

Basic minimal Debian Kirkwood rootfs for most Kirwood plugs:

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 03/26/2017 07:22PM by bodhi.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: