LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-05-2009, 07:40 AM   #1
chachi95
LQ Newbie
 
Registered: Dec 2009
Posts: 15

Rep: Reputation: 0
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 !
 
Old 12-05-2009, 07:45 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
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
 
Old 12-05-2009, 07:52 AM   #3
chachi95
LQ Newbie
 
Registered: Dec 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by EricTRA View Post
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 ?
 
Old 12-05-2009, 08:02 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
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
 
Old 12-05-2009, 08:11 AM   #5
chachi95
LQ Newbie
 
Registered: Dec 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by EricTRA View Post
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.
 
Old 12-05-2009, 08:13 AM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
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
 
Old 12-05-2009, 08:37 AM   #7
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by EricTRA View Post
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.
 
Old 12-05-2009, 08:56 AM   #8
chachi95
LQ Newbie
 
Registered: Dec 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Alright , thank you guys !
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 11: Cannot mount partition on Seagate FreeAgent Drive's secondary partition Erik Anderson Linux - Newbie 5 06-25-2009 02:10 AM
tricky backup of Linux system to NTFS partition to increase partition size Pandarsson Linux - General 5 07-09-2008 03:35 PM
Hard Drive Partition Management - Mandriva Double Partition with Swap File partition moshebagelfresser Linux - Hardware 2 05-23-2008 11:46 AM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 01:55 PM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 09:45 AM


All times are GMT -5. The time now is 05:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration