Página 1 de 1

set partition after install

MensagemEnviado: Qua Fev 15, 2012 4:20 pm
por Trcukdriver
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

Re: set partition after install

MensagemEnviado: Qua Fev 15, 2012 4:43 pm
por TooR
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!

Re: set partition after install

MensagemEnviado: Qua Fev 15, 2012 4:52 pm
por Trcukdriver
OK partition and formating.But how to mout so dns cache easy captive etc.can see it as a partition and working with it?

Re: set partition after install

MensagemEnviado: Qua Fev 15, 2012 5:03 pm
por TooR
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

Re: set partition after install

MensagemEnviado: Qua Fev 15, 2012 5:28 pm
por Trcukdriver
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

Re: set partition after install

MensagemEnviado: Qua Fev 15, 2012 6:32 pm
por Trcukdriver
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

Re: set partition after install

MensagemEnviado: Qua Fev 15, 2012 9:36 pm
por TooR
Edit "/etc/rc.d/rc.local"

put

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

Next...

Código: Selecionar todos
backup
reboot

Re: set partition after install

MensagemEnviado: Qui Fev 16, 2012 7:37 am
por Trcukdriver
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

Re: set partition after install

MensagemEnviado: Qui Fev 16, 2012 11:20 am
por jhonfw
hello

in spanish

debe editar en root.tgz --->/etc/rc.d/rc.sysinit

Re: set partition after install

MensagemEnviado: Qui Fev 16, 2012 12:31 pm
por Trcukdriver
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

Re: set partition after install

MensagemEnviado: Qui Fev 16, 2012 3:15 pm
por jhonfw
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

Re: set partition after install

MensagemEnviado: Sex Fev 17, 2012 5:55 am
por Trcukdriver
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

Re: set partition after install

MensagemEnviado: Sex Fev 17, 2012 1:10 pm
por jhonfw
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

Re: set partition after install

MensagemEnviado: Qua Fev 22, 2012 4:52 am
por Trcukdriver
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?

Re: set partition after install

MensagemEnviado: Qua Fev 22, 2012 12:34 pm
por jhonfw
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