Find the answer to your Linux question:
Results 1 to 7 of 7
Hello, When i type the df command i see that /dev/hda1 as a filesytem that is mounted at '/'(root). Is /dev/hda1 a filesystem. I thought that it is a partition ...
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Posts
    9

    Is /dev/hda a filesystem?

    Hello,
    When i type the df command i see that /dev/hda1 as a filesytem that is mounted at '/'(root). Is /dev/hda1 a filesystem. I thought that it is a partition on my hard disk that contains the root file system. Can anybody please explain this?

    Thanks,
    Bala

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,970
    Execute the command mount without arguments. It will tell you what file systems are mounted. /dev/hda1 is (on older systems) the first partition of the system drive, which may be just fine. In any case /dev/hdXN or /dev/sdXN where 'X' is the drive letter, and 'N' is the partition number, is usually the source of a file system. However, until it is mounted, it is just a partition on the drive in question.

    Anyway, what Linux distribution + version are you running?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Mar 2010
    Posts
    9
    Thank you for your answer. I am using Debian Lenny with kernel 2.6.26.

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,970
    Please post the output of the "mount" command (no arguments), as well as the contents of /etc/fstab.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  5. #5
    Just Joined!
    Join Date
    Mar 2010
    Posts
    9
    I have attached the results of mount and /etc/fstab commands
    Attached Images Attached Images

  6. #6
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    Yes, /dev/hda1 is the first partition of the harddrive /dev/hda.
    This partition is formatted as an "ext3" filesystem.
    This filesystem is "mounted" at the lowest level (the root of the tree), making it the root filesystem (beginning at /).
    Debian GNU/Linux -- You know you want it.

  7. #7
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,970
    I understand your confusion now. The df command shows the actual device the file system is mounted from and where it is mounted on. The headers df shows by default on my system are:
    Code:
    Filesystem           1K-blocks      Used Available Use% Mounted on
    If you have network file systems mounted such as NFS or CIFS/SMB, then the "Filesystem" (first) column will contain the address, such as this one from my system:
    Code:
    Filesystem           1K-blocks      Used Available Use% Mounted on
    /dev/sda3            276603584  26426984 235899236  11% /
    //192.168.1.90/Music 730300416 154632192 575668224  22% /home/mydir/mnt/ts01/Music
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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