LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-28-2003, 08:47 PM   #1
photowriters
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Rep: Reputation: 0
Accessing WindowsXP drives/partitions


I've got a dual boot system with Linux 9.0 and WindowsXP. I tried the stock command in the Red Hat Getting Started Guide:

mount -t vfat /dev/hda1 /dev/windows

and got this error message:

mount: wrong fs type, bad option, bad superblodk on /dev/hda1, or too many mounted file systems

Can anyone tell me waht I am doing wrong?
 
Old 12-28-2003, 09:22 PM   #2
Z@pp Shenanigan
LQ Newbie
 
Registered: Dec 2003
Location: Central Coast, NSW, Australia
Distribution: Slackware 9.1
Posts: 11

Rep: Reputation: 0
first of /dev is a device directory not a folder as such, in linux you mount filesystems into a directory.

so first off create a windows folder in the /mnt directory
mkdir /mnt/windows
if you want other users to access it use

chmod 777 /mnt/windows

this allows every user to write, read and execute from it
so you mount line should look like this:
mount -t vfat /dev/hda1 /mnt/windows

note this is if you windows partition is formated in fat32
windows xp if usually NTFS so you have to use this command
mount -t ntfs /dev/hda1 /mnt/windows

if u are running red hat 9.0 you have to download the ntfs driver here:
http://linux-ntfs.sourceforge.net/rpm/redhat9.html
you probably want the i386 2.4.20-8 rpm if you havent upgraded your kernel.
note also that you can't write to NTFS from linux, you can only read from it

any probs just ask,
if you want to know how to automount, just ask
 
Old 12-28-2003, 10:32 PM   #3
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Quote:
if you want other users to access it use

chmod 777 /mnt/windows
This will not work.
If you want all users to have read, write and execute on a non-Linux file system (in this case, FAT32 or NTFS),
you will need to use the umask (permissions), uid (owner) and gid (group) options.
For example:
Code:
mount -t vfat -o users,uid=writers,gid=users,umask=0002 /dev/hda1 /mnt/windows

Last edited by Mathieu; 12-28-2003 at 10:34 PM.
 
Old 12-29-2003, 05:58 AM   #4
Z@pp Shenanigan
LQ Newbie
 
Registered: Dec 2003
Location: Central Coast, NSW, Australia
Distribution: Slackware 9.1
Posts: 11

Rep: Reputation: 0
yes you are absolutly right, as you can see im a newbie to the forum but also a bit to linux. you learn something new everyday i suppose.

Q: when you mount the umask, uid and gid does that change the permissions of the /mnt/windows directory?
 
Old 12-29-2003, 05:10 PM   #5
photowriters
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Original Poster
Rep: Reputation: 0
success!

Finally some success. Why it would not work to begin with I do not have a clue. When I married up my RH9 kernel (20.4.20-8) with the correct driver, it worked flawlessly. Thanks for everyone who tried to help.
 
Old 12-29-2003, 05:31 PM   #6
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Quote:
Q: when you mount the umask, uid and gid does that change the permissions of the /mnt/windows directory?
Yes.
The /mnt/windows diretory, all sub-directories and files will be set with the same permissions, owner and group.
This will remain in effect until the partition is un-mounted.
 
  


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
Accessing quickbooks files on Linux from WindowsXP Fernando534 Linux - Software 5 05-10-2006 01:44 PM
View FC3 drives from WindowsXP pro Fredstar Linux - Newbie 1 06-18-2005 04:09 PM
Accessing files from WindowsXP NTFS external firewire hdd... shmegegge Linux - Newbie 19 10-05-2004 07:05 AM
Accessing CD Drives/Floppy Drives rsearing Linux - Newbie 9 08-13-2004 09:53 PM
Accessing samba server from windowsXP jayakrishnan Linux - Networking 1 02-26-2002 05:29 AM


All times are GMT -5. The time now is 06:32 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