LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-07-2003, 03:54 PM   #1
jianneng
LQ Newbie
 
Registered: Feb 2003
Posts: 6

Rep: Reputation: 0
Question How do I mount a Windows partition?


Hi, I am using RedHat 8.0...Is it possible for me to explore my files in my first hard disk (in which the Windows OS resides)? I think I need to "mount" the disk, but I don't know where to start. Can someone help me on this? Thanks.

Lim
 
Old 02-07-2003, 03:58 PM   #2
Wolven
Member
 
Registered: Jan 2003
Posts: 195

Rep: Reputation: 30
mount -t vfat /dev/hda /mnt/whatever


This will all depend on how your set up is.

mount is the command

-t vfat is what tells it to use a windows-based partition (presuming you aren't running NTFS)

/dev/hda is your first hard drive. hdb would be the second, hdc the third, and so on.

/mnt/whatever would be where you want the files to be "mounted" or to be accessed from.


Does that help?

Can tell you how to have it mounted automatically, if you are interested...
 
Old 02-07-2003, 04:13 PM   #3
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
Quote:
Can tell you how to have it mounted automatically, if you are interested...
add this to /etc/fstab:
/dev/hda1 /mnt/windows vfat defaults 0 0

replace /dev/hda1 and /mnt/windows with the correct values
 
Old 02-07-2003, 04:16 PM   #4
jianneng
LQ Newbie
 
Registered: Feb 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks, I got some idea now....but I think I need to ask you about the /mnt/whatever

My hda has 5 partitions (C, D, E, F, G), I want to access drive F, so I type there .../mnt/F. Well, it said there is no such mount point, so I tried .../mnt/hda5...I suppose my guessing doesn't work.

So what should I type for that /mnt? And for automatic mounting, certainly I am interested. That would save my effort. Thanks!
 
Old 02-07-2003, 04:40 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Quote:
5 partitions (C, D, E, F, G)
sorry to come down like a proverbial ton of bricks, but NO NO NO NO NO. all this drive letter crap is just a poorly thought through and worked out bit of DOS that's stuck to windows shoe like something a dog left behind... drive letters mean absolutly nothing outside of Windows. you need to mount partitions by their device block under unix, /dev/hda5 for example. the /mnt entry is simply a reference to an empty directory that already exists. nothing more than that. run "fdisk -l /dev/hda" for a list of partitions on the primary master drive.
 
Old 02-07-2003, 04:42 PM   #6
jianneng
LQ Newbie
 
Registered: Feb 2003
Posts: 6

Original Poster
Rep: Reputation: 0
Now I got it, thanks a lot!
 
Old 02-08-2003, 01:06 AM   #7
Valek
LQ Newbie
 
Registered: Dec 2002
Distribution: Red Hat 8.0
Posts: 17

Rep: Reputation: 0
I sure you know how to do it now, but at least search the forum before you ask this question. I can find that same question at least 20 times. Hopefully in the future you at least search before you ask. just remember when you're mounting you'll have to do it ever time you log into Red Hat 8.0 which I have. again here is the script mount -t vfat /dev/hda(number of your windows partition) /mnt/(folder you want to place window partition)
 
  


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
cannot mount windows partition scng Linux - Networking 6 07-09-2005 11:56 PM
How many windows partition can I mount? subaruwrx Debian 4 12-23-2004 07:29 PM
Mount Windows partition? JoseSilva Linux - General 7 01-28-2004 12:44 AM
how do i mount my windows partition ? abiagi Linux - Newbie 8 12-07-2003 07:45 PM
can't mount windows nt partition cyberswami Linux - General 3 01-26-2003 10:22 PM


All times are GMT -5. The time now is 04:56 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration