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 08-30-2003, 11:26 PM   #1
scottown
LQ Newbie
 
Registered: Aug 2003
Location: Southern California
Distribution: Red Hat 9
Posts: 11

Rep: Reputation: 0
Accessing Windows Files from RedHat 9 (KDE)


How do you acces Windows 2000 files on another partition from the KDE desktop?
 
Old 08-30-2003, 11:47 PM   #2
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
In general - to access Windows files from Linux you need to mount your Windows partition to a mount point in Linux

Open a shell and type :

su
Then type you root password – then type :

mkdir /mnt/windows2000

Then - open /etc/fstab with:

kedit /etc/fstab

If your using NTFS :

Then - put an entry at the bottom of your /etc/fstab file on a new line - (just substitute in the device name of your Partition in place of my example one)

/dev/hda1 /mnt/windows2000 ntfs auto,ro,umask=0222 0 0

save the file - and reboot

Then simply create a symlink form /mnt/windows2000 to your desktop:

as root user again from the shell:

ln -s /mnt/windows2000 /home/xxx/Desktop

(whatever the path is to your desktop)

( Red Hat currently doesn’t include a NTFS driver because of uncertainties surrounding the legal status of the driver)

So - to READ a NTFS partition from Red Hat, you can either:
  • Download and install an RPM – or
  • Compile your kernel

Your best just getting the relevant RPM - Check out this site for an RPM

http://linux-ntfs.sourceforge.net/info/redhat.html


Last edited by Skyline; 08-30-2003 at 11:52 PM.
 
Old 08-31-2003, 12:02 AM   #3
gizmogadgetus
Member
 
Registered: Aug 2003
Location: Texas
Distribution: Fedora Core 2
Posts: 71

Rep: Reputation: 15
You will have to mount the partition in your /etc/fstab file. How is your drive formatted? Redhat 9 Does not come with support for ntfs, but if the drive is formatted for fat32 it is relatively simple. Here are the steps (for fat32 formatted windows drive)

1. - Change to Root User
2. - edit the /etc/fstab file
3. - add a line to the file that tells the system where to mount the drive. Something like:
/dev/sdb2 /mnt/windows auto user 0 0

where /dev/sdb2 is the location of your windows partition. If you don't know this, you can use the redhat hardware browser located under the system tools directory in KDE/GNOME. Just select the hard drive tab and look for your windows partition. It's very intuitive. Save the file and exit.

4. - make a directory in the /mnt file system. Using the example above
mkdir /mnt/windows
5. - make the directory readable to whoever you want
chmod 766 /mnt/windows (this gives root read/write/execute, and everyone else read/write permission)
6. - remount the drive system with the following command
mount -a

You should now have access to a fat32 partitioned disk (your windows drive) under /mnt/windows.

Hope this helps!

Gizmo
 
Old 08-31-2003, 12:10 AM   #4
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Quote:
/dev/sdb2 /mnt/windows auto user 0 0
I'd put a filesystem in the 3rd field - For FAT32 its vfat

ie

/dev/hda1 /mnt/windows2000 vfat defaults,umask=000 0 0

Also - a umask value of 000 ie

umask=000

is sufficient to give all users appropriate access
 
Old 08-31-2003, 12:36 AM   #5
scottown
LQ Newbie
 
Registered: Aug 2003
Location: Southern California
Distribution: Red Hat 9
Posts: 11

Original Poster
Rep: Reputation: 0
You guys are good. That works great.

That is so cool. I can see, open, edit, and pretty much do whatever I want with all files on my Windows partition.

Thanks
 
Old 08-31-2003, 12:40 AM   #6
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Smile

Glad to be of 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
accessing windows files from linux... kb_ganesh Linux - Newbie 2 06-24-2005 05:27 AM
accessing linux files from windows shahrahulb Linux - Software 6 09-28-2003 10:27 AM
Accessing Windows Files jd300 Linux - Newbie 15 09-27-2003 10:21 AM
accessing windows files from redhat 9 raven0_15 Linux - Networking 3 09-20-2003 02:00 AM
Accessing Windows files redhatnoob Linux - Distributions 5 08-11-2003 02:15 AM

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

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