<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Disk space questions in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/disk-space-questions/m-p/3084687#M6953</link>
    <description>Hi,&lt;BR /&gt;You can use fdisk command to find out this.&lt;BR /&gt;and if you are using LVM you can use vgdisplay -v command.&lt;BR /&gt;&lt;BR /&gt;Sunil</description>
    <pubDate>Fri, 03 Oct 2003 03:45:44 GMT</pubDate>
    <dc:creator>Sunil Sharma_1</dc:creator>
    <dc:date>2003-10-03T03:45:44Z</dc:date>
    <item>
      <title>Disk space questions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/disk-space-questions/m-p/3084686#M6952</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;In a linux system, how can i know the free space in a disk? (not with df, wich tells me the free space in the mounted FS). &lt;BR /&gt;I need to add some swap space but i donÂ´t know what amount of free space i have. I have RH 7.2.&lt;BR /&gt;&lt;BR /&gt;Th</description>
      <pubDate>Fri, 03 Oct 2003 03:32:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/disk-space-questions/m-p/3084686#M6952</guid>
      <dc:creator>R.O.</dc:creator>
      <dc:date>2003-10-03T03:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Disk space questions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/disk-space-questions/m-p/3084687#M6953</link>
      <description>Hi,&lt;BR /&gt;You can use fdisk command to find out this.&lt;BR /&gt;and if you are using LVM you can use vgdisplay -v command.&lt;BR /&gt;&lt;BR /&gt;Sunil</description>
      <pubDate>Fri, 03 Oct 2003 03:45:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/disk-space-questions/m-p/3084687#M6953</guid>
      <dc:creator>Sunil Sharma_1</dc:creator>
      <dc:date>2003-10-03T03:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Disk space questions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/disk-space-questions/m-p/3084688#M6954</link>
      <description>As mentioned above, "fdisk" and "vgdisplay" will help you out here but if you are stuck for space you could consider using file based swap, check out the "mkswap" command.</description>
      <pubDate>Fri, 03 Oct 2003 04:00:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/disk-space-questions/m-p/3084688#M6954</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-10-03T04:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Disk space questions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/disk-space-questions/m-p/3084689#M6955</link>
      <description>there's also utility called hdparm&lt;BR /&gt;issue:&lt;BR /&gt;hdparm -g /dev/hda&lt;BR /&gt;to see the geometry of your IDE primary master hard drive.&lt;BR /&gt;each sector is 512 bytes&lt;BR /&gt;so so multiply the amount of sectors with 512, ans then divide it by 1000000 to see the approximate amount of MB.&lt;BR /&gt;regards</description>
      <pubDate>Fri, 03 Oct 2003 06:02:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/disk-space-questions/m-p/3084689#M6955</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2003-10-03T06:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Disk space questions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/disk-space-questions/m-p/3084690#M6956</link>
      <description>Good question that got me going !&lt;BR /&gt;so I checked on my laptop&lt;BR /&gt;# fdisk -s /dev/hda&lt;BR /&gt;17716608&lt;BR /&gt;#fdisk -lu /dev/hda&lt;BR /&gt;Disk /dev/hda: 18.1 GB, 18141806592 bytes&lt;BR /&gt;255 heads, 63 sectors/track, 2205 cylinders, total 35433216 sectors&lt;BR /&gt;Units = sectors of 1 * 512 = 512 bytes&lt;BR /&gt;Device Boot    Start       End    Blocks   Id  System&lt;BR /&gt;/dev/hda1   *        63    208844    104391   83  Linux&lt;BR /&gt;/dev/hda2        208845  34507619  17149387+  83  Linux&lt;BR /&gt;/dev/hda3      34507620  35423324    457852+  82  Linux swap&lt;BR /&gt;# let a=17716608&lt;BR /&gt;# let b=104391+17149387+457852&lt;BR /&gt;# let c=$a-$b&lt;BR /&gt;# echo $c&lt;BR /&gt;4978&lt;BR /&gt;Problem is 4978 blocks of 512 bytes is 2489 Kbytes &lt;BR /&gt;There are 62 unallocated sectors as /dev/hda1 start at 63&lt;BR /&gt;what are those 62 sectors ? ... to mark physical errors on disk ?&lt;BR /&gt;2489 Kbytes is not much so nothing to worry about and "all" my laptop is used.&lt;BR /&gt;I am missing something ?&lt;BR /&gt;J-P&lt;BR /&gt;  &lt;BR /&gt;</description>
      <pubDate>Fri, 03 Oct 2003 07:31:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/disk-space-questions/m-p/3084690#M6956</guid>
      <dc:creator>Huc_1</dc:creator>
      <dc:date>2003-10-03T07:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Disk space questions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/disk-space-questions/m-p/3084691#M6957</link>
      <description>JP,&lt;BR /&gt;I have noticed the same thing but you didn't have to go through all that work to find it, you could have run fdisk on your disk and once inside verify the partition table with 'v' and it will tell you the unallocated sectors.  Everytime I have done this on a machine with a fully partitioned disk I end up with the same thing 62 extra sectors left over.  So I googled around, and came up with this pdf:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.terabyteunlimited.com/specs/embr2.pdf" target="_blank"&gt;http://www.terabyteunlimited.com/specs/embr2.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I think maybe the left overs are sectors the bios allocated to the MBR on the disk.  The pdf says the minimum that the MBR can have is from sector 3-17, so I am thinking that the bios would give up more than that.  I am just guessing though, and I am curious to find out the real reason for the left over sectors.&lt;BR /&gt;&lt;BR /&gt;Dave</description>
      <pubDate>Fri, 03 Oct 2003 10:01:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/disk-space-questions/m-p/3084691#M6957</guid>
      <dc:creator>Dave Falloon</dc:creator>
      <dc:date>2003-10-03T10:01:04Z</dc:date>
    </item>
  </channel>
</rss>

