LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-06-2004, 01:21 AM   #1
fuelinjection
Member
 
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238

Rep: Reputation: 30
Windows Drive on Linux?


I'm running redhat 9.0, and have a slave harddisk with some files stored on it from when I was using windows.

I need to access a couple of files on that drive, is there anyway to access them using linux or will I have to build windows on another drive?

Shaun
 
Old 04-06-2004, 01:53 AM   #2
DaVenom
LQ Newbie
 
Registered: Mar 2004
Distribution: Slackware
Posts: 19

Rep: Reputation: 0
shaun....

you have to be more specific.

first is your slave disk "fat" or "ntfs"???. If its fat, no problem. If it is NTFS, then you need to recompile the kernel to enable NTFS support because RH does not come default with the support enabled. More over, your ntfs will only have read support on it.

if your drive is ntfs: get it to a friends place, copy your stuff, and reformat it as fat and then put back all your files.

if your drive is fat: (GNU/Linux supports read and write on fat partitions)
kickstart RH9.0. as root create a dir say 'fat' under /mnt. assuming your slavedisk has only one parition run mount in this manner

mount -t vfat /dev/hdb1 /mnt/fat

this should do it. your files should now be visible under /mnt/fat. in case you can't figure out your drives mount point. run grep on the dmesg output to figure out OR alternativley try running fdisk against the possible drives like this

fdisk /dev/hdb
fdisk /dev/hdd

Hope this helps

DaVenom
---------------------------------
"Excellence is never an accident"

Last edited by DaVenom; 04-06-2004 at 01:55 AM.
 
Old 04-06-2004, 05:22 AM   #3
jmynkbht
LQ Newbie
 
Registered: Jan 2004
Location: Singapore
Distribution: Mandrake 10
Posts: 26

Rep: Reputation: 15
Lightbulb No recompile needed for NTFS

Go to the linux ntfs project page http://linux-ntfs.sourceforge.net/

More precisely, this is where you will find what you need http://linux-ntfs.sourceforge.net/rpm/index.html

I am not using RH anymore but the last time that I used the ntfs driver, it worked like a charm and provided read only support.

Cheers!
 
Old 04-06-2004, 07:15 AM   #4
fuelinjection
Member
 
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238

Original Poster
Rep: Reputation: 30
Thats great,

I only need read only support anyway, just to restore a couple of files I need.

Thanks

Shaun
 
Old 04-18-2004, 04:03 PM   #5
AgentZ86
LQ Newbie
 
Registered: Apr 2004
Posts: 13

Rep: Reputation: 0
I have slave FAT32 drive also ??

Here is what I get:
root@MiniServ:~# mount -t vfat /dev/hdb1 /mnt/fat
mount: mount point /mnt/fat does not exist
root@MiniServ:~#
root@MiniServ:~#

The bios does recognize the drive FYI all jumpered correctly.

Please advise ?
Thanks



Quote:
Originally posted by DaVenom
shaun....

you have to be more specific.

first is your slave disk "fat" or "ntfs"???. If its fat, no problem. If it is NTFS, then you need to recompile the kernel to enable NTFS support because RH does not come default with the support enabled. More over, your ntfs will only have read support on it.

if your drive is ntfs: get it to a friends place, copy your stuff, and reformat it as fat and then put back all your files.

if your drive is fat: (GNU/Linux supports read and write on fat partitions)
kickstart RH9.0. as root create a dir say 'fat' under /mnt. assuming your slavedisk has only one parition run mount in this manner

mount -t vfat /dev/hdb1 /mnt/fat

this should do it. your files should now be visible under /mnt/fat. in case you can't figure out your drives mount point. run grep on the dmesg output to figure out OR alternativley try running fdisk against the possible drives like this

fdisk /dev/hdb
fdisk /dev/hdd

Hope this helps

DaVenom
---------------------------------
"Excellence is never an accident"
 
Old 04-18-2004, 04:55 PM   #6
FocusedWolf
Member
 
Registered: Feb 2004
Distribution: Fedora Core 3
Posts: 43

Rep: Reputation: 15
i recommend making a fat32 partition if you plan to send files back to linux from windows.

the ntfs thing is good if your only interested in copying from windows to linux, and not other way around which its not capable of.

o yea, if your ever in linux and choose the fat32 option and wanted to copy a file to it, and got some goofy message that its a readonly drive...then you have to restart your computer and copy a file to it in windows first, cause i think windows does something that prevents reading some times for no real reason.

also if windows doesnt let you write to the fat32 partition, then restart your computer...i encounted that recently and have no idea what causes it...just weird.
 
Old 04-18-2004, 05:02 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,740

Rep: Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923
AgentZ86
Quote:
root@MiniServ:~# mount -t vfat /dev/hdb1 /mnt/fat
mount: mount point /mnt/fat does not exist
You need to create a directory before you can mount the filesystem.
mkdir /mnt/fat
 
Old 04-19-2004, 04:11 PM   #8
AgentZ86
LQ Newbie
 
Registered: Apr 2004
Posts: 13

Rep: Reputation: 0
I got this working now thanks

In KDE as root, I added a file called hd2 to my mnt directory

I then did this without the -t

mount /dev/hdb1 /mnt/hd2 and it worked great

I think I understand what I've done now.

I also figured out this same thing with the cdrom I now understand these mnt folders.

however I thought I would have to mount with fat, or vfat for something but it did not appears to be a problem

Also I noticed that I was able to use this thing called SLAX to read boot and read my ntfs drive, I'm sure I could have figured out how to mount this somehow and eventually compiled a kernel to get it working, however I'm newbie and thought I'd roll the dice on this SlaxLive thing, and it did work for that purpose

Thanks again
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Seeing a Linux drive from Windows and copying files from the Linux drive? Alvis Linux - Software 4 03-26-2005 07:03 PM
linux on one drive windows on another HOW? WindowsH8r Linux - Newbie 7 02-12-2004 05:21 AM
Installing windows over linux on a fully partitioned drive for linux reddon84 Linux - Software 2 01-26-2004 06:17 PM
Running Windows Games In Linux From Windows Hard Drive Darkstar274 Linux - Games 2 12-25-2003 11:19 PM
How to use space on a windows drive for linux!!! Farem Linux - Newbie 13 06-23-2003 06:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:39 AM.

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