how to mount windows partions?

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.
jen_feAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

bummerlordCommented:
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.

/b

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
carlstewartCommented:
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.


tspelmanCommented:
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)



5 Ways Acronis Skyrockets Your Data Protection

Risks to data security are risks to business continuity. Businesses need to know what these risks look like – and where they can turn for help.
Check our newest E-Book and learn how you can differentiate your data protection business with advanced cloud solutions Acronis delivers

mrmessihaCommented:
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
scaryskullzCommented:
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
http://www.experts-exchange.com/Operating_Systems/Linux/Q_20440579.html
is the answer.

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

then you have text based console then you type the commans as
 
su
 
{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
CleanupPingCommented:
jen_fe:
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 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
paullamhkgCommented:
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.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Paul
EE Cleanup Volunteer
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.