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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-12-2005, 06:50 AM
|
#1
|
LQ Newbie
Registered: Oct 2005
Location: BRISBANE!
Posts: 1
Rep:
|
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.
|
|
|
10-12-2005, 07:53 AM
|
#2
|
Member
Registered: Jul 2003
Location: Bedford, UK
Distribution: Slackware 11.0, LFS 6.1
Posts: 519
Rep:
|
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.
|
|
|
10-12-2005, 08:04 AM
|
#3
|
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797
|
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.
|
|
|
10-19-2005, 10:01 PM
|
#4
|
LQ Newbie
Registered: Oct 2005
Posts: 11
Rep:
|
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.
|
|
|
10-19-2005, 10:17 PM
|
#5
|
Senior Member
Registered: Aug 2005
Posts: 1,755
Rep:
|
On Fedora Core, you have to first install the NTFS kernel module
|
|
|
10-19-2005, 11:04 PM
|
#6
|
LQ Newbie
Registered: Oct 2005
Posts: 11
Rep:
|
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.
|
|
|
12-19-2005, 11:51 PM
|
#7
|
Member
Registered: Nov 2005
Posts: 63
Rep:
|
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.
|
|
|
12-20-2005, 02:05 AM
|
#8
|
Member
Registered: May 2004
Location: USA-Calif
Distribution: KANOTIX!
Posts: 48
Rep:
|
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!
|
|
|
12-20-2005, 08:01 AM
|
#9
|
Member
Registered: Nov 2005
Posts: 63
Rep:
|
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.
|
|
|
12-20-2005, 08:37 AM
|
#10
|
Member
Registered: Nov 2005
Posts: 63
Rep:
|
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)
|
|
|
12-20-2005, 10:58 AM
|
#11
|
Member
Registered: Jul 2004
Location: Manchester, England
Distribution: Gentoo
Posts: 211
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 06:56 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|