LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   mounting windows partitions (https://www.linuxquestions.org/questions/programming-9/mounting-windows-partitions-173222/)

shahzadiub 04-22-2004 04:07 AM

mounting windows partitions
 
i'm trying to write a programe that automatically mounts all available windows partitions.

please tell me how can get information about windows partitons.Is there
any file in linux which has information about windows partions.

Is there any function available in c for mounting devices or i have to use the bash script for this purpose.


the command for this purpose is


mount -t vfat /dev/hda1 /mnt/c


But the problem is that how can i know that c drive on windows is hda1 on linux and what are the names of other drives.

itsme86 04-22-2004 04:49 AM

If you run fdisk you can list the partitions on your harddrive. It should show the type as VFAT or FAT32 or NTFS or something. Then you'll know the partition name :)


All times are GMT -5. The time now is 05:50 PM.