Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: df -ah reading partitions wrong!

  1. #1

    df -ah reading partitions wrong!

    I type in
    `df -ah`
    and it tells me that my non-swap partition had only 2.4 GB but in reality I have 3.5 GB of space. ??? So to check if I was right, I booted the Slackware 1 cd and typed in
    `cfdisk` and it was
    Code:
    Linux ext2  3503.4MB  
    Linux Swap.    821MB
    Those were the only two partitions but the
    `df -ah`
    reads it wrong. ??? I did a full Slackware Install and it tells me I have 225MB Left while, really I have 1 Gig left. How can I fix this?

    Thanks!

  2. #2

    Re:df -ah reading partitions wrong!

    hello,
    can you please post the output of df -ah? here is what i get
    Code:
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/hde1             8.2G  3.7G  4.2G  47% /
    none                     0     0     0   -  /proc
    none                  8.2G  3.7G  4.2G  47% /sys
    usbdevfs                 0     0     0   -  /proc/bus/usb
    /dev/hde2             8.2G  3.2G  4.6G  42% /usr/local
    /dev/hde3             9.7G  5.4G  3.9G  59% /backup
    /dev/hda1              28G  9.2G   18G  35% /home
    /dev/hda2              15G  6.1G  7.5G  45% /oggs
    /dev/hda3              32G  3.5G   27G  12% /vid
    none                     0     0     0   -  /dev/pts
    none                  505M     0  505M   0% /dev/shm
    none                     0     0     0   -  /proc/bus/usb
    sparches:/tmp          20G  9.0G  9.5G  49% /net/tmp
    [pbharris@bugs ~]

  3. #3

    Re:df -ah reading partitions wrong!

    eh...here it is:

    Code:
    File System     Size      Used    Avail   Use%  Mounted on
    /dev/hda1         2.8G     2.4G    224M   92%      /
    devpts                 0           0          0           -          /dev/pts
    proc                    0            0          0           -           /proc
    usbfs                   0           0           0          -          /proc/bus/usb

  4. #4

    Re:df -ah reading partitions wrong!

    have you run fsck.ext2 on the partition? of course that would need to be done from a boot disk because fsck can not be run on mounted partitons.

  5. #5

    Re:df -ah reading partitions wrong!

    I did from the Slack CD on the first day I installed it. ???

  6. #6

    Re:df -ah reading partitions wrong!

    hello,
    from this thread i am guessing that the cylinders as seen in fdisk are not the same as those seen by the kernel - is LBA mode enabled in the BIOS?

    http://lists.debian.org/debian-user/.../msg04937.html

  7. #7

    Re:df -ah reading partitions wrong!

    What is LBA mode? Sorry, I don't know but the cylinders seem to be the same. I will take a look at it again.

  8. #8

    Re:df -ah reading partitions wrong!

    it is a setting in the BIOS, LBA = Logical Block Addressing

  9. #9

    Re:df -ah reading partitions wrong!

    [quote author=shebang link=board=1;threadid=8928;start=0#msg80585 date=1080513865]
    I did from the Slack CD on the first day I installed it. ???
    [/quote]
    You ran an fsck or a cfdisk? fsck checks your filesystem, cfdisk messes with the partition table.

  10. #10

    Re:df -ah reading partitions wrong!

    I ran a fsck /dev/hda1 on my first partition and left my swap alone.

    I use cfdisk only before installing a new distro. ;D

Similar Threads

  1. What are you reading?
    By halfpipe10 in forum General Chat
    Replies: 2
    Last Post: 02-11-2006, 03:33 AM
  2. What Book Are You Reading Right Now?
    By stryder144 in forum General Chat
    Replies: 12
    Last Post: 08-19-2005, 07:28 AM
  3. Reading variables...
    By Gary Penner in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 02-25-2005, 10:35 PM
  4. reading .html and not .php
    By pinehead in forum Linux - General Topics
    Replies: 4
    Last Post: 11-23-2002, 06:09 PM
  5. CD-ROM reading
    By dgwebstuff in forum Linux - General Topics
    Replies: 11
    Last Post: 05-24-2002, 03:10 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •