LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   partition (https://www.linuxquestions.org/questions/linux-newbie-8/partition-773645/)

chachi95 12-05-2009 06:40 AM

partition
 
Hi people , it's my first post !

So i have a problem with this configuration

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 480559348 1265004 455075556 1% /
tmpfs 2071596 0 2071596 0% /lib/init/rw
udev 10240 60 10180 1% /dev
tmpfs 2071596 0 2071596 0% /dev/shm


i want to create a new partition with 200 GB and mount it to /home.
and annother 100 GB to /var
and the rest to /

How to do it ?

Thanks !

EricTRA 12-05-2009 06:45 AM

Hello and Welcome to LinuxQuestions,

It looks like you put everything under / when you installed your Linux. In future posts please put the output of your commands between the 'code' tags (# in the icon bar) so that it's easier to read.

You'll have to manually set up partitioning to get to where you want. Either by reinstalling (the easiest way) or by using a Gparted LiveCD, boot from that, free up the free space you need, create the partitions, reboot into your Linux and adjust the fstab file.

Also please post at least what distro and version you are using.

Kind regards,

Eric

chachi95 12-05-2009 06:52 AM

Quote:

Originally Posted by EricTRA (Post 3780794)
Hello and Welcome to LinuxQuestions,

It looks like you put everything under / when you installed your Linux. In future posts please put the output of your commands between the 'code' tags (# in the icon bar) so that it's easier to read.

You'll have to manually set up partitioning to get to where you want. Either by reinstalling (the easiest way) or by using a Gparted LiveCD, boot from that, free up the free space you need, create the partitions, reboot into your Linux and adjust the fstab file.

Also please post at least what distro and version you are using.

Kind regards,

Eric

Hi mate thank you for the welcome.


I have debian5.0.1 and it's a web server in a hosting company.

Only what i have is a shell access ( ssh ).

Do you know a command or a software to do a partition easyly ?

EricTRA 12-05-2009 07:02 AM

As far as I know partitioning and/or repartitioning is best done in single user mode and I'm afraid that will not work well with ssh since you will loose your connection. You can look into the following commands:
Code:

cfdisk
parted
sfdisk

but I for one have never tried it when my only access is through SSH. At one point or another I think you'll be unable to complete what you want.

Is there a possibility that you can ask the hosting provider to re-install but with your partitioning schema? I imagine that they set it up for you?

Kind regards,

Eric

chachi95 12-05-2009 07:11 AM

Quote:

Originally Posted by EricTRA (Post 3780802)
As far as I know partitioning and/or repartitioning is best done in single user mode and I'm afraid that will not work well with ssh since you will loose your connection. You can look into the following commands:
Code:

cfdisk
parted
sfdisk

but I for one have never tried it when my only access is through SSH. At one point or another I think you'll be unable to complete what you want.

Is there a possibility that you can ask the hosting provider to re-install but with your partitioning schema? I imagine that they set it up for you?

Kind regards,

Eric

Yes you're true mate..

With

#cfdisk

When i try with a partition got :
This partition is already in use

So the solution is to contact my hoster.

Thanks for your help.

Regards.

EricTRA 12-05-2009 07:13 AM

I think that's about all you can do. And just tell them how you want partitioning set up. A small advice; if they reinstall accordingly to your partitioning scheme, ask them to set it up using LVM (Logical Volume Manager). That way you can always resize partitions after installation.

Kind regards,

Eric

catkin 12-05-2009 07:37 AM

Quote:

Originally Posted by EricTRA (Post 3780806)
That way you can always resize partitions after installation.

But only a few file system types (jfs, reiserfs, xfs ... any more?) allow expanding file systems while they are mounted so, if you are committed to the likes of ext3, you may want to ensure that the file systems that have to be mounted for you to ssh into the system are created plenty big enough during the re-installation.

chachi95 12-05-2009 07:56 AM

Alright , thank you guys !


All times are GMT -5. The time now is 09:35 PM.