Jump to content
OMRON Forums

Recommended Posts

Posted

I changed the password of root , but the new password get lost when reboot the PPMAC.

How to save the new password?

Since I have no idea about Linux, a few other questions need answer.

How to install LINUX program through POWER IDE? Will it be saved in flash?

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

See this thread: http://forums.deltatau.com/showthread.php?tid=83

 

Here is the short version. Mount the filesystem as read-write by issuing:

 

mount -o remount,rw /

 

Then use passwd to change the root password. When you are finished, sync the filesystem and remount as read-only:

 

cd /.readonly/etc-tmpfs-mirror/
cp -a * ../etc/
cd /.readonly/root-tmpfs-mirror/
cp -a * ../root/
cd /.readonly/var-tmpfs-mirror/
cp -a * ../var/
mount -o remount,ro / 

Posted

Thank you shansen.

 

When I run your first "cp" step I get the following error.

 

/# cp -a * ../etc/

cp: writing `../etc/bin/bzcat': No space left on device

cp: writing `../etc/bin/gunzip': No space left on device

cp: writing `../etc/bin/bzip2': No space left on device

 

is there something that I am doing wrong?

 

 

See this thread: http://forums.deltatau.com/showthread.php?tid=83

 

Here is the short version. Mount the filesystem as read-write by issuing:

 

mount -o remount,rw /

 

Then use passwd to change the root password. When you are finished, sync the filesystem and remount as read-only:

 

cd /.readonly/etc-tmpfs-mirror/
cp -a * ../etc/
cd /.readonly/root-tmpfs-mirror/
cp -a * ../root/
cd /.readonly/var-tmpfs-mirror/
cp -a * ../var/
mount -o remount,ro / 

Posted

Hmmm. Check the output of df -h to make sure you have free disk space. Also check df -i to make sure you haven't run out of inodes. If you have a logger writing a lot of small files you could potentially have free disk space but run out of inodes.

 

At this point I would reboot the Power PMAC, change the password, and then sync the filesystem.

Posted

Also, why is it trying to copy bzcat, gunzip, etc? Are you sure that you ran the cd /.readonly/etc-tmpfs-mirror/ command to switch directories before the cp -a * ../etc? My /.readonly/etc-tmpfs-mirror folder has the following contents:

 

root@etc-tmpfs-mirror: ls -l
total 12
-rwxr-xr-x 1 root root   283 2011-03-16 08:24 hosts
-rw-r--r-- 1 root root   678 2015-05-09 06:31 mtab
drwxrwxrwx 3 root root    80 2011-03-16 08:24 network
-rw-r----- 1 root shadow 728 2015-05-08 15:05 shadow
drwxr-xr-x 3 root root    60 2009-10-08 11:52 udev
-r--r--r-- 1 root root     0 1981-08-26 17:25 .wh..wh.aufs
drwx------ 2 root root    40 1981-08-26 17:25 .wh..wh.orph
drwx------ 2 root root    40 1981-08-26 17:25 .wh..wh.plnk
root@etc-tmpfs-mirror:

Posted

Thanks Shansen!

 

I think I got it to work. I put an extra space by accident in between the "/" and the "." in that cd command. It seems that the password has stayed now.

 

I just tried uploading new code however, and I'm getting the following error

"Could not Connect to Power Pmac FTP client, ...."

 

I think this is because I changed the password because it started only after I had changed the password. Any ideas?

 

thanks,

windell

 

 

Also, why is it trying to copy bzcat, gunzip, etc? Are you sure that you ran the cd /.readonly/etc-tmpfs-mirror/ command to switch directories before the cp -a * ../etc? My /.readonly/etc-tmpfs-mirror folder has the following contents:

 

root@etc-tmpfs-mirror: ls -l
total 12
-rwxr-xr-x 1 root root   283 2011-03-16 08:24 hosts
-rw-r--r-- 1 root root   678 2015-05-09 06:31 mtab
drwxrwxrwx 3 root root    80 2011-03-16 08:24 network
-rw-r----- 1 root shadow 728 2015-05-08 15:05 shadow
drwxr-xr-x 3 root root    60 2009-10-08 11:52 udev
-r--r--r-- 1 root root     0 1981-08-26 17:25 .wh..wh.aufs
drwx------ 2 root root    40 1981-08-26 17:25 .wh..wh.orph
drwx------ 2 root root    40 1981-08-26 17:25 .wh..wh.plnk
root@etc-tmpfs-mirror:

Posted

This might be an IDE issue. We don't typically use the Delta Tau IDE, so I don't know if they let you specify a non-standard root password.

 

I just tried connecting to the FTP on one of our Power PMACs by browsing to ftp://[iP ADDRESS] in Windows explorer and everything worked correctly.

Guest
This topic is now closed to further replies.

×
×
  • Create New...