LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   file system question (http://www.linuxquestions.org/questions/linux-newbie-8/file-system-question-582190/)

mokku 09-04-2007 03:35 PM

file system question
 
Hi,

How do we check what file system is using specific directories? Here is the outout from my box.

# fdisk -l

Disk /dev/hda: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1275 10241406 83 Linux
/dev/hda2 1276 2550 10241437+ fd Linux raid autodetect
/dev/hda3 2551 3825 10241437+ 83 Linux
/dev/hda4 3826 4998 9422122+ 5 Extended
/dev/hda5 3826 4207 3068383+ 82 Linux swap


What file sytem are using hda1, hda2, hda3, hda4 and hda5?

farslayer 09-04-2007 03:41 PM

would mount be what you are looking for ?

Code:

it-etch:~# fdisk -l

Disk /dev/sda: 160.0 GB, 160000000000 bytes
255 heads, 63 sectors/track, 19452 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1        851    6835626  83  Linux
/dev/sda2            852      19452  149412532+  5  Extended
/dev/sda5            852        1181    2650693+  82  Linux swap / Solaris
/dev/sda6            1182      19452  146761776  83  Linux


username@it-etch:~$ mount
/dev/sda1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sda6 on /home type ext3 (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)

Err sorry didn't get creative on this machine at all.. not many partitions to display.

maybe this system will be a better example..

Code:

mail:~# fdisk -l

Disk /dev/cciss/c0d0: 146.7 GB, 146747220480 bytes
255 heads, 63 sectors/track, 17841 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

          Device Boot      Start        End      Blocks  Id  System
/dev/cciss/c0d0p1  *          1        365    2931831  83  Linux
/dev/cciss/c0d0p2            366        547    1461915  82  Linux swap / Solaris
/dev/cciss/c0d0p3            548      17841  138914055    5  Extended
/dev/cciss/c0d0p5            548        1155    4883728+  83  Linux
/dev/cciss/c0d0p6            1156        1520    2931831  83  Linux
/dev/cciss/c0d0p7            1521        1642      979933+  83  Linux
/dev/cciss/c0d0p8            1643      17841  130118436  83  Linux


username@mail:~$ mount
/dev/cciss/c0d0p1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/cciss/c0d0p8 on /home type ext3 (rw)
/dev/cciss/c0d0p7 on /tmp type ext3 (rw)
/dev/cciss/c0d0p5 on /usr type ext3 (rw)
/dev/cciss/c0d0p6 on /var type ext3 (rw)


mokku 09-04-2007 03:44 PM

Thank you, this is what I was looking for it. Thanks AGAIN.

syg00 09-04-2007 04:46 PM

If it's mounted try "df -T" - if not try "file -s" on the device name.

johnhamiltion 09-04-2007 11:00 PM

Quote:

Originally Posted by mokku (Post 2881199)
Hi,

How do we check what file system is using specific directories?

Use the commands blkid or mount.

If you are interested in some Filesystem Benchmarks, see:

"Some Amazing Filesystem Benchmarks. Which Filesystem is Best?" at:

http://m.domaindlx.com/LinuxHelp/res...benchmarks.htm
[mod_edit]links to site of questionable (fashistoid) content removed[/mod_edit]

johnhamiltion 09-06-2007 08:17 AM

Quote:

Originally Posted by syg00 (Post 2881276)
If it's mounted try "df -T" - if not try "file -s" on the device name.

Thanks for these,... I didn't know the "file -s" command.

ComputerGreek 09-09-2007 09:50 AM

farslayer - Thanx for the tip.

ComputerGreek 10-09-2007 06:21 AM

[mod_edit]Yep, we don't[/mod_edit]


All times are GMT -5. The time now is 07:10 PM.