Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th February 2008, 22:24
yoyoman yoyoman is offline
Junior Member
 
Join Date: Jan 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Saving data on other disk with 天irtual Hosting With PureFTPd And MySQL Ubuntu 7.10"

Hi,

I知 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稚 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: 天irtual 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稚 have a partition yet, and I don稚 have clue how to partition it with ubuntu. I googled around a little bit but couldn稚 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稚 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 )

Bye,

Yorick
Reply With Quote
Sponsored Links
  #2  
Old 19th February 2008, 06:45
thecaoticone thecaoticone is offline
Member
 
Join Date: Nov 2007
Posts: 89
Thanks: 1
Thanked 18 Times in 16 Posts
 
Default

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

fdisk /dev/sda

or:

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:

http://www.tuxfiles.org/linuxhelp/fstab.html



for fdisk look here:
http://www.dslreports.com/faq/4851

Last edited by thecaoticone; 19th February 2008 at 06:47.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with Virtual Hosting With PureFTPd And MySQL (Incl. Quota And Bandwidth Mana ikkem HOWTO-Related Questions 33 8th June 2012 18:27
Virtual Hosting With PureFTPd And MySQL quota problem GaulHahn Server Operation 3 29th July 2008 14:32
Virtual Hosting With PureFTPd And MySQL (Incl. Quota And Bandwidth Management) sEby HOWTO-Related Questions 3 22nd January 2008 03:21
Virtual Hosting with PureFTPd and MySQL - FC7 chalee HOWTO-Related Questions 1 6th September 2007 22:19
Virtual Hosting With PureFTPd And MySQL troubles Mave HOWTO-Related Questions 2 25th November 2006 03:08


All times are GMT +2. The time now is 14:58.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.