how to mount windows partions?

jen_fe used Ask the Experts™
i try to learn Linux red hat 7.3
i want to see the windows partions from linux (mounting)
i know the command (which read from linux book )
$ cd /
$ mkdir c
$ mount -tvfat
 /dev/hda1 /c

but i don't know where it should be (in command window, where it should be in linux)

please help me for mounting the windows parting because i am totaly new user to Linux.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Since I don't know what window manager, or if at all you are using X Windows
Try this;

- Press ctrl-alt-F1
- You should now have a text based console on your screen.
The text on the screen will probably ask you to login.
- Login as user "root" (you should now the password)
Now you probably see the shell prompt
(Looking something like this: [root@yourmachine] # )
- Now type the commands you lernt (skip the '$' first on each command. In your book that is just there so you should understand it is a command to type in a shell prompt)

To list the files on your windows partition try;

$ ls -la /c

then exit from the shell by typing "logout"
(you again see the login text)
Now press Ctrl-Alt-F7 (or F8) to get back to your X session (if ever you had one)

If you have a NTFS partition you may need to load a kernel module to get it to work.
That's another story though.

yepp, do as bummerlord described, and if your commands dosent work, ie the mountsource doesent exists check how your harddrive is 'tabled', so you know where your C: is.
as root $ cfdisk /dev/hda
or /dev/hdb or /dev/hdc or /dev/hdd
usual you wont need the -t option. mount will find out the  filesystem all by itself.
also "$ mount /dev/hda2 /c" will work.

if you are running samba, you can type this too..

mount -t smbfs -o username:yourwindowsusername //server/share/ /home/sharefolder/

(all of that one one line)

it should ask for a password and you're set
make sure that the folder you are pointing it to "sharefolder" exists already (mkdir sharefolder)

Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

in kde it's as follows:
        mount -t vfat /dev/hda1 /mnt/your-new-directory
given that vfat is the fat or fat 32 file system on your windowes machine and that u could know using Accessories and then Computer Management and Storage from the Start Menu. Also, the /dev/hda1 hda:hard disk 'a' and 1 is the parition order number. /mnt/new is the new directory u should create in the /mnt area. this should work

Good Luck
There is not much difficulty in doing this.

just do the following

login as root

open any console of ur choice to type in commands.

at root prompt
# fdisk -l

Disk /dev/hda: 255 heads, 63 sectors, 4865 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1       255   2048256    6  FAT16
/dev/hda2           256      4864  37021792+   f  Win95 Ext'd (LBA)
/dev/hda5           256      3442  25599546    7  HPFS/NTFS
/dev/hda6          3443      3448     48163+  83  Linux
/dev/hda7          3449      4734  10329763+  83  Linux
/dev/hda8          4735      4864   1044193+  82  Linux swap

this is the output of the command so look for the filesystem there
you will have FAT16 or FAT32 or what ever.

then go to /mnt directory
#cd /mnt
#mkdir winpartition
create a directory with the name of ur choice i use winpartition
#mount /dev/hda1 /mnt/winpartition
/dev/hda1 ( i got it from fdisk result)
you select what partition you want to set.
by default it will check for the filesystem on your partition.
to specify it your self use vfat for all fat
#mount -t vfat /dev/hda1 /mnt/winpartition

see help for man by
# man mount
It should give you some idea.
Still any problems let me know.

If your filesystem is NTFS
is the answer.

Good luck,
1 st of all
Press ctrl-alt-F1

then you have text based console then you type the commans as
{it will ask the password, that you have to know}

before mounting creat thr dir..,

and give the command as

mount -t vfat /dev/hda1 /c

replace vfat if you using ntfs
and check the hda1, hda2 etc
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is to:

Accept bummerlord's Comments as answer

Please leave any comments here within the next seven days.


EE Cleanup Volunteer

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial