PDA

Bekijk de volledige versie : Oleg version 10



maxo777
06-04-2008, 19:54
Dear Friends .. i must admit that you doo sooo much work .. that we .. users could not in our lifetime to give you enough credit .. so .. thank you .. oleg .. wengi .. and others ..

my problem ..

after upgrade from version 8 .. and after my samba stoped working .. dont know why .. and after loosing all data on the hdd .. after fiew restarts .. soo .. thats life .. like a box of chocolates . ;-)

so i installed 10 version . samba 2 and ftp inplemented and working fine .. following wengi tutorial was not so helpfull word by word .. so i decidet not to play with post-boot .. because the mounting of the hdd was messed up ..

so this is my question .. how to .. change


[maxo@homer root]$ df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 3072 3072 0 100% /
/dev/discs/disc0/part2 985720 83532 852116 9% /tmp/mnt/disc0_2
/dev/discs/disc0/part3 27363196 844716 25128504 3% /tmp/mnt/disc0_3


changing from /tmp/mnt/discxxx intoo mounting to /opt and /tmp/hardisk ( for example )

that i could continue to use wengis tutorial . without steps
samba2 , and .. could someone implement this threat
http://wl500g.info/showthread.php?t=13785
into some newbe tutorial ..

ewentualy i will learn it how to make it work .. but to me it will take 3-7 days .. to experts ... 1 minute ;-)

thank you ..

maxo777
07-04-2008, 12:43
tried in post-boot


#!/bin/sh
dropbear

# Activate swap
swapon /dev/discs/disc0/part1

#umount all mounted hdd
umount /tmp/mnt/disc0_2
umount /tmp/mnt/disc0_3

#mount all hdd
mount /dev/discs/disc0/part3 /tmp/harddisk
mount /dev/discs/disc0/part2 /opt


but the result was after df..


[maxo@homer root]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 3072 3072 0 100% /
/dev/root 3072 3072 0 100% /
/dev/discs/disc0/part2
985720 83532 852116 9% /opt
/dev/discs/disc0/part3
27363196 131228 25841992 1% /tmp/mnt/disc0_3


how to change the mounted places ?? how to make it work ?
thanks

Oleg
07-04-2008, 12:46
Use /etc/fstab.

maxo777
07-04-2008, 12:57
thank you .. you are my hero..

nazariy
13-04-2008, 12:27
hello.
When I try to create my /etc/fstab


device Mountpoint FStype Options Dump Pass#
/dev/discs/disc0/part1 /opt ext3 rw 1 1


and I do

flashfs save && flashfs commit && flashfs enable && reboot

My fstab disappears :( (500gp delete him)
How I can solve this problem?

P.S. I use post-boot
mount bla /opt
but I want fstab :)

Thx you

al37919
13-04-2008, 12:34
echo "/etc/fstab" > /usr/local/.files
flashfs save && flashfs commit && flashfs enable && reboot

nazariy
13-04-2008, 12:45
Wow
only 7 min :D

Thx it's solve my problem :P

DrChair
14-04-2008, 21:02
echo "/etc/fstab" > /usr/local/.files
flashfs save && flashfs commit && flashfs enable && reboot

I would use:


echo "/etc/fstab" >> /usr/local/.files
flashfs save && flashfs commit && flashfs enable && reboot

( >> instead of >)
This way it preserves possible other entries in .files