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 2008-12-08 00:41:47

Mikromann
Member
Registered: 2008-12-05
Posts: 17

mounting gone after reboot

hi,
as alreay written above, as soon as i reboot, all mounted folders are gone.
i've tried to do a workaround for the poor ftp provided and simply made a folder for each group
and simply mounted other folders in. works very quite good and i'm pleased.
but as soon as i reboot the device, everything is gone...well the actual folders are still there of course,
but the whole structure i set up by mounting is gone.
i don't know if my workaround is just crap or if i'm doing something wrong (although i don't know what you could actually do wrong with mounting)

regards,
Mikro

Offline

 

#2 2008-12-09 08:02:46

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: mounting gone after reboot

Mounting where?  On the DNS, Windows, etc?  What is getting rebooted.  We need a little more detail as to what you are doing.


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#3 2008-12-11 01:02:26

Mikromann
Member
Registered: 2008-12-05
Posts: 17

Re: mounting gone after reboot

i've made several folders for ftp-users.
unfortunately you can only apply one folder for each user.
to avoid that issue i used the command "mount /existing_folder/ /destination folder/" to let all files of "existing_folder" be shown in "destination_folder".
this works great and now i can make multiple folders on my NAS accessible to ftp-users.
but as soon as is reboot the NAS (the entire NAS), every mount is gone.
i was thinking about generating a script, which runs at startup and issues the necessary commands.
but i'm still curious why this happens and if i am doing something wrong.

i hope i could state clearly what my problem is.
if not, please let me know!

regards,
Mikro

Last edited by Mikromann (2008-12-11 01:04:42)

Offline

 

#4 2008-12-12 00:45:02

bq041
Member
From: USA
Registered: 2008-03-19
Posts: 709

Re: mounting gone after reboot

This is normal.  when you invoke a mount command, it is only good until a reboot.  Each mount is created everytime the unit is booted using configuration files that are stored in the flash memory.  If yo want them to be available each reboot of the NAS, then you will need to have a fun_plug script mount each point you want.


DNS-323     F/W: 1.04b84  H/W: A1  ffp: 0.5  Drives: 2X 400 GB Seagate SATA-300
DNS-323     F/W: 1.05b28  H/W: B1  ffp: 0.5  Drives: 2X 1 TB  WD SATA-300
DSM-G600   F/W: 1.02       H/W: B                Drive:  500 GB WD ATA

Offline

 

#5 2008-12-12 01:00:47

Mikromann
Member
Registered: 2008-12-05
Posts: 17

Re: mounting gone after reboot

alright... i thought the system handled mount commands like that.
that's why i just wrote a script "mount.sh" which contains all commands.
but it just doesn't work, since it only executes the last command of a lot correctly.
i.e. :
mount /bla/x/ /x/
mount /bla/y/ /y/
mount /bla/z/ /z/

if i execute mount.sh i get the errormsgs that the first two commands are not pointing to a valid folder, but the last command is executed perfectly.
i've tried ln -s for symbolic links, just to check if it's a problem with the mount command. but i get an error there too.

i came to the conclusion that the problem is the following command, and if there are no following commands, then everything works fine (last command always works).
so is there a break/stop code or any indication i have to type in, that indicates the system, that there is another command to come?
i.e a , or a ; ?
of course i tried these and only got errors.

thanks for the help so far!

Offline

 

#6 2008-12-12 01:08:33

Mikromann
Member
Registered: 2008-12-05
Posts: 17

Re: mounting gone after reboot

ah...i've found my mistake.
i used notepad++ to write the mount.sh
after looking through it with vi, i could see a lot of symbols, which i didn't type in but of course destroyed the valid links.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB