LinuxQuestions.org
Review your favorite Linux distribution.
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 03-02-2001, 12:31 AM   #1
burtongeek
LQ Newbie
 
Registered: Mar 2001
Posts: 5

Rep: Reputation: 0
Exclamation


Does anyone know how to mount a windows hard drive in Linux. I am using Red Hat 7.0 with Gnome if that helps. I would just like to be able to use my mp3z, movies, etc that are on my windows drive...

thanks
 
Old 03-02-2001, 03:40 AM   #2
CragStar
Senior Member
 
Registered: Oct 2000
Location: UK - Frome
Distribution: Ubuntu
Posts: 1,081

Rep: Reputation: 47
Where is the partition you want to mount. /dev/hda1? If so you need to edit the file /etc/fstab. This is where all the partitions are mounted when Linux boots.

The file sometimes has different entries for different systems, so you can use this command at a terminal to mount windows c:

# mount /dev/hda1 /windows -t vfat

You need to have a folder called /windows which is available and the filesystem on the c: needs to be fat32. to unmount it:

# umount /dev/hda1 /windows -t vfat

Altough you may not need to enter the whole line all the time:

# umount /dev/hda1

will do.
 
Old 03-12-2001, 06:00 PM   #3
jadeski
LQ Newbie
 
Registered: Mar 2001
Location: Philippines
Posts: 2

Rep: Reputation: 0
Mount Shared Windows Dir on Different Machine

If your windows is on another machine and is connected into your LAN (where your linux box is also connected), you can use the smb command:

#smbmount //win-machine-name/shared-dir-name /mount-point

If shared-dir-name is password protected, then you would need to type-in the password.
 
Old 01-06-2002, 05:20 PM   #4
tdnik
LQ Newbie
 
Registered: Dec 2001
Location: omaha
Distribution: redhat7.2
Posts: 21

Rep: Reputation: 15
I'm having troubles mounting my windows drives and haven't seen a scenario like mine posted:

I have three drives. 1 ide for linux only. 2ide in RAID0 for windows only....when i boot, linux boots, if I press esc at the right time during bios, i get boot menu and can select the proper device to boot windows.

windows and linux are not on the same drive.....can i mount my windows drive from linux? I would like to to transfer files between OS's with out using a second computer to temporarliy store files while I reboot my other box.


Thanks,
CK
 
Old 01-07-2002, 05:39 PM   #5
[BHBS]=TK
Member
 
Registered: Aug 2001
Location: Salt Lake City, UT
Distribution: REDHAT 7.1
Posts: 32

Rep: Reputation: 15
usually hard drives nad cd-roms go like this

hda1-hda4 #the numbers being partitions
hdb
hdc
hdd
hde
hdf
hdg
etc

trial and error

mkdir /mnt/windows #if it doesn't exist

mount -t vfat /dev/hda1 /mnt/windows
 
Old 01-07-2002, 06:49 PM   #6
tdnik
LQ Newbie
 
Registered: Dec 2001
Location: omaha
Distribution: redhat7.2
Posts: 21

Rep: Reputation: 15
ok, thanks... i'm making progress, but I've hit another obstacle.

this is what seems to work, almost.:

# mount -t vfat /dev/hdc1 /win

but i get this error --

mount: block device /dev/hdc1 is write-protected, mounting read-only

mount: cannot mount block device /dev/hdc1 read-only


what can i try next? must I configure something differently in windows?

any other device type gives me an error of "wrong fs type, bad option, bad superblock, blablabla....

thanks,
CK
 
Old 01-07-2002, 07:14 PM   #7
theFuzzyOne
Member
 
Registered: Dec 2001
Distribution: redhat
Posts: 154

Rep: Reputation: 30
IDE RAID

some reference material to search:
http://www.research.att.com/~gjm/linux/ide-raid.html
 
Old 01-08-2002, 01:09 AM   #8
proopnarine
LQ Newbie
 
Registered: Jan 2002
Location: Berkeley, California
Distribution: Ubuntu, Fedora, Suse
Posts: 10

Rep: Reputation: 0
progress

It's not necessarily a good idea to try to write to your Windows drive; some systems seem to encounter severe difficulties with this. So perhaps that why read-only is automatically on. However, are you trying to write as a user, or as root? If as a user, you can add yourself to the disks group.

Roop
 
Old 01-08-2002, 11:50 AM   #9
tdnik
LQ Newbie
 
Registered: Dec 2001
Location: omaha
Distribution: redhat7.2
Posts: 21

Rep: Reputation: 15
Re: progress

Quote:
Originally posted by proopnarine
It's not necessarily a good idea to try to write to your Windows drive; some systems seem to encounter severe difficulties with this. So perhaps that why read-only is automatically on. However, are you trying to write as a user, or as root? If as a user, you can add yourself to the disks group.

Roop

I'm only trying to access windows files from linux, i don't intend to write to windows.
I've been trying in root user, but finally figured out my problem.
I need to use /dev/hdg1............my windows drives are on the 3rd adn 4th ide port as a raid0 config. I found the device name by looking in partitioning information in WEBMIN.


thanks for the input!
CK
 
Old 01-15-2003, 07:31 PM   #10
mikkh
LQ Newbie
 
Registered: Jan 2003
Posts: 3

Rep: Reputation: 0
Having the same problem on Red Hat 8

I want to see my windows D partition (hda5) to play mp3's etc as well
but I want it auto mounted at startup

Tried amending mtab and fstab files, but obviously haven't got the syntax correct, because it just comes up with errors
 
Old 05-28-2004, 02:08 AM   #11
sibu_rajappan
LQ Newbie
 
Registered: May 2004
Location: india
Posts: 23

Rep: Reputation: 15
Lightbulb auto mounting ur hard drive

any probs in auto mounting .................
then check the dev name is correct or not i correct then edit the fstab as this

/dev/hda<whatever name it is> /mnt/<create a dir urself> auto defaults 0 0

this gives u all the permissions to access the files this is what i felt wen mountn this causes no probs........

try it if any suggestions pls do telll
 
Old 06-21-2004, 03:13 AM   #12
DaFrawg
LQ Newbie
 
Registered: Jun 2004
Location: The Netherlands
Distribution: Slackware 10.1, Debian Sarge
Posts: 28

Rep: Reputation: 15
Okay, I have a problem mounting an NTFS-partition. If I say

# mount -t ntfs /dev/hda1/ /mnt/hda1/

the kernel says that ntfs is not supported, but the help files of Red Hat 9 say that it IS supported.
 
Old 06-27-2004, 11:27 PM   #13
dingo_aus
LQ Newbie
 
Registered: May 2004
Distribution: Mandriva 2005 LE
Posts: 16

Rep: Reputation: 0
The fstab line that worked for me was:

/dev/hdb5 /disks/g_drive auto user 0 0


BTW I also tried to (as root) chmod 777 /dev/hdb5

This allows me to read and write to a FAT32 volume
 
Old 07-02-2004, 11:09 PM   #14
ujjwals
LQ Newbie
 
Registered: Jun 2004
Location: INDIA
Posts: 8

Rep: Reputation: 0
Can we Mount NTFS partation !!!

Guys :

I have a dual boot system with hda1 and hda5 as my windows drives C: and D:

but these are NTFS partations NOT FAT32

can i mount these NTFS partations to my LINUX part .
 
Old 07-11-2004, 10:28 PM   #15
ujjwals
LQ Newbie
 
Registered: Jun 2004
Location: INDIA
Posts: 8

Rep: Reputation: 0
mounting an NTFS-partition.

I tried mounting an NTFS-partition.

like this only ...
# mount -t ntfs /dev/hda1/ /home

the kernel says that ntfs is not supported,
but the help files of Red Hat 9 say that it IS supported.

Plz help..
 
  


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
Why can't I mount my Windows hard drive from Linux? axess_denied Linux - Hardware 23 10-23-2006 11:53 PM
how to mount aonther linux hard drive ciberrust Linux - Hardware 12 04-11-2005 01:10 PM
mount windows hard drive without partitioning ultrashawn Linux - Hardware 1 04-09-2005 07:19 AM
Running Windows Games In Linux From Windows Hard Drive Darkstar274 Linux - Games 2 12-25-2003 11:19 PM
how do i mount my windows partitions and secondary hard drive in RH9 kasperl Linux - Newbie 5 10-22-2003 05:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:38 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
Open Source Consulting | Domain Registration