LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   setting up server (https://www.linuxquestions.org/questions/linux-newbie-8/setting-up-server-182062/)

tszhim 05-16-2004 11:14 AM

setting up server
 
if i get 10GB hard disk, and i want to install Debian for setting up web and mail server, is it ok for me to just make such partition

hda1 9200MB
hda2 Swap 512MB

?

should i amend this?

emetib 05-16-2004 12:05 PM

that would work.

i like to have my /var, /home, /usr, /root on seperate partitions. you don't have to, but it's nice it you want to do a clean install the next time through instead of just updating. that way you don't have to format the /var and /home.

tszhim 05-16-2004 12:14 PM

but however, i don't know how to create the /var, /home in the logical partition, it seems different to the RedHat Version

emetib 05-16-2004 12:32 PM

what kind of deb are you trying to put in?
if you have highspeed than i would go with this one-
gluck.debian.org/cdimage/testing/sarge_d-i/i386/beta3/sarge-i386-netinst.iso

if that one doesn't work, than i have it on my server also, drop me a line and i will tell you where it is.

when you go to the partitioning part of the install, you should be asked a couple of questions about the fs system, the layout of drives, etc. you should be able to tell it to have your /root a certain size. if your doing the basic install, then i think that it will just do the partitioning for you.
if you have this hd in another box, then use cfdisk. it's pretty straight forward, and i believe it's easier to use than fdisk.

hopefully that helps some.

tszhim 05-16-2004 12:36 PM

i downloaded the files from
http://ftp.au.debian.org/pub/debian-...s/3.0_r2/i386/


is there any difference?

Actually i don't know much about Debian...so please tell me if there is any problem

thanks

emetib 05-16-2004 12:46 PM

the only reason that i said to use that one disk, is because it's a netinstall version. that means that it's very small and only has the things on it that you need to get your system up and running. once it's running then you apt-get all of your other needs. that way everything is the newest of the version that you are running. also, none of the full disks from debian would install on my machine.

if you need to have a gui interface then i would use the disk that you have, the one that i pointed to is only command line. you would have to install a window manager to get the gui going. the netinstall is very nice if you are setting up a server and are looking to keep the base foot print as small as possible, with out having to remove things later on.

since you are going to be just setting up a server, then i would use the partitioning scheme that you asked about. you can just apt-get update the whole system and you won't have to worry about reinstalling things.

tszhim 05-16-2004 12:51 PM

I would like to ask how to apt-get update the whole system ?

thanks

Mega Man X 05-16-2004 12:59 PM

Quote:

Originally posted by tszhim
I would like to ask how to apt-get update the whole system ?

thanks

apt-get update

then

apt-get upgrade

peacebwitchu 05-16-2004 02:39 PM

The beta 4 installer is available now.

Here is the info:
http://www.debian.org/devel/debian-installer/

comp12345 05-16-2004 02:59 PM

Quote:

Originally posted by tszhim
but however, i don't know how to create the /var, /home in the logical partition, it seems different to the RedHat Version
I think RedHat automatically partitions the hard drive to setup different partitons for /boot, /home, /var, /, etc. With the Debian installer, you have to set this up yourself. During the install, there is an option to partition the hard disk. That is where you create the number of partitions you need (i.e. 4 if you are creating /, /home, /var, and swap). Then the next thing you do is to format and mount the partitions to the corresponding mount points (i.e. /dev/hda1 to /, /dev/hda2 to /home ...).

It's okay if you use one partition. Just use whatever method works for you.

Quote:

Originally posted by Megaman X
apt-get update

then

apt-get upgrade

It's better to do an "apt-get dist-upgrade" to upgrade the whole system.

tszhim 05-16-2004 10:47 PM

Quote:

Originally posted by comp12345
I think RedHat automatically partitions the hard drive to setup different partitons for /boot, /home, /var, /, etc. With the Debian installer, you have to set this up yourself. During the install, there is an option to partition the hard disk. That is where you create the number of partitions you need (i.e. 4 if you are creating /, /home, /var, and swap). Then the next thing you do is to format and mount the partitions to the corresponding mount points (i.e. /dev/hda1 to /, /dev/hda2 to /home ...).




Are you meaning that I just need to create the partition like this
hda1 Primary 5Gb
hda2 Primary Sway 512MB
hda5 Logical
hda6 Logical
hda7 Logical
hda8 Logical

and i need to mount the hda5-8 to /var , /home after the installation?

but how to mount?


Thanks

emetib 05-17-2004 12:49 AM

Quote:

Originally posted by tszhim
Are you meaning that I just need to create the partition like this
hda1 Primary 5Gb
hda2 Primary Sway 512MB
extended (this will have your logicals in it.)
hda5 Logical
hda6 Logical
hda7 Logical
hda8 Logical

and i need to mount the hda5-8 to /var , /home after the installation?

but how to mount?


Thanks

if your doing this during the install it should be asking you where you want to mount these. the installer will do it for you.

if not, then-
mount /dev/hda5 /mnt/var
mount /dev/hda6 /mnt/usr
mount /dev/hda7 /mnt/home


All times are GMT -5. The time now is 04:07 PM.