LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How can to see the windows driver from linux in a the same pc? (https://www.linuxquestions.org/questions/linux-newbie-8/how-can-to-see-the-windows-driver-from-linux-in-a-the-same-pc-545648/)

choconlongxu 04-13-2007 01:51 AM

How can to see the windows driver from linux in a the same pc?
 
Hi all,
I have just learned Linux.
I installed centos (linux)in a same the pc which i installed windows that partition is ntfs and other partition is fat32. How can to see 2 drives of windows from linux. can i mount command? How to mount it?
Pls, help me.
p.s :My engish is too bad, try to read, pls
Thanks
------------------------
cho con long xu

rocket357 04-13-2007 02:13 AM

From the mount man page (open a terminal/konsole and run "man mount"...press up and down arrows to read more, and hit q to return to the terminal/konsole):

Code:

The standard form of the mount command is:
mount -t type device directory

If your Windows directories are at /dev/hda2 and /dev/hda5 (examples only...you'll have to figure out which ones they actually are...more on that in a second), then you'd make two directories:

mkdir /mnt/Windows

mkdir /mnt/WindowsShared

Then run (assuming ntfs is your Windows base partition and the fat32 one is a Share partition):

mount -t ntfs /dev/hda2 /mnt/Windows # this might require a kernel module...

mount -t vfat /dev/hda5 /mnt/WindowsShare

Once you do that, you can do "cd /mnt/Windows" and browse through your Windows partition, or "cd /mnt/WindowsShare" and browse through the Windows fat32 partition. I generally prefer to NOT set up user access to my Windows partitions (I routinely work on my computer late at night when I've not had enough sleep, and I've been known to do silly stuff that I really wish I hadn't done), but if you want to access those drives as a user, then check the permissions on those two folders in /mnt. You can also add lines to /etc/fstab to have this done automatically at boot up...check man /etc/fstab for directions.

As for figuring out which partition is which, a bit of naming is in order...Linux refers to IDE drives (the ones with flat ribbon cables, typically) as /dev/hd*#, where * is usually a letter between 'a' and 'd', and # is the partition number on the drive. Since CD/DVD drives use the same bus, you'll have to be careful to select the right one...Your IDE primary master is going to be /dev/hda, Primary Slave /dev/hdb, Secondary Master /dev/hdc, and Secondary Slave /dev/hdd. (Typically...I haven't run into a situation where this didn't hold true, but I could be mistaken). SATA drives use /dev/sd*#, (and so do usb keys). Windows has a "habit" of installing on /dev/hda2 and creating everything else (if you partition your Windows drives) as extended partitions, starting with /dev/hda5.

That should get you started...if you still need help, please follow up and ask again.

jeremy 04-13-2007 10:09 AM

Moved: This thread is more suitable in Linux - Newbie and has been moved accordingly to help your thread/question get the exposure it deserves.

--jeremy


All times are GMT -5. The time now is 07:17 PM.