LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-12-2005, 06:50 AM   #1
nikko05
LQ Newbie
 
Registered: Oct 2005
Location: BRISBANE!
Posts: 1

Rep: Reputation: 0
Accessing Windows hard Drive


G'day all,

I recently installed Fedora Core 4 on a new hard drive. My system now dual boots using GRUB, but all my files are still on my old hard drive which is used for windows XP. I was wondering if there is a way to transfer music and files from my Windows hard drive to my Fedora hard drive.



Thanks in advance,

Nick.
 
Old 10-12-2005, 07:53 AM   #2
vasudevadas
Member
 
Registered: Jul 2003
Location: Bedford, UK
Distribution: Slackware 11.0, LFS 6.1
Posts: 519

Rep: Reputation: 30
This is not a problem

In fact you can access the Windows drive directly, without need to transfer your files. Linux has been able to read ntfs filesystems for some time, and recently has been able to write them as well.

First of all, check your system for a folder called /mnt/windows or /windows or something like that. I am almost 100% sure that your Fedora install will have detected the Windows partition and set up a mount for it automatically. If you find it, that is your Windows drive and you can access all your files in there.

In the very unlikely event that it isn't there, you will need to create a directory to mount it to, say:

Code:
su -
<password>
mkdir /mnt/windows
and then mount it with:

Code:
mount -t ntfs /dev/hd* /mnt/windows
where * is the device number for your Windows drive. You can then add an entry in your /etc/fstab file to mount this drive automatically when you boot up; someone else can tell you how to do that, or I will tell you when I get home.
 
Old 10-12-2005, 08:04 AM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797

Rep: Reputation: 282Reputation: 282Reputation: 282
You have to mount the drive

I do this at boottime using an entry in the file /etc/fstab
Code:
/dev/hda8    /W2K/G    vfat    auto,uid=500,gid=502,umask=007 0 0
/dev/hda8 is my windows G-drive and will be mounted as /W2K/G (you have to create this directory)
vfat is the type (vfat for FAT-formatted drives, ntfs for NTFS formatted drives)
auto indicates that it must be mounted at boot-time
uid and gid indicate the owner and group
umask indicates the rights
I'm not sure about the last 2 numbers (0 0)

Please note that NTFS reading is not a problem but writing might be.

Last edited by Wim Sturkenboom; 10-12-2005 at 08:05 AM.
 
Old 10-19-2005, 10:01 PM   #4
Saspen
LQ Newbie
 
Registered: Oct 2005
Posts: 11

Rep: Reputation: 0
Further inof need!

Just installed the last and lastes verion of Suse Linux 9.3

I have two drives...one dedicated to linux and the other is a NTFS windows drive.

I have tried to mount the drive to gain access and here is the error messege I get

"Could not mount device.
The reported error was:
mount: can't find /dev/hda1 in /etc/fstab or /etc/mtab"

contents of the files above:

fstab
/dev/hdb2 / reiserfs acl,user_xattr 1 1
/dev/hdb1 /ntfs ntfs user,ro 0 0

mtab

/dev/hdb2 / reiserfs rw,acl,user_xattr 0 0
/dev/hdb1 /ntfs ntfs user,ro 0 0

Now when I reboot, the above file mtab goes back to its orginal config without the:
/dev/hdb1 /ntfs ntfs user,ro 0 0

There by I get the same error messege again:
"Could not mount device.
The reported error was:
mount: can't find /dev/hda1 in /etc/fstab or /etc/mtab"



Any help would be much appreciated.

Saspen

Last edited by Saspen; 10-19-2005 at 10:11 PM.
 
Old 10-19-2005, 10:17 PM   #5
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
On Fedora Core, you have to first install the NTFS kernel module
 
Old 10-19-2005, 11:04 PM   #6
Saspen
LQ Newbie
 
Registered: Oct 2005
Posts: 11

Rep: Reputation: 0
I got to looking in the partition area of the YAST...you are right there are no assignments of the type of file system for the NTFS...

hmmmmmmmmmm

any more info???

I see that there are kernels for Redhat and Fedora...but what about SUSE? Where may I find that kernel you speak of?

saspen

Last edited by Saspen; 10-19-2005 at 11:30 PM.
 
Old 12-19-2005, 11:51 PM   #7
mclinkor
Member
 
Registered: Nov 2005
Posts: 63

Rep: Reputation: 15
I've attempted the mount -t ntfs ... and it returns

(I'm running gentoo, so it didn't already set it up for me)

mount: unknown filesystem type 'ntfs'

I had gone back into my kernel config and selected ntfs file system support , done make && make install, and rebooted, but it still doesn't want to recognize ntfs.
 
Old 12-20-2005, 02:05 AM   #8
bandersnatchy
Member
 
Registered: May 2004
Location: USA-Calif
Distribution: KANOTIX!
Posts: 48

Rep: Reputation: 15
If you find you absolutely cannot mount the darn NTFS partition in Fedora, try using a live CD to copy the files. It's worth the download to have a Live CD sitting around for emergencies anyway.

If you boot Knoppix, both hard drives (all partitions) appear on the desktop.

- set up a password for su (sudo passwd root),
- mount the two drives/partitions (just use the icons)
- make the Linux partition writable (right click icon, select actions-Change Read/Write mode)
- open Konqueror as su (menu-System-More Applicatns-File Manager Super User Mode)
- copy the files

Exit Knoppix as soon as you finish copying, or you might find yourself playing with it all evening. Be especially careful if you use PCLinuxOS or Kanotix or Wolvix, because you will end up wanting to install it and/or build your own custom Live CD, and you may not get back to your original project for days!
 
Old 12-20-2005, 08:01 AM   #9
mclinkor
Member
 
Registered: Nov 2005
Posts: 63

Rep: Reputation: 15
Well, I'm using gentoo, not Fedora. Consequently I have a Gentoo LiveCD, which doesn't have the commands/graphics that you are referring to. Also, what files are you talking about copying over.
 
Old 12-20-2005, 08:37 AM   #10
mclinkor
Member
 
Registered: Nov 2005
Posts: 63

Rep: Reputation: 15
Resolved

I realized what I had forgotten to do. I never copied my kernel configuration to overwrite my old kernel after I had compiled the new one (since they are in different directories)
 
Old 12-20-2005, 10:58 AM   #11
UK MAdMaN
Member
 
Registered: Jul 2004
Location: Manchester, England
Distribution: Gentoo
Posts: 211

Rep: Reputation: 30
Quote:
Originally Posted by Saspen
"Could not mount device.
The reported error was:
mount: can't find /dev/hda1 in /etc/fstab or /etc/mtab"

contents of the files above:

/dev/hdb1 /ntfs ntfs user,ro 0 0
It looks like you're trying to mount /dev/hda1, which can't be found (possibly due to being a cf/mmc card reader). As you can see above, your ntfs partition is actually on /dev/hdb1.
 
  


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 second hard drive Damon Spector Linux - Hardware 1 04-23-2005 01:18 AM
Accessing Windows files on a seperate hard drive ickselglic Linux - Hardware 1 01-22-2005 06:13 PM
Accessing Linux hard-drive from windows sduffy89 Linux - General 3 08-30-2004 12:05 PM
Accessing Windows Partition on Diff. Hard-Drive sduffy89 Debian 1 08-25-2004 12:39 PM
Accessing windows hard drive eastsidecrew Linux - Newbie 4 04-20-2004 12:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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