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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-04-2007, 04:35 PM
|
#1
|
Member
Registered: Feb 2007
Posts: 197
Rep:
|
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?
|
|
|
09-04-2007, 04:41 PM
|
#2
|
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Rep: 
|
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 04:45 PM.
|
|
|
09-04-2007, 04:44 PM
|
#3
|
Member
Registered: Feb 2007
Posts: 197
Original Poster
Rep:
|
Thank you, this is what I was looking for it. Thanks AGAIN.
|
|
|
09-04-2007, 05:46 PM
|
#4
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,340
|
If it's mounted try "df -T" - if not try "file -s" on the device name.
|
|
|
09-05-2007, 12:00 AM
|
#5
|
Member
Registered: Aug 2007
Posts: 92
Rep:
|
Quote:
Originally Posted by mokku
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 06:14 AM.
Reason: mod_edit
|
|
|
09-06-2007, 09:17 AM
|
#6
|
Member
Registered: Aug 2007
Posts: 92
Rep:
|
Quote:
Originally Posted by syg00
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.
|
|
|
09-09-2007, 10:50 AM
|
#7
|
Member
Registered: Sep 2007
Posts: 152
Rep:
|
farslayer - Thanx for the tip.
|
|
|
10-09-2007, 07:21 AM
|
#8
|
Member
Registered: Sep 2007
Posts: 152
Rep:
|
[mod_edit]Yep, we don't[/mod_edit]
Last edited by Tinkster; 10-09-2007 at 05:35 PM.
|
|
|
All times are GMT -5. The time now is 03:55 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|