Page 1 of 1

have password and no more cursor problem

Posted: Mon Jun 04, 2018 1:15 am
by kilaueabart
I'm replacing the first page of the thread. I must apologize to the people who have wasted time clicking on it for 244 times. Turns out to have been another stupid user problem. The machine simply didn't like the USB socket I was plugging the mouse in. I finally found one that works, a week ago, actually.

Re: lost password again

Posted: Mon Jun 04, 2018 7:55 am
by xeno74
kilaueabart wrote: I'll try this tomorrow, but does this work the same on the X5000? It won't really be CFE where I type the commands, of course, but otherwise? Right now, I don't know what cf0:vmlinux-4.1 means, but I think it may be very X1000ish.
Hi Kilaueabart,

cf0:vmlinux-4.1 means booting the kernel 4.1 from the onboard CF card.

Please try:

Code: Select all

setenv bootargs root=/dev/[address Ubuntu installed to] init=/bin/bash

Code: Select all

usb reset

Code: Select all

fatload usb 0:1 1000000 uImage-4.17

Code: Select all

fatload usb 0:1 2000000 cyrus_p5020_eth_poweroff.dtb

Code: Select all

bootm 1000000 - 2000000
[when boot complete]

Code: Select all

mount -n -o remount,rw /

Code: Select all

passwd [root password]

Code: Select all

passwd [username] [user password]
Cheers,
Christian

Re: lost password again -- and computer!

Posted: Mon Jun 04, 2018 8:06 pm
by kilaueabart
I thought that was what "cf0:" meant, but assumed it would just fail without causing trouble, and tried it anyway. I booted the Amiga side to download something I wanted to print, then remembered that I don't have an internet connection where I live now. I copied the material from my Raspberry Pi to a thumb drive and tried to boot Amiga again. No luck. The X5000 won't get far enough to show anything on the monitor any more.

Here are some details that I hope might be a clue that someone will recognize. When I press the button to start it, the fans start up and the red lights come on. The white light up top comes on too, but usually turns off after a while, although a couple of times it started blinking in a way that looked like, "Oh, boy, it's booting!" but then it goes off.

So I opened it up and checked that the boards were well seated (without actually removing and reseating any) and took stock of the 14 LEDs mid-right on the mother board.

Just plugged in with the power switch in the "1" position makes the top LED (green) and the 10th LED (red) light up. Pressing the boot-up button on top of the machine makes a whole bunch of the red ones blink on for a moment, then the green (#1) and the top five reds #2--#6 stay on bright, and #13 and #14 stay on half-bright red.

I haven't tried google to see what all that means yet, because I think I am more likely to find help here.

Googling after posting the first version of this did lead me to a motherboard LED status diagram, but it lists only twelve LEDs instead of 14, in this order: 1, 3, 4, 13, 14, 15, 5, 6, 7, 16, 8, 9, so my numbering by counting down from the top LED may be wrong?

Re: lost password again -- and computer!

Posted: Tue Jun 05, 2018 5:34 am
by xeno74
Could you please check the RAM modules and the PSU? You moved to a new apartment. Maybe something is happened during the moving.

Thanks

Re: lost password again -- but not computer!

Posted: Tue Jun 05, 2018 7:52 pm
by kilaueabart
The machine is OK, just another case of Superstupid User Error. Apparently I didn't have the monitor properly plugged in, and it was booting OS4 all the time!

Re: lost password again

Posted: Mon Jun 11, 2018 10:36 pm
by kilaueabart
xeno74 wrote: Please try:

Code: Select all

setenv bootargs root=/dev/[address Ubuntu installed to] init=/bin/bash
I finally had the sense to read my boot script and find out it's on /dev/sda5.

Code: Select all

usb reset

Code: Select all

fatload usb 0:1 1000000 uImage-4.17
This got error message so I changed it to "fatload usb 0:1 1000000 uImage-cyrus" as in my "run ubuntu" Uboot script. I'm pretty sure I don't have a 4.17 kernel.

Code: Select all

fatload usb 0:1 2000000 cyrus_p5020_eth_poweroff.dtb
Again copying my ubuntucommand boot code, I end that with just "cyrus_5020.dtb."

Code: Select all

bootm 1000000 - 2000000
[when boot complete]

Code: Select all

mount -n -o remount,rw /
This gets me:

Code: Select all

No command 'rmount' found, do you mean
I tried it again anyway. The second time around,

Code: Select all

mount: can't find UUID=2f045[a long such string]
Please give me another hint.

Re: lost password again

Posted: Wed Jun 13, 2018 6:45 pm
by xeno74
Hi Kilaueabart,

I was able to change some passwords without remounting the / partition.

Please try:

Code: Select all

setenv bootargs rw root=/dev/sda5 init=/bin/bash

Code: Select all

usb reset

Code: Select all

fatload usb 0:1 1000000 uImage-cyrus

Code: Select all

fatload usb 0:1 2000000 cyrus_5020.dtb

Code: Select all

bootm 1000000 - 2000000

Code: Select all

passwd
and

Code: Select all

passwd <username>
Screenshot of my attempt:

Image

Cheers,
Christian

Re: lost password but not computer!

Posted: Wed Jun 13, 2018 11:35 pm
by kilaueabart
I was able to do mine, too, Christian, but by a slightly different approach. I had almost tried yours, but I misunderstood the directions and typed "passwd root xxxx" and "passwd bart yyy." Of course those were rejected.

I was about to start a new thread "have password and Ubuntu but no cursor" since there were no further answers in this one when I checked yesterday, but better stick with this one. Here is how I reached my present state.

Short version: I can now log in but still can't use Ubuntu.
Full version (When you get bored, please skip to last two paragraphs):
I repeated the steps Christian listed in the original thread. This time when the screen listing stopped at

Code: Select all

hub 2-1:1:0 USB hub found
I didn't assume failure but proceeded to the remount,rw command. No sooner had I typed the initial "m" than the screen jumped to a new line:

Code: Select all

root@AmigaOneX5000:/#
So I typed the command on that line. (Got a complaint that the command "mmount" was unknown, the first time. :-) )

As had been the case previously, the result was

Code: Select all

mount: can't find UUID=2f0453bf-25f2-4c9b-bc75-ec19dbabcc3a
My reaction was why the heck are you looking for that UUID in the first place?

I still wonder about that. But I proceeded as if things were working:

Code: Select all

root@AmigaOneX5000:/# passwd bart
root@AmigaOneX5000:/# Enter new UNIX password:
root@AmigaOneX5000:/# Retype new UNIX password:
root@AmigaOneX5000:/# Authentication token manipulation error
I tried it again with the same result. Foiled again. But it had finally dawned on me that I was in a working terminal and I started playing with "ls," listing every directory in the resultant first list. I found a short text file I had written in Home/Documents and successfully Nano'ed it. Of course it informed me that it would not be able to save any changes, but I expected that.

Then I had a weird idea: It wouldn't remount root "/" read-write, but maybe this would work?

Code: Select all

root@AmigaOneX5000:/# mount -n -o remount,rw /dev/sda5
Yippee! Now I was permitted to rewrite that text file, but more importantly, I was able to set up a password. I rebooted, typed in my new password, and up came that old familiar Desktop.

The downside is, the cursor arrow sits paralyzed in the middle of the screen. I cannot move it. I can ctrl^Alt^T a terminal and do some things there. The cursor keys and Tab highlight this and that icon on the desktop, and Enter will open whatever, but I have no idea how to close things when Ctrl^Q doesn't do it. Some of the function keys do interesting things. The best I could come up with for turning the machine off was "reboot" in a terminal and power off when it got to Uboot.

Google tells me a lot of people have had a similar problem, but none of the fixes I find seem relevant to my case. What should I do next? (Besides go through the process again and set up a root password -- I got excited and skipped that one.)