how to know the file system type [programming]

2005-08-17 Thread Jorge Mario G. Mazo
hi there I've been looking for a way to check the fs type I need to do something like this if NTFS do this if msdis do that if ufs2 do that if ext2 do this other stuff thanks in advance = Either write things worth reading, Or do

Re: how to know the file system type [programming]

2005-08-17 Thread Philip Hallstrom
hi there I've been looking for a way to check the fs type I need to do something like this if NTFS do this if msdis do that if ufs2 do that if ext2 do this other stuff Parse /etc/fstab? I'm sure there are lots of other ways too... ___

Re: how to know the file system type [programming]

2005-08-17 Thread jdyke
Jorge Mario G. Mazo wrote: hi there I've been looking for a way to check the fs type I need to do something like this if NTFS do this if msdis do that if ufs2 do that if ext2 do this other stuff not sure if this is what your looking for, but there are likely a million ways, one being in

Re: how to know the file system type [programming]

2005-08-17 Thread Jorge Mario G. Mazo
--- jdyke [EMAIL PROTECTED] escribió: Jorge Mario G. Mazo wrote: hi there I've been looking for a way to check the fs type I need to do something like this if NTFS do this if msdis do that if ufs2 do that if ext2 do this other stuff not sure if this is what your looking

Re: how to know the file system type [programming]

2005-08-17 Thread Dan Nelson
In the last episode (Aug 17), jdyke said: Jorge Mario G. Mazo wrote: hi there I've been looking for a way to check the fs type I need to do something like this if NTFS do this if msdis do that if ufs2 do that if ext2 do this other stuff not sure if this is what your looking for, but

Re: how to know the file system type [programming]

2005-08-17 Thread Dan Nelson
In the last episode (Aug 17), Jorge Mario G. Mazo said: --- jdyke [EMAIL PROTECTED] escribió: Jorge Mario G. Mazo wrote: hi there I've been looking for a way to check the fs type I need to do something like this if NTFS do this if msdis do that if ufs2 do that if ext2

Re: how to know the file system type [programming]

2005-08-17 Thread dpk
On Wed, 17 Aug 2005, Jorge Mario G. Mazo wrote: hi there I've been looking for a way to check the fs type I need to do something like this if NTFS do this if msdis do that if ufs2 do that if ext2 do this other stuff thanks in advance I'd check out the fdisk code. For example: $ fdisk