Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Second Harddisk

Is there a way to add a second harddisk to the firewall and move some stuff (SMTP / Squid) to  the second disk ?

Thanks
Volker


This thread was automatically locked due to age.
Parents
  • Hi Volker,

    If you install ASL successfully on one disk, then install a second one I think you MAY move stuff to the other disk. That suggests of course, that you can link the new disk/directories in the current hierarchy with "ln".

    Best regards,
    Ørjan Sandland¨
  • The question is: how can I format a disk and create partitions ....

    I would like to put the smtp or squid partition to another disk.

    Volker
  • Hi Volker,
    for security reasons, the asl distribution contains not tools for partitioning and formatting harddisks. But you can do the following:
    1. install the second harddisk in your pc
    2. boot with a installation cdrom of redhat linux (7.x) and choose the 'linux rescue' option when the boot prompt appears
    3. a dialog box appears: choose your language (don't be scared: nothing will be installed!); do not let the system mount anything - you will not need it
    4. lets say, your new harddisk is /dev/hdb; so do a fdisk /dev/hdb; create two (or more) partitions: /dev/hdb1 and /dev/hdb2
    5. create the filesystems: 

    6. reboot you asl; check if the new partitions are present: 

    7. mount the partitions to temporary mountpoints: 

    8. chdir to /var/chroot-squid: 

    9. stop squid: 

    10. copy the hole stuff to the new location: 
     (or use tar)
    11. umount your old squid-partition: 
     and also the new one 

    12. now edit your /etc/fstab (try 
     when you have trouble with vi)
    13. do a 

    14. start your squid again: 

    15. hopefully all works fine (and i didn't forget something :-)

    Don't use ln - you cannot use hard links on directories and it also can cause trouble, cause squid runs chrooted!

    - Sorry for the (too) long text
    Bye,
    Michael
  • Thanks for the Info. I had not thought about booting from another linux system.

    Volker
Reply Children
No Data