Can't change password, can't perform update, etc.

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

Can't change password, can't perform update, etc.

Postby habibie » Mon Apr 23, 2018 2:21 pm

I finally managed to get my Seagate GoFLEX Home up running with the Arch Linux ARM OS that I downloaded and extracted from ArchLinuxARM-2018.04-kirkwood-rootfs.tar.gz on a USB memory stick. Once SSH login to my device, I tried to perform many different things, i.e. change the default password for the alarm account, switch to root account, perform an update, etc., but ended up with some error messages as shown below.
$this->bbcode_second_pass_code('', '[alarm@alarm ~]$ passwd
Changing password for alarm.
Current password:
New password:
Retype new password:
passwd: Authentication token lock busy
passwd: password unchanged
[alarm@alarm ~]$ su
Password:
[root@alarm alarm]# pacman -Syy
:: Synchronizing package databases...
error: failed to update core (unable to lock database)
error: failed to update extra (unable to lock database)
error: failed to update community (unable to lock database)
error: failed to update alarm (unable to lock database)
error: failed to update aur (unable to lock database)
error: failed to synchronize any databases
error: failed to init transaction (unable to lock database)
error: could not lock database: Read-only file system
[root@alarm alarm]#')

The first thing I tried to troubleshoot these problems is to list the root filesystem (see below). From the root filesystem listing, I noticed the missing owner's write permission on both /proc and /sys directories. I don't know if this has anything to do with not being able to perform the above tasks. However, if anyone has a solution to this, I certainly will appreciate some helps.
$this->bbcode_second_pass_code('', '[alarm@alarm ~]$ ls -la /
total 60
drwxr-xr-x 17 root root 4096 Apr 10 2018 .
drwxr-xr-x 17 root root 4096 Apr 10 2018 ..
lrwxrwxrwx 1 root root 7 Mar 11 19:36 bin -> usr/bin
drwxr-xr-x 2 root root 4096 Apr 13 2018 boot
drwxr-xr-x 14 root root 3860 Mar 27 12:37 dev
drwxr-xr-x 37 root root 4096 Apr 23 2018 etc
drwxr-xr-x 3 root root 4096 Apr 13 2018 home
lrwxrwxrwx 1 root root 7 Mar 11 19:36 lib -> usr/lib
drwx------ 2 root root 16384 Apr 10 2018 lost+found
drwxr-xr-x 2 root root 4096 Mar 11 19:36 mnt
drwxr-xr-x 2 root root 4096 Mar 11 19:36 opt
dr-xr-xr-x 89 root root 0 Jan 1 1970 proc
drwxr-x--- 3 root root 4096 Apr 18 2018 root
drwxr-xr-x 14 root root 380 Mar 27 12:37 run
lrwxrwxrwx 1 root root 7 Mar 11 19:36 sbin -> usr/bin
drwxr-xr-x 4 root root 4096 Apr 7 2018 srv
dr-xr-xr-x 12 root root 0 Jan 1 1970 sys
drwxrwxrwt 7 root root 140 Mar 27 12:37 tmp
drwxr-xr-x 8 root root 4096 Apr 7 2018 usr
drwxr-xr-x 10 root root 4096 Apr 13 2018 var
[alarm@alarm ~]$')
habibie
 
Posts: 28
Joined: Sun Nov 04, 2012 11:55 am

Re: Can't change password, can't perform update, etc.

Postby summers » Mon Apr 23, 2018 3:23 pm

I'd guess that your root file system is mounted read only or something. You should be able to check in $this->bbcode_second_pass_code('', '/proc/mounts'). If it is mounted read only, then it would explain your errors. The question then becomes why. Start by examining $this->bbcode_second_pass_code('', 'dmesg') and see what happened ...
summers
 
Posts: 984
Joined: Sat Sep 06, 2014 12:56 pm

Re: Can't change password, can't perform update, etc.

Postby habibie » Tue Apr 24, 2018 2:12 am

My /etc/fstab appears to contain no partition and is shown below.
$this->bbcode_second_pass_code('', '[alarm@alarm ~]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
dev 57140 0 57140 0% /dev
run 59996 1044 58952 2% /run
/dev/sda1 3817872 798448 2805768 23% /
tmpfs 59996 0 59996 0% /dev/shm
tmpfs 59996 0 59996 0% /sys/fs/cgroup
tmpfs 59996 0 59996 0% /tmp
tmpfs 11996 0 11996 0% /run/user/1000
[alarm@alarm ~]$ cat /etc/fstab
# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
[alarm@alarm ~]$')
The output from mount is shown below and it indicates the /dev/sda1 (root partition is mounted RO. I reckon this is what causes the problem
$this->bbcode_second_pass_code('', '[alarm@alarm ~]$ mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=57140k,nr_inodes=14285,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/sda1 on / type ext4 (ro,relatime,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=39,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=11996k,mode=700,uid=1000,gid=100)
[alarm@alarm ~]$ dmesg|less
[alarm@alarm ~]$ mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=57140k,nr_inodes=14285,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/sda1 on / type ext4 (ro,relatime,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=39,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=11996k,mode=700,uid=1000,gid=100)
[alarm@alarm ~]$')
After editing my /etc/fstab to include the /dev/sda1 partition as shown below, now I can change the password as well as performing pacman -Syy. Thank you.
$this->bbcode_second_pass_code('', '[root@alarm alarm]# cat /etc/fstab
# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
LABEL=rootfs / ext4 noatime,errors=remount-ro 0 1
tmpfs /tmp tmpfs defaults 0 0

[root@alarm alarm]#')
habibie
 
Posts: 28
Joined: Sun Nov 04, 2012 11:55 am


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 2 guests