ubuntu help needed

Started by psp83, Dec 12, 2008, 18:29:42

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

psp83

Hi all.

Anyone here that can help me with ubuntu?

I've built servers before but only with 1 HDD in them. The server i just built for work has 3 HDD in it.

1st HDD 250gb, main OS etc.
2nd HDD 500gb, main dev storage
3rd HDD 500gb, file storage (not connected yet as sata cable came broke and waiting for replacement)

My trouble is, how the hell do you mount the 2nd hard drive to the folder /media/www that has been created with "sudo mkdir /media/www"  ???

I've done "sudo fdisk -l" and heres a pic of the screen (the part in the red box on the bigger pic)

*click for bigger one

Also i want this drive to be mouted automatically on reboots.

Grateful for any help

Paul

kinmel

Ok,

the following is a perfect example why I like a GUI rather than a command line



Brian, who is my Ubuntu Server bod says ...............

to partition the drive enter "sudo fdisk /dev/sdb"

when fdisk starts "m" gives you the command list

"n" is the command for a new partition

It will ask for a partition number (which should be 1) make it primary, then it will ask for size
This can be in bytes, kilobyte (end number with K) or megabytes (end number with M)

Check the system id ("t" in the command list)  82 is the number for the linux ext3 format

Back at the main menu press "w" to write to disk

to mount the partition at boot time we must edit the fstab so "sudo nano /etc/fstab"

once inside we add this line (no quotes)

"/dev/sdb1       /media/www      ext3   relatime   0   2"


to mount it after boot we type

"sudo mount /dev/sdb1"
Alan  ‹(•¿•)›

What is the date of the referendum for England to become an independent country ?

Steve

Is there any issue with using the GUI with Ubuntu server? or am I just being a philistine. I suppose its senility I just cannot be bothered to learn all those commands and switches.
Steve
------------
This post reflects my own views, opinions and experience, not those of IDNet.

psp83

Quote from: stevethegas on Dec 12, 2008, 20:10:32
Is there any issue with using the GUI with Ubuntu server? or am I just being a philistine. I suppose its senility I just cannot be bothered to learn all those commands and switches.

People say the gui uses more process power but to be honest i dont know if thats true. I use command line as i use SSH alot etc.
Plus i want to fully learn linux and the only way for servers is command line.

psp83

Quote from: kinmel on Dec 12, 2008, 20:03:02
Ok,

the following is a perfect example why I like a GUI rather than a command line



Brian, who is my Ubuntu Server bod says ...............

to partition the drive enter "sudo fdisk /dev/sdb"

when fdisk starts "m" gives you the command list

"n" is the command for a new partition

It will ask for a partition number (which should be 1) make it primary, then it will ask for size
This can be in bytes, kilobyte (end number with K) or megabytes (end number with M)

Check the system id ("t" in the command list)  82 is the number for the linux ext3 format

Back at the main menu press "w" to write to disk

to mount the partition at boot time we must edit the fstab so "sudo nano /etc/fstab"

once inside we add this line (no quotes)

"/dev/sdb1       /media/www      ext3   relatime   0   2"


to mount it after boot we type

"sudo mount /dev/sdb1"

Thank you. I will give this ago when i get into the office monday. It doesn't seem that hard to add another HDD after all  ;D

First time for everything though  :)

Steve

Quote from: psp83 on Dec 12, 2008, 20:21:11
People say the gui uses more process power but to be honest i dont know if thats true. I use command line as i use SSH alot etc.
Plus i want to fully learn linux and the only way for servers is command line.

Enjoy it from my brief exposure to Ubuntu, it was nice to realise that I had some control over what was going on for once. ;D
Steve
------------
This post reflects my own views, opinions and experience, not those of IDNet.

kinmel

Quote from: psp83 on Dec 12, 2008, 20:21:11
People say the gui uses more process power but to be honest i dont know if thats true. I use command line as i use SSH alot etc.
Plus i want to fully learn linux and the only way for servers is command line.

The GUI certainly adds more processes that the server does not require to function. The hardware overhead is minimal and most machines can more than cope with the extra work, so why not add the GUI ?

I don't doubt that if you take the trouble to learn it all, it gives you greater control, but it isn't necessary to keep normal Ubuntu installations working properly.
Alan  ‹(•¿•)›

What is the date of the referendum for England to become an independent country ?

psp83

#7
I have now mounted the 500 GB HDD (/dev/sdb1) to /home/www insted of /media/www (following your post kinmel, just replacing media with home after doing sudo mkdir /home/www)

Problem is, when running a php script to give free space. it gives me 211.64 GB free. Does this mean its picking up the space from the main drive and not the mounted 500 GB HDD ?

kinmel

Brian tells me ....

Hard to say without seeing the script. 

There is a program for disk space called "Disk usage Analyzer" in the accessories menu this will show total filesystem space and usage
Alan  ‹(•¿•)›

What is the date of the referendum for England to become an independent country ?

psp83

Quote from: kinmel on Dec 15, 2008, 11:33:33
Brian tells me ....

Hard to say without seeing the script. 

There is a program for disk space called "Disk usage Analyzer" in the accessories menu this will show total filesystem space and usage


Was my mistake. forgot to put the path into the function.

I did disk_free_space("/"); insted of disk_free_space("/home/www");

putting df -h into the command line tells me /home/www has 435 GB left.

kinmel

Alan  ‹(•¿•)›

What is the date of the referendum for England to become an independent country ?

Lance

I think we need to get brian signed up here!
Lance
_____

This post reflects my own views, opinions and experience, not those of IDNet.

kinmel

Quote from: Lance on Dec 15, 2008, 23:13:18
I think we need to get brian signed up here!

He spends all his time in Ubuntu forums  ;D
Alan  ‹(•¿•)›

What is the date of the referendum for England to become an independent country ?

Rik

We could always give you a dedicated Linux board. ;D
Rik
--------------------

This post reflects my own views, opinions and experience, not those of IDNet.

kinmel

Quote from: Rik on Dec 16, 2008, 08:34:47
We could always give you a dedicated Linux board. ;D

Wash your mouth out !  ;D
Alan  ‹(•¿•)›

What is the date of the referendum for England to become an independent country ?

Rik

Rik
--------------------

This post reflects my own views, opinions and experience, not those of IDNet.