LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-11-2008, 04:40 AM   #1
linuxsikandar
LQ Newbie
 
Registered: Nov 2007
Posts: 19

Rep: Reputation: 0
Smile how can i extent the root partition ?


Hi All,

I am newbie to the linux. I am stuck up with one problem regarding resizing the root partition..


i want to extend the partition from 15 gb to 40 gb
I am using 80 GB harddisk.
The output of command df -h

[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 15G 11G 3.4G 76% /
/dev/sda1 99M 10M 84M 11% /boot
tmpfs 474M 0 474M 0% /dev/shm
/dev/sda2 15G 6.4G 7.2G 48% /home


[root@localhost ~]# df /
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 14877092 10593888 3515300 76% /
[root@localhost ~]#


Can I resize the partition please advice.

Reagrds

Linuxsikandar
 
Old 02-11-2008, 04:44 AM   #2
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 60
You can try booting from a gparted liveCD and resizing your / partition. What do you use the machine for? 15 gigs for / is usually enough space...
 
Old 02-11-2008, 04:59 AM   #3
linuxsikandar
LQ Newbie
 
Registered: Nov 2007
Posts: 19

Original Poster
Rep: Reputation: 0
Smile

Quote:
Originally Posted by Uncle_Theodore View Post
You can try booting from a gparted liveCD and resizing your / partition. What do you use the machine for? 15 gigs for / is usually enough space...
Hi !

As per documentation given to me i need to install all software in /opt and it requires aroung 25 Gb space. As of now i am having only 15 GB i need to extend the partition.

Thanks for the help.. i am downloading parted-livecd-0.3.4-11.iso.

Can u suggest me any other way out such as fdisk ?

Reagards

LinuxSikandar
 
Old 02-11-2008, 05:20 AM   #4
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 60
It might be a better idea to make /opt a separate partition then.
 
Old 02-11-2008, 12:59 PM   #5
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 3,900

Rep: Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774Reputation: 774
I want to agree with the previous post (Uncle_Theodore), but it occurs to me that you may need a bit more explanation and some more detail.

One of the big advantages of the unix-style system for naming partitions, as opposed to partition letters, is that you can 'hang' new partitions/disks almost anywhere in the tree of names.

To take a simple example, if you only had a single user workstation you might find a few gig appropriate for /home, and you might not have /home as a separate partitions. If, then, you wanted to use that box to host ~6 user accounts you might find it appropriate to have a separate partition (either from spare space on the existing disk, or from a completely separate disk) for /home. Or, probably with a larger number of accounts still, you may even want to keep some user accounts on one disk and some on another, for performance reasons. You can see how this makes expansion easier.

And its as simple as making sure that the partitions has an appropriate format and /etc/fstab is correct for the mount point (your distro may have a tool for setting up the partition and the mount point, depending on distro).

You have already used quite a bit of space for /home, so exactly that may yet happen to you, but exactly the same principle applies to /opt.

Note also that you do not need to adopt the same 'formats' (filesystem types) for the different physical partitions, and if this a seriously used box you may want to think about that: You won't get a single-valued answer to which type is best, but I tend to use ext2 for /boot and reiser for pretty much everything else, with 'atime' turned off. You will certainly hear arguments that ext3 is a better choice than reiser (and there is xfs and jfs and (somewhat experimentally) reiser4 and ext4, depending on distribution and the degree of confusion that you are prepared to contemplate), but I would advise the selection of a journalling filesystem, usually ext3 or reiser, for at least the user data (maybe others as well if you have other frequently changing data and an infrequentunreliable backup system).

I'd try to keep to two or three different filesystems, max, for the box as each filesystem brings in the requirement for a new driver.

So, for example, there may be a performance boost by turning journalling off ('nojou' on reiser) for /tmp, if that is a separate partition (but you might not like the occasional boot delay for an fsck if you use a non-journalled system). Obviously (??) if /tmp is just a part of / and not on a separate partition, you can't 'tune' these parameters for the individual partitions, because they aren't individual partitions.

In truth, the performance of the different systems probably depends as much on setup (file system tuning) and load profile as on the fundamentals of the file system itself, which is what makes '...and the best file system is...' so difficult.
 
Old 02-12-2008, 11:06 PM   #6
linuxsikandar
LQ Newbie
 
Registered: Nov 2007
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks for the detailed info.. i have added one extra hard drive and mounted it as /opt

That soloves my mp probs.

Thanks for the quick reply

Regards

LinuxSikandar
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
GRUB won't load windows partition - root (hd0,0), Filesystem type unknown partition.. cillm527 Linux - Software 4 04-27-2008 06:44 AM
what extent we can downsize a linux kernel gugan Linux - Embedded & Single-board computer 1 10-20-2007 09:46 PM
what extent we can downsize a linux kernel gugan Linux - Kernel 1 10-19-2007 02:45 PM
how to find extent of 1-dim array in fortran 90? johnpaulodonnell Programming 1 03-21-2007 11:42 AM
LVM: How to create logical (physical) volume with extent sie 32 Mb consistgd Linux - Software 4 11-14-2006 05:03 PM


All times are GMT -5. The time now is 06:35 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration