Saving data on other disk with “Virtual Hosting With PureFTPd And MySQL Ubuntu 7.10"

Discussion in 'HOWTO-Related Questions' started by yoyoman, Feb 18, 2008.

  1. yoyoman

    yoyoman New Member


    I’m trying to create a ftp server with 500 gb of storage. And my goal was to keep the costs down, so I gathered computer components from all over the house. I found an old Compaq motherboard, 256 mb ram and a Pentium 3 Cpu (500 mhz). I wanted to test this setup first on a 6.5 gb disk before I went and bought the 500 gb I put in later. The disk I bought is a sata2 disk from Hitachi. Of course my computer doesn’t have any sata connectors so I bougt a sata controller pci card from sitecom. With this sata controller this disk is not bootable so I wil have to install ubuntu on my 6.5 gb disk and store all the data on my 500 gb disk. This is no problem of course, but it poses some challenges.

    I followed this tutorial: “Virtual Hosting With PureFTPd And MySQL (Incl. Quota And Bandwidth Management) On Ubuntu 7.10 (Gutsy Gibbon)”

    This works when I store my data on the 6.5 gb disk. (in the folder /home/test). But now I want to change this so it will store all ftp data on the 500 gb disk.

    First of all, the 500 gb disk doesn’t have a partition yet, and I don’t have clue how to partition it with ubuntu. I googled around a little bit but couldn’t find how I can do this. There is one thing about this question I do know, there are going to be large files on the disk, so Fat isn’t an option.

    And last but not least, how can I make the current installation of ubuntu refer to my 500 gb disk? So I can store my data there.

    Thanks for reading (and answering ;) )


  2. thecaoticone

    thecaoticone New Member

    Ubuntu comes with fdisk and cfdisk for partitioning hard drives ( cfdisk is a little more user friendly).
    Issue the command:

    fdisk /dev/sda


    cfdisk /dev/sda

    replace "sda" with your sata drive.

    After the partition(s) are created you will need to format the partition(s) using the type of file system you choose.

    ext2 = mke2fs
    ext3 = mke2fs -j
    reiserfs = mkreiserfs
    xfs = mkfs.xfs
    jfs = mkfs.jfs

    for a reiserfs file system issue the command

    mkreiserfs /dev/sda

    Then create an entry in your /etc/fstab for the device to be mounted:

    /dev/sda /storage reiserfs defaults 0 1

    Reboot the system.

    Change your ftp set-up to upload files to the /storage partition.

    You may need to do a chmod to set permissions for the /storage drive.

    More about fstab options can be found here:

    for fdisk look here:
    Last edited: Feb 19, 2008

Share This Page