Link to home
Start Free TrialLog in
Avatar of jen_fe
jen_fe

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of bummerlord
bummerlord
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of carlstewart
carlstewart

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)



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
https://www.experts-exchange.com/questions/20440579/RedHat-7-1-and-NTFS.html
is the answer.

Good luck,
Scar
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
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.
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