DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2015-01-11 20:16:34

luusac
Member
Registered: 2008-04-29
Posts: 360

moving from ffp 0.5 to 0.7

Hi,

I have been using ffp0.5 for quite a few years from a USB stick on a dns-323, also with ffp reloaded for e2fsck.  I am now looking to update ffp 0.5 to 0.7.  Is there anything specific I should know/do.  Any pitfalls?
I have seen some guides and I see I need to use the oabi version for the dns-323 and that there is no upgrade path.

Do I need a newer/recompiled usb_storage.ko for ffp 0.7, if so from where? 

I see ffp0.7 fun_plug checks for /mnt/HD_a2/.bootstrap/setup.sh.  On initial installation of ffp0.7 this script will already be there (this is what I use for mounting ffp0.5 at the moment).  Will ffp0.7 be installed straight to USB - if not what do I need to modify to make this happen?  Will my current setup.sh work - is there an updated one? 

Is there anything in ffp0.7 that will prevent me from running ffp reloaded for e2fsck?

Is there any reason why I won't be able to use optware with ffp0.7?

I am looking at
http://nas-tweaks.net/371/hdd-installat … s-devices/
and
http://bernaerts.dyndns.org/nas

Any other suggestions?

many thanks.

Offline

 

#2 2015-01-11 22:10:51

Mijzelf
Member / Developer
Registered: 2008-07-05
Posts: 709

Re: moving from ffp 0.5 to 0.7

the fun_plug script basically does

Create /ffp symlink to the ffp tree
Execute /ffp/etc/fun_plug.init
Execute /ffp/etc/fun_plug.local
Execute /ffp/etc/rc

That is not changed between ffp 0.5 and ffp 0.7. So basically all you need to do is something like:

Code:

mdkir /path/to/usbstick/ffp0.7
cd /path/to/usbstick/ffp0.7
wget ffp7tarball
tar xf ffp7tarball
cd ..
mv ffp ffp0.5
mv ffp0.7 ffp
reboot

Now the box should boot in 0.7, If it fails, you can pull the stick, and rename the directories back.

You don't need anonther usb_storage.ko. When that module is loaded ffp is not yet active (how could it? It's on the stick), and so it has nothing to do with ffp.

Is there anything in ffp0.7 that will prevent me from running ffp reloaded for e2fsck?

No.

Is there any reason why I won't be able to use optware with ffp0.7?

No.

Offline

 

#3 2015-01-14 04:57:04

luusac
Member
Registered: 2008-04-29
Posts: 360

Re: moving from ffp 0.5 to 0.7

Hi,
Thanks for that.  I was having a few problems so I reinstalled ffp0.7 from scratch.  But I am having a few issues.  On this install I have removed the usb stick and .bootstrap/setup.sh

I have reinstalled a couple of times, but can’t fix it.  When I login with telnet I don’t get prompted for a password.  SSH login also throws an ‘error’.  Following the guides this is what I have tried. 

Code:

sh-4.1# usermod -s /ffp/bin/sh root
usermod: no changes
sh-4.1# # mkdir -p /ffp/home/root/
sh-4.1# # sed -ie 's#:/home/root:#:/ffp/home/root:#g' /etc/passwd
sh-4.1# # pwconv
sh-4.1# passwd
Changing password for root
Enter the new password (minimum of 5 characters)
Please use a combination of upper and lower case letters and numbers.
New password:
Re-enter new password:
passwd: password changed.
sh-4.1# login

dlink-EDB467 login: root
Password:

Then I get:

Code:

No directory, logging in with HOME=/
No mail.

I continue (store-passwd.sh is from the ffp archive, not a seperately downloaded one):

Code:

root@dlink-EDB467:/# store-passwd.sh
Mounting flash ...
Updating files ...
  /sys/mtd1/passwd
  /sys/mtd1/group
  /sys/mtd1/shadow
  /sys/mtd1/smbpasswd
  /sys/mtd2/passwd
  /sys/mtd2/group
  /sys/mtd2/shadow
  /sys/mtd2/smbpasswd
Unmounting ...
Done.
root@dlink-EDB467:/# chmod a+x /ffp/start/sshd.sh
root@dlink-EDB467:/# sh /ffp/start/sshd.sh start

Keys are generated.

Code:

Starting /ffp/sbin/sshd
root@dlink-EDB467:/#

When I login via ssh I get:

Code:

Could not chdir to home directory /mnt/USB/ffp/: No such file or directory

This was the path to the USB on the previous install.  Where is this stored, because I thought that by removing /mnt/HD_a2/ffp /mnt/HD_a2/bootstrap/setup.sh, by unplugging the usb stick and by copying fun_plug.tgz & fun_plug I would get a clean install and have nothing left of the old setup.

How can I clean all of the old references to ffp, passwords etc without resetting my dns-323 – it has a raid setup that I want left undisturbed.  Is there old ffp stuff stored in the flash?

Code:

sh-4.1# cat /etc/passwd
root:x:0:0:Linux User,,,:/mnt/USB/ffp/:/ffp/bin/sh
admin:x:500:500:Linux User,,,:/home/admin:/ffp/bin/sh
nobody:x:501:501:Linux User,,,:/home/nobody:/ffp/bin/sh
sshd:x:33:33:sshd:/:/bin/false
me:x:502:502:Linux User,,,:/home/ftp:/bin/sh

I don’t know if it is related, but ps isn’t behaving as I expect, e.g. I only get 2 entries.

Code:

sh-4.1# ps
Unknown HZ value! (0) Assume 100.
  PID TTY          TIME CMD
 7476 pts/1    00:00:00 sh
 7619 pts/1    00:00:00 ps

Thanks.

Offline

 

#4 2015-01-14 11:51:12

Mijzelf
Member / Developer
Registered: 2008-07-05
Posts: 709

Re: moving from ffp 0.5 to 0.7

luusac wrote:

Is there old ffp stuff stored in the flash?

No. But your /etc/passwd file is. And it contains

Code:

root:x:0:0:Linux User,,,:/mnt/USB/ffp/:/ffp/bin/sh

so your sed magic failed.
You should execute

Code:

sed -ie 's#:/mnt/USB/ffp/:#:/ffp/home/root:#g' /etc/passwd

instead.

Offline

 

#5 2015-01-14 14:07:59

luusac
Member
Registered: 2008-04-29
Posts: 360

Re: moving from ffp 0.5 to 0.7

Hi,

Thanks again.  What would an original /etc/passwd look like, one from an un'modded' dns323?  I am wondering whether it would be better to set it back to the default state so a straight ffp install can work properly - or at least know how to do it. 

I note that in my ffp0.5 installation had a

ffp/start/mvhomeroot.sh:

Code:

usermod -d /mnt/USB/ffp/ root

ffp/start/passwd.sh:

Code:

sed -i 's@:/bin/sh$@:/ffp/bin/sh@' /etc/passwd

Both were +x

Neither of these are in the ffp archive, and I can't remember why these should have been necessary if ffp had been setup correctly.  What I do remember is that the whole of ffp was running off usb so there were no issues when running e2fsck.  Time to wade through my old posts.....

edit: link to mvhomeroot.sh

Last edited by luusac (2015-01-15 15:21:24)

Offline

 

#6 2015-01-14 14:38:09

luusac
Member
Registered: 2008-04-29
Posts: 360

Re: moving from ffp 0.5 to 0.7

Thinking about it some more, I realise that I can't be sure that those two scripts were running as I can't now be sure that /mnt/HD_a2/ffp was in sync with /mnt/USB/ffp.  It probably was, but I had both in case of problems with the usb stick version or in case i wanted to remove the usb stick.

Offline

 

#7 2015-03-17 07:21:21

abeha
New member
Registered: 2015-03-17
Posts: 1

Re: moving from ffp 0.5 to 0.7

This was the path to the USB on the previous install.  Where is this stored, because I thought that by removing /mnt/HD_a2/ffp /mnt/HD_a2/bootstrap/setup.sh, by unplugging the usb stick and by copying fun_plug.tgz & fun_plug I would get a clean install and have nothing left of the old setup


Try out our free    http://www.spanishprograms.com    and latest comptia     spanishprograms - learn spanish in mumbai    training courses to get high flying success in final and     learn english online

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB