LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-22-2004, 04:07 AM   #1
shahzadiub
LQ Newbie
 
Registered: Apr 2004
Posts: 8

Rep: Reputation: 0
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.
 
Old 04-22-2004, 04:49 AM   #2
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Problems Mounting Windows Partitions sidharth0384 Linux - Newbie 2 04-22-2005 02:22 PM
Mounting Windows XP partitions in Debian John_Emad Linux - Software 1 12-26-2004 04:24 PM
automatic mounting of windows partitions vijeesh_ep Linux - Networking 1 07-31-2004 01:05 PM
Mounting windows partitions PhuckFonix Linux - Newbie 13 03-28-2004 11:15 AM
ELX mounting windows partitions? mato30 Linux - Distributions 0 03-05-2002 04:44 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:18 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