LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-04-2007, 03:35 PM   #1
mokku
Member
 
Registered: Feb 2007
Posts: 197

Rep: Reputation: 30
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?
 
Old 09-04-2007, 03:41 PM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
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)

Last edited by farslayer; 09-04-2007 at 03:45 PM.
 
Old 09-04-2007, 03:44 PM   #3
mokku
Member
 
Registered: Feb 2007
Posts: 197

Original Poster
Rep: Reputation: 30
Thank you, this is what I was looking for it. Thanks AGAIN.
 
Old 09-04-2007, 04:46 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
If it's mounted try "df -T" - if not try "file -s" on the device name.
 
Old 09-04-2007, 11:00 PM   #5
johnhamiltion
Member
 
Registered: Aug 2007
Posts: 92

Rep: Reputation: 15
Quote:
Originally Posted by mokku View Post
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]

Last edited by Tinkster; 09-11-2007 at 05:14 AM. Reason: mod_edit
 
Old 09-06-2007, 08:17 AM   #6
johnhamiltion
Member
 
Registered: Aug 2007
Posts: 92

Rep: Reputation: 15
Quote:
Originally Posted by syg00 View Post
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.
 
Old 09-09-2007, 09:50 AM   #7
ComputerGreek
Member
 
Registered: Sep 2007
Posts: 152

Rep: Reputation: 30
farslayer - Thanx for the tip.
 
Old 10-09-2007, 06:21 AM   #8
ComputerGreek
Member
 
Registered: Sep 2007
Posts: 152

Rep: Reputation: 30
[mod_edit]Yep, we don't[/mod_edit]

Last edited by Tinkster; 10-09-2007 at 04:35 PM.
 
  


Reply

Tags
fdisk, filesystem, fstab, mount



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
File System question prital Linux - Newbie 1 08-31-2005 09:42 AM
File system/structure question ashley75 Linux - General 1 05-17-2005 09:02 PM
Java 1.5 file system question drumvudu Programming 0 03-08-2005 07:04 AM
File system question mrrrl Linux - Newbie 6 04-08-2004 02:54 PM
Question on File System and File Copying hey_joe Linux - Newbie 2 11-05-2003 10:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration