OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | ELSI (coming soon) | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Arch Linux root password
Zaur
post Aug 26 2017, 03:59 AM
Post #1





Group: Members
Posts: 5
Joined: 26-August 17
Member No.: 809,167



I have a SL-C3200 with Arch Linux. I can logon to a user account but I don't have the root passsword. Is there a way to reset the root password? I can't see a Grub menu to allow me to use one of the common methods to do so. Thanks
Go to the top of the page
 
+Quote Post
Varti
post Aug 26 2017, 05:25 AM
Post #2





Group: Admin
Posts: 318
Joined: 30-April 08
Member No.: 21,713



Hi and welcome!

The default root's password is root. You can change it after logging in using

CODE
sudo passwd root


There's no Grub on Alarmz; kexecboot is used as a boot loader instead, but it doesn't have a recovery mode like Grub.

Varti
Go to the top of the page
 
+Quote Post
Zaur
post Aug 26 2017, 11:25 AM
Post #3





Group: Members
Posts: 5
Joined: 26-August 17
Member No.: 809,167



Thanks, Varti. I should have been clearer in my original post. Unfortunately the password is not the default one (root), which is why I can't access root. Without a recovery mode, I'm not sure what else I can do.
Go to the top of the page
 
+Quote Post
Varti
post Aug 26 2017, 12:17 PM
Post #4





Group: Admin
Posts: 318
Joined: 30-April 08
Member No.: 21,713



I see... Is this on a freshly installed Arch Linux? AFAIK the default root password has always been root, at least on the latest two Zaurus releases, but it might have been different on older releases, greguu (Alarmz's maintainer) might shed a light on this.

I'm not aware of any way of recovering/changing the root password on Alarmz, so the only solution would be to reinstall it from scratch.

Varti
Go to the top of the page
 
+Quote Post
Zaur
post Aug 26 2017, 12:38 PM
Post #5





Group: Members
Posts: 5
Joined: 26-August 17
Member No.: 809,167



Thanks, Varti. It's not a fresh install but an inherited piece of equipment. At some point the root password must have been changed. It looks like I'll have to reinstall Alarmz. I was trying to avoid that but you've confirmed what I thought was the case. I'm not familiar with Alarmz but it will be interesting to learn its unique attributes.
Go to the top of the page
 
+Quote Post
Varti
post Aug 26 2017, 02:35 PM
Post #6





Group: Admin
Posts: 318
Joined: 30-April 08
Member No.: 21,713



Actually, it might be possible to change it by following these instructions:

https://wiki.archlinux.org/index.php/reset_root_password

On the Zaurus, you can append the
CODE
init=/bin/bash

part in the boot/boot.cfg file, at the end of the APPEND label. I have tried it on my SL-C1000, by plugging the SD card where Alarmz is installed on my laptop and modifying the file there. I have put the SD back in my Zaurus and it has directly booted bash, skipping the rest of the boot procedure. Unfortunately I have not managed to remount the partition as read/write, since a wrong keymap was loaded and I wasn't able to type the / character.
In your case I believe that Arch Linux is installed on your internal Microdrive, so you'll need to first install Alarmz on an SD card, boot it via kexecboot, mount the root filesystem on the Microdrive (it should be /dev/sda1), modify the boot/boot.cfg file there as explained above and reboot, this time booting the system from the Microdrive.

Varti
Go to the top of the page
 
+Quote Post
Zaur
post Aug 26 2017, 11:46 PM
Post #7





Group: Members
Posts: 5
Joined: 26-August 17
Member No.: 809,167



Many thanks, Varti. I'll take a look later and let you know. smile.gif
Go to the top of the page
 
+Quote Post
greguu
post Aug 28 2017, 09:15 PM
Post #8





Group: Moderators
Posts: 270
Joined: 14-November 05
From: New Zealand
Member No.: 8,535



QUOTE(Zaur @ Aug 27 2017, 08:46 AM) *
Many thanks, Varti. I'll take a look later and let you know. smile.gif



Zaur, all default rootfs released here come with the default password "root". If it was changed and you inherited the device I would reinstall from scratch as a good practice. If you do not want to reinstall, just boot from a SD card using the current rootfs (follow the guide http://www.oesf.org/forum/index.php?showtopic=34421) and then "chroot" to the internal CF card and do a "passwd". You will find help on the ArchLinux wiki on how to chroot. https://wiki.archlinux.org/index.php/change_root


This post has been edited by greguu: Aug 28 2017, 09:18 PM
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd September 2017 - 06:11 PM