Author Topic: How to find partition size(s) when the install was automatic  (Read 1250 times)

Offline Jim Dandy

  • Full Member
  • ***
  • Posts: 185
How to find partition size(s) when the install was automatic
« on: November 20, 2012, 08:34:43 AM »
This is something that is probably very simple to almost anyone on here but I have not figured it out yet. What I want to find out is how to find the size of my partitions. When I installed pclos it did everything and I skipped the custom partitions so it just did everything automatically. I don't know what size my root partition or swap partition is. I know the size of my drive, it is a 1 TB. Thanks for any help.

One more question while I am thinking of it. If I find out that the root partition is too small, how do I make it bigger. As I understand it root is where all your programs are located so I would like to have about 40 or 50 GB for it (unless that would be excessive).

Offline agmg

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2065
  • Certified Windows Hater
Re: How to find partition size(s) when the install was automatic
« Reply #1 on: November 20, 2012, 08:43:09 AM »
Open up your terminal emulator (if you are using KDE its name is Konsole) and type: df
You should get something similar to this:

Code: [Select]
[agmg@localhost ~]$ df
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              13G  2.8G  9.3G  24% /
/dev/sda6              16G  562M   15G   4% /home

I think 50 or 60GB are just too many for / partition.
But if you find out that you need to resize your partitions, you can do it using a LiveCD (because these partitions have to be unmounted to be able to resize them) with diskdrake (More Applications -> Configuration -> Configure your computer -> Local Disks -> Manage disk partitions).
You can also use GParted or KDE Partition Manager. You can find many threads about partitioning inside the forum.
For the whole world, you are someone.
For someone, you are the whole world.

Offline tschommer

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1904
  • MLU and BLU (Bacon lovin' user)
Re: How to find partition size(s) when the install was automatic
« Reply #2 on: November 20, 2012, 08:43:21 AM »
Just open a terminal (e.g. Konsole) and type "df".

Example:

Code: [Select]
[torsten@schommer ~]$ df
File system           Size  Used Avail Use% Mounted on
/dev/sda5              20G  6,4G   12G  35% /
/dev/sda8             577G  188G  361G  35% /data
/dev/sda7              20G  9,4G  9,9G  49% /home
/dev/sda9              20G  5,7G   13G  31% /mnt/OTHER
/dev/sda10             20G  7,7G   11G  42% /mnt/OTHER2
/dev/sda2             245G   47G  198G  20% /mnt/WIN7

As you can see, my root partition has 20GB, but only 6.4GB used. I have all sorts of stuff installed (LibreOffice, games, etc.), and haven't reinstalled for the last 2 years. Therefore I'm pretty sure you'd have sufficient space if you allocate 20GB for root.

EDIT: agmg was even quicker  :D
What country can preserve its liberties if its rulers are not warned from time to time that their people preserve the spirit of resistance?
Thomas Jefferson

Offline agmg

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2065
  • Certified Windows Hater
Re: How to find partition size(s) when the install was automatic
« Reply #3 on: November 20, 2012, 08:47:57 AM »
For the whole world, you are someone.
For someone, you are the whole world.

Offline Jim Dandy

  • Full Member
  • ***
  • Posts: 185
Re: How to find partition size(s) when the install was automatic
« Reply #4 on: November 20, 2012, 08:59:53 AM »
Thank you guys for telling me how to find out. Here is what it says:

[xxxxx@localhost ~]$ su

Password:

[root@localhost xxxxx]# df

Filesystem            Size  Used Avail Use% Mounted on

/dev/sda1              12G  5.4G  6.1G  47% /

/dev/sda6             915G   16G  900G   2% /home

[root@localhost xxxxx]#


No swap partition? How could that be?

















Offline TerryN

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 740
Re: How to find partition size(s) when the install was automatic
« Reply #5 on: November 20, 2012, 09:22:48 AM »
No swap partition? How could that be?

Swap partition is not listed by the df command (because it is not a mounted File System in that sense).  You can get the size of the swap space with the "free" command:

Quote
[terry@dell lst]$ free
             total       used       free     shared    buffers     cached
Mem:       4145472    3456688     688784          0     179268    1284056
-/+ buffers/cache:    1993364    2152108
Swap:      1044188          0    1044188

(size is in KBytes)
Or you can use fdisk -l against the disk device to list ALL partitions but you have to be root in order to have the required permission:

Quote
[terry@dell lst]$ su
Password:
[root@dell lst]# fdisk -l /dev/sda
<snip>
   Device Boot      Start         End      Blocks   Id  System
<snip>
dev/sda5       359631153   380595914    10482381   83  Linux
/dev/sda6       380595978   382684364     1044193+  82  Linux swap / Solaris
/dev/sda7       382684428   407761829    12538701   83  Linux
/dev/sda8       407761893   432453734    12345921   83  Linux

Terry.
« Last Edit: November 20, 2012, 09:29:14 AM by TerryN »
Dell E521 - AMD 64 X2 5000+, 4GB RAM, ATI X1300 graphics
PCLinuxOS 2013 (KDE)
|Twitter|

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6475
  • I'm going South
Re: How to find partition size(s) when the install was automatic
« Reply #6 on: November 20, 2012, 09:54:50 AM »
No swap partition? How could that be?

"df" doesn't show swap partitions. Nor does it show unmounted partitions.
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline Jim Dandy

  • Full Member
  • ***
  • Posts: 185
Re: How to find partition size(s) when the install was automatic
« Reply #7 on: November 20, 2012, 10:16:05 AM »
Using the free command I got this:

Swap:      4088504     329676    3758828

Offline TerryN

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 740
Re: How to find partition size(s) when the install was automatic
« Reply #8 on: November 20, 2012, 10:17:55 AM »
Using the free command I got this:

Swap:      4088504     329676    3758828

Which means your swap partition is 4GB.

Terry.
Dell E521 - AMD 64 X2 5000+, 4GB RAM, ATI X1300 graphics
PCLinuxOS 2013 (KDE)
|Twitter|

Offline Jim Dandy

  • Full Member
  • ***
  • Posts: 185
Re: How to find partition size(s) when the install was automatic
« Reply #9 on: November 20, 2012, 10:30:13 AM »
Please excuse this if it is a dumb question but is that good or bad? I had always heard that your swap partition should be about double your memory--is that right? My memory, assuming I am remembering it correctly, is 4GB.   ???

Offline pags

  • Hero Member
  • *****
  • Posts: 2606
  • Keep it clean.
Re: How to find partition size(s) when the install was automatic
« Reply #10 on: November 20, 2012, 10:50:40 AM »
Please excuse this if it is a dumb question but is that good or bad? I had always heard that your swap partition should be about double your memory--is that right? My memory, assuming I am remembering it correctly, is 4GB.   ???

If everything was automatic, and you are using a "current" release (i.e., not a test 64-bit, etc.), then the installed kernel will only see about 3.5 Gb RAM (include the full output of "free", if you want that confirmed).  In such a case, it would look like the install choose a size of swap that could be used to hibernate your PC...

Offline Jim Dandy

  • Full Member
  • ***
  • Posts: 185
Re: How to find partition size(s) when the install was automatic
« Reply #11 on: November 20, 2012, 11:07:43 AM »
Yes, the hibernation and sleep modes both work fine, or seem to anyway (I have used both).

Offline T6

  • Super Villain
  • ******
  • Posts: 19051
  • xmas is comming!
Re: How to find partition size(s) when the install was automatic
« Reply #12 on: November 20, 2012, 11:19:29 AM »
i just found this old article

http://www.cyberciti.biz/tips/linux-swap-space.html

"Here is my rule for normal server (Web / Mail etc):
Swap space == Equal RAM size (if RAM < 2GB)
Swap space == 2GB size (if RAM > 2GB)"

"My friend who is a true Oracle GURU recommends something as follows for heavy duty Oracle server with fast storage such as RAID 10:
Swap space == Equal RAM size (if RAM < 8GB)
Swap space == 0.50 times the size of RAM (if RAM > 8GB)"

the comments are interesting, if you can read them, they are informative too

i personally have 1 gb of ram but i only have seen maybe 300mbs of the swap used from 3 gbs available(i created it that big) so it was a waste of hard disk space

it also mentions that you should have double of ram in laptops for hibernate, something i have heard in the past but never used so can't confirm

i remember that someone on this forum said that you can have a system without a swap partition but never tried to do it, with 1 gb of ram you always feel that you are going to need swap  :D
« Last Edit: November 20, 2012, 11:21:28 AM by T6 »
"If you wish to make an apple pie from scratch, you must first invent the universe."

Carl Sagan

Offline Jim Dandy

  • Full Member
  • ***
  • Posts: 185
Re: How to find partition size(s) when the install was automatic
« Reply #13 on: November 20, 2012, 11:20:17 AM »
I just opened Gparted (after I downloaded it from the repository) and got this:




If someone could tell me, or point me to a thread, about how to resize both my root and swap partitions I would be grateful. Root is much too small and my swap partition is about half the size it should be according to what I have always been told anyway. Thank you all again.

Offline Jim Dandy

  • Full Member
  • ***
  • Posts: 185
Re: How to find partition size(s) when the install was automatic
« Reply #14 on: November 20, 2012, 11:23:20 AM »
T6, according to your post my swap partition appears to be adequate. I guess I just need to resize the root partition since it is only slightly larger than 12 GB. I think I might like to have about 25 GB to insure adequate space for any programs I might want to install.