set partition after install  [INACTIVE]

BrazilFW 2.xhelp discussions in English.

set partition after install

Mensagempor Trcukdriver » Qua Fev 15, 2012 4:20 pm

How to set up partition and mount it for dns cache etc after installing brazilFW 2.3.2?I use CF card.Cant be split for more partition.So I use another one but Idonot know how to mount as a partition so bfw can see it as a partition for all addons.I did some modification in hdb but still donot work.Can anybody tell me step by step configuration?
Thanks
Trcukdriver
 

Re: set partition after install

Mensagempor TooR » Qua Fev 15, 2012 4:43 pm

Hi Trcukdriver ,

You have the base system on a CF card

And, you need to install another hard disk to use:

example: squid cache .. etc... ?

If that is so.

The steps are:

1) Partition Your Hard Drive
2) Format the Hard Drive
3) Mount the new hard drive in your system

More info: viewtopic.php?f=9&t=79082&p=258637#p258637 (topic in Spanish, use a translator.) :o!
Avatar do usuário
TooR
BFW Very Participative
 
Mensagens: 494
Registrado em: Ter Mar 17, 2009 8:29 pm
Localização: En TU! PC
BrazilFW Box: Intel(R) Pentium(R) 4 CPU 3.00GHz - RAM: 2048 MB

Re: set partition after install

Mensagempor Trcukdriver » Qua Fev 15, 2012 4:52 pm

OK partition and formating.But how to mout so dns cache easy captive etc.can see it as a partition and working with it?
Trcukdriver
 

Re: set partition after install

Mensagempor TooR » Qua Fev 15, 2012 5:03 pm

3) Mount the new hard drive in your system

Código: Selecionar todos
mkdir /newpartition
mount /dev/hdXX /newpartition

Imagem
Código: Selecionar todos
mkdir /newpartition
mount /dev/hdb5 /newpartition

automatically mount on startup. Add these lines to the file rc.local

After that configure the addons to /newpartition
Avatar do usuário
TooR
BFW Very Participative
 
Mensagens: 494
Registrado em: Ter Mar 17, 2009 8:29 pm
Localização: En TU! PC
BrazilFW Box: Intel(R) Pentium(R) 4 CPU 3.00GHz - RAM: 2048 MB

Re: set partition after install

Mensagempor Trcukdriver » Qua Fev 15, 2012 5:28 pm

One more question?How to configure easy captive and dns cache for this partition I made?If I do clean install bfw then do partition then install those addons for partition?Will they find partition automaticaly?
Thanks
Trcukdriver
 

Re: set partition after install

Mensagempor Trcukdriver » Qua Fev 15, 2012 6:32 pm

Please one more thing in putty should I write = ëdit /etc/rc.d/rc.local = then manually write this two line or without edit?After I restart partition disapear
Trcukdriver
 

Re: set partition after install

Mensagempor TooR » Qua Fev 15, 2012 9:36 pm

Edit "/etc/rc.d/rc.local"

put

Código: Selecionar todos
mkdir /newpartition
mount /dev/hdXX /newpartition

Next...

Código: Selecionar todos
backup
reboot
Avatar do usuário
TooR
BFW Very Participative
 
Mensagens: 494
Registrado em: Ter Mar 17, 2009 8:29 pm
Localização: En TU! PC
BrazilFW Box: Intel(R) Pentium(R) 4 CPU 3.00GHz - RAM: 2048 MB

Re: set partition after install

Mensagempor Trcukdriver » Qui Fev 16, 2012 7:37 am

Great it is working - partition is mounted every time I boot up.Thank You much.
There is one more thing.If You can help me please.
While boot up - packages loading first then partition is mounted.So they dont find partition and donot work with it.I reload services after boot but dont work all the time.What I need is dnscache - easy captive and squid make a work right way with my mounted partition.How to do it?
Thank You
Trcukdriver
 

Re: set partition after install

Mensagempor jhonfw » Qui Fev 16, 2012 11:20 am

hello

in spanish

debe editar en root.tgz --->/etc/rc.d/rc.sysinit
Avatar do usuário
jhonfw
BFW Advanced
 
Mensagens: 1076
Registrado em: Seg Fev 02, 2009 9:35 pm
BrazilFW Box:

Re: set partition after install

Mensagempor Trcukdriver » Qui Fev 16, 2012 12:31 pm

If You can answer even in spanish I translate it.In "sysinit" is too many lines and information.What exactly and where what line I should put in?
Thanks
Trcukdriver
 

Re: set partition after install

Mensagempor jhonfw » Qui Fev 16, 2012 3:15 pm

Trcukdriver escreveu:If You can answer even in spanish I translate it.In "sysinit" is too many lines and information.What exactly and where what line I should put in?
Thanks


comentar código montaje automático de partition y reemplazarlo por código montaje por ejemplo



Código: Selecionar todos
# New Mount Partition by Washington Rodrigues 2008 #

. /etc/coyote/coyote.conf
if [ "$MEDIA" != "CDROM" ]; then

   #if [ -z "$PARTITION" ]; then
  #    IDHD=`echo $(($(echo $DEVICE | sed s/[^0123456789]//g)+1))`
  #    PART2=`echo $DEVICE | sed s/[0123456789]//g`"$IDHD"
  # else
      PART2=`echo "$PARTITION"`
   #fi
   #mount -o ro $PART2 $MNT 2>/dev/null
   #if [ "$?" = 0 ]; then
   #   FSF=`mount | grep -i "$MNT" | cut -f5 -d" "`
   #   echo -e "DEVICE=$PART2\012FSTYPE=$FSF" > /tmp/partition.info
   #   umount $MNT
   #fi
   #if [ -e "/tmp/partition.info" ]; then
   #   /bin/e2fsck -p $PART2
   #   [ "$?" != 0 ] && /bin/e2fsck -f -y $PART2
   #   mkdir /partition
  #    mount -o noatime,nodiratime $PART2 /partition 2>/dev/null
  # fi
#mount 2 disk
# new code for  mount partition in other hard disk

   echo "DEVICE=/dev/hdb2">/tmp/partition.info
   echo "FSTYPE=ext3">> /tmp/partition.info

   mkdir /partition
      mount -o noatime,nodiratime /dev/hdb2 /partition 2>/dev/null


fi
Avatar do usuário
jhonfw
BFW Advanced
 
Mensagens: 1076
Registrado em: Seg Fev 02, 2009 9:35 pm
BrazilFW Box:

Re: set partition after install

Mensagempor Trcukdriver » Sex Fev 17, 2012 5:55 am

Great ! there is line
echo "DEVICE=/dev/hdb2">/tmp/partition.info
echo "FSTYPE=ext3">> /tmp/partition.info
mount -o noatime,nodiratime /dev/hdb2 /partition 2>/dev/null

should I use /dev/hdb2 or my real device what is hdc1?
And FSTYPE I have some linux not sure about ext2 or ext3 File system on it is choose number 83 while formating and its showing in fdisk as a linux filesystem.Whats should be there?
Thank You Much
Trcukdriver
 

Re: set partition after install

Mensagempor jhonfw » Sex Fev 17, 2012 1:10 pm

should I use /dev/hdb2 or my real device what is hdc1?


su dipositivo real

Código: Selecionar todos
#fdisk -l


And FSTYPE I have some linux not sure about ext2 or ext3 File system on it is choose number 83 while formating and its showing in fdisk as a linux filesystem.Whats should be there?

cfdisk tiene la respuesta
Código: Selecionar todos
#cfdisk /dev/hdc



para editar el archivo ,en español
http://www.brazilfw.com.br/forum/viewtopic.php?f=9&t=74750&p=223046&hilit=cp+root.tgz#p223046
Avatar do usuário
jhonfw
BFW Advanced
 
Mensagens: 1076
Registrado em: Seg Fev 02, 2009 9:35 pm
BrazilFW Box:

Re: set partition after install

Mensagempor Trcukdriver » Qua Fev 22, 2012 4:52 am

I write it down to - root.tgz --->/etc/rc.d/rc.sysinit - lines as you told me.I press -CTRL-Q-Y to save a file is that right?But always when restart those lines disappear from root.tgz and partition is not loaded before but after packages loaded to memory and they dont find partition.
In this -cfdisk /dev/hdc- I have exactly under -FS Type- Linux ext2-
What Im doing wrong?
Trcukdriver
 

Re: set partition after install

Mensagempor jhonfw » Qua Fev 22, 2012 12:34 pm

Via putty copy and paste all lines
Código: Selecionar todos
cd /
mkdir /tmp/roottmp
mt
cp /mnt/root.tgz /tmp/roottmp/
cd /tmp/roottmp
tar xzf root.tgz
rm root.tgz


edit this file
winscp is more easy for edit

/tmp/roottmp/etc/rc.d/rc.sysinit



now

putty
copy and paste

Código: Selecionar todos
cd /tmp/roottmp
tar czf root.tgz *
chmod +x root.tgz
mv root.tgz /mnt/
cd /
rm -rf /tmp/roottmp
umt
reboot


in spanish

lo acabo de probar con squid y el directorio /partition/squid se crea en el segundo disco duro
Avatar do usuário
jhonfw
BFW Advanced
 
Mensagens: 1076
Registrado em: Seg Fev 02, 2009 9:35 pm
BrazilFW Box:


Voltar para BrazilFW 2.x - English Forum

Quem está online

Usuários navegando neste fórum: Nenhum usuário registrado e 4 visitantes

cron