Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-25-2003, 10:31 PM   #1
LQ Newbie
Registered: May 2003
Posts: 4

Rep: Reputation: 0
Mounting help

I just installed Mandrake 9.1 on my computer and I am a complete newbie to Linux. I have two other windows partitions, C: and D:. C: is where windows is installed and D: is for storage. Both are in NTFS. How do I view those drives through Linux? I foudn some stuff on mounting.

Mara said:
" Let's say you've got Windows (FAT32) partition - /dev/hda1. To mount it, create /mnt/windows (command: 'mkdir /mnt/windows') directory (or similar) and run
mount -t vfat /dev/hda1 /mnt/windows
Now you can access your Windows files in /mnt/windows."

I can't seem to get the first command to work in the terminal. It gives me this message when i type it in.
"mkdir: cannot create directory `/mnt/windows': Permission denied"

Last edited by Lai; 05-25-2003 at 10:38 PM.
Old 05-25-2003, 10:53 PM   #2
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Rep: Reputation: 31
if you did a default install of mandrake then it should have created the directories in the /mnt and mounted the partitions at boot time. so

just goto /mnt directory and look for the direcotries.

you were not root i guess when you tried to make the directory. /mnt is owned by root
Old 05-25-2003, 10:55 PM   #3
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
You have to be root. Try this in an x terminal first:
[phil@tinwhistle phil]$ su -
[root@tinwhistle root]#
Now you are in "god" mode and can do anything as long as enough system is left to carry out the commands.

Don't try rm -R /
Old 05-25-2003, 10:56 PM   #4
Registered: Apr 2003
Location: Ontario, Canada
Distribution: Arch Linux
Posts: 533

Rep: Reputation: 30
right, to get root in the terminal, type:

su, then enter
then your root password, then press enter

then try those steps again
Old 05-26-2003, 05:35 PM   #5
LQ Newbie
Registered: May 2003
Posts: 4

Original Poster
Rep: Reputation: 0
manthram was right, it did mount it automatically. There is a problem though. I have two partitions, C: and D:. C: has windows on it and D: has mp3s, movies and stuff. I can see the C: fine but I can't seem to see the D:.

here is what's in /mnt

win_c has my windows xp on it. win_c2 is blank. win_d is blank. One of those folders I should see all my mp3s and movies and stuff. Is there a way to unmount the win_c2 and win_d and then remount it?
Old 05-26-2003, 05:48 PM   #6
Senior Member
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Use diskdrake, as root. Do as it says and backup your /etc/fstab file first.

"mount -t vfat /dev/hda1 /mnt/windows" wont work for ntfs

Linux can only read NTFS partitions at the moment, writing to them is unstable. Blame Microsoft. Use a FAT32 partition as a go-between to write to windows.
Old 05-26-2003, 09:03 PM   #7
LQ Newbie
Registered: May 2003
Location: Maysville, KY
Distribution: Redhat 5 - 8.0, Slackware 4, Mandrake 7 - 8.1
Posts: 7

Rep: Reputation: 0
I read several replies, but this works for me and also gets rid of the "must be root" to mount and read ntfs drive.

make a directory in /mnt as the mount point, I use xp on mine. Then add the next line to /etc/fstab.

/dev/hda1 /mnt/xp ntfs ro,users,umask=022 0 0

You will need to also change the /dev/hda1 to whatever your partition for ntfs is.

Hope this helps.......
Old 05-26-2003, 09:17 PM   #8
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
It may help to put a text file (while in windows) saying drive c, drive d, etc. as Windows uses some strange scheme if drives have multiple partitions on the same drive. They won't be c=/dev/hda1, d=/dev/hda2, etc. That threw me for a loop for a long time figuring that out.


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
Viewing NTFS hard drives in RH 9.0 partyk1d24 Linux - Newbie 2 09-09-2005 07:36 PM
Detecting window drives inRedHat9 satish427 Linux - Newbie 2 09-08-2004 05:13 AM
viewing partitions and drives gag Linux - Newbie 4 11-09-2003 12:59 PM
Wine and viewing hard drives Bill Hicks Linux - Newbie 1 09-30-2003 01:57 PM
linux and window on two hard drives ariana Linux - Newbie 9 02-26-2003 11:49 AM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration