Need a feature: all drives/mount points 
Author Message
 Need a feature: all drives/mount points

Hi!

A feature, which I miss (from Dir?) is to list the available drivers
under dos/windows and the mount points under linux.

How can I do it?

Gergo



|  URL:   turul.eet.bme.hu/~kgergely    Mobile: (+36 20) 356 9656     |
+-------"Olyan langesz vagyok, hogy poroltoval kellene jarnom!"-------+
.
Magyar php mirror es magyar php dokumentacio: http://www.*-*-*.com/



Sat, 25 Dec 2004 22:28:51 GMT  
 Need a feature: all drives/mount points

Quote:
> A feature, which I miss (from Dir?) is to list the available
> drivers under dos/windows

What do you mean by "available drivers"?

If you mean "available drives" you can call the API functions
GetLogicalDrives() or GetLogicalDriveStrings() in Windows. Also
GetDriveType().

Quote:
> and the mount points under linux.

$ mount
/dev/hda7 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/hda2 on /boot type ext2 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw)
$ cat /etc/fstab
/dev/hda7               /               ext3    defaults        1 1
/dev/hda2               /boot           ext2    defaults        1 2
none                    /dev/pts        devpts  gid=5,mode=620  0 0
none                    /proc           proc    defaults        0 0
none                    /dev/shm        tmpfs   defaults        0 0
/dev/hda6               swap            swap    defaults        0 0
/dev/cdrom              /mnt/cdrom      iso9660 noauto,ro,user,exec  0
0
/dev/cdrom1             /mnt/cdrom1     iso9660 noauto,ro,user 0 0
/dev/fd0                /mnt/floppy     auto    noauto,user     0 0
/dev/hda1               /mnt/c          vfat    noauto,user     0 0
/downloads/redhat-1.iso /mnt/rh1        iso9660 noauto,loop,ro,user    
0 0
/downloads/redhat-2.iso /mnt/rh2        iso9660 noauto,loop,ro,user    
0 0
/downloads/redhat-3.iso /mnt/rh3        iso9660 noauto,loop,ro,user    
0 0
$ cat /etc/mtab
/dev/hda7 / ext3 rw 0 0
none /proc proc rw 0 0
usbdevfs /proc/bus/usb usbdevfs rw 0 0
/dev/hda2 /boot ext2 rw 0 0
none /dev/pts devpts rw,gid=5,mode=620 0 0
none /dev/shm tmpfs rw 0 0

--
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE



Sat, 25 Dec 2004 23:05:48 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. checking if drive is mounted

2. OS/2 REXX, mounted drives, and SysFileTree

3. finding mount points

4. Funtions Points & Feature Points

5. Subclasses of the Point class and other annoying features

6. Copy file from network drive to local drive?

7. Listing Valid Drives and Drive Types

8. I look for a vi which allows to drive a stepper motor drive

9. Can I use Keithley 2182 drive instead of Keithley 181 drive with slight variations

10. Determining Fixed Drives From Floppy Drives

11. Relation logical drive - physical drive ?

12. Need to resolve "SUBST" drive

 

 
Powered by phpBB® Forum Software