LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 09-16-2005, 08:03 AM   #1
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Rep: Reputation: 30
How to mount NTFS into Fedora FC4 - Solution


I've searched it for a while but found organized solution only now which works awsome.

I honestly think this topic should get pinned up : Credits for Fedoraforum.org


_____________________
How to mount NTFS partitions for windows 2000, XP, 2003.
This will help a lot of our new comer to mount those partitions. You must begin here:
http://linux-ntfs.sourceforge.net/rpm/index.html and download according to your kernel.

Get your kernel version:
Code:
[imdeemvp@myfc3 ~]$ uname -r
2.6.10-1.741_FC3

and installed the package downloaded according to your kernel version:
[root@myfc3 imdeemvp]# rpm -ivh kernel-module-ntfs-2.6.10-1.741_FC3-2.1.22-0.rr.4.3.i686.rpm
Preparing... ########################################### [100%]
1:kernel-module-ntfs-2.6.########################################### [100%]
[root@myfc3 imdeemvp]# /sbin/modprobe ntfs
[root@myfc3 imdeemvp]# dmesg | grep NTFS
NTFS driver 2.1.22 [Flags: R/W MODULE].
[root@myfc3 imdeemvp]# cat /proc/filesystems


************** // I continue the rest of the message copy in quote cause I actually need to go // ******************

Quote:
nodev sysfs
nodev rootfs
nodev bdev
nodev proc
nodev sockfs
nodev binfmt_misc
nodev usbfs
nodev pipefs
nodev futexfs
nodev tmpfs
nodev eventpollfs
nodev devpts
ext2
nodev ramfs
nodev hugetlbfs
iso9660
nodev mqueue
ext3
vfat
nodev rpc_pipefs
nodev autofs
ntfs

If you need to see your hard drives table partitions, open terminal, become root and type:
Code:

/sbin/fdisk -l

you will this result:
[imdeemvp@myfc3 ~]$ su
Password:
[root@myfc3 imdeemvp]# /sbin/fdisk -l
Disk /dev/hda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 3057 24555321 c W95 FAT32 (LBA)
/dev/hda2 * 3058 3070 104422+ 83 Linux
/dev/hda3 3071 9964 55376055 8e Linux LVM

Disk /dev/hdb: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 9561 76798701 7 HPFS/NTFS
/dev/hdb2 9562 14946 43255012+ c W95 FAT32 (LBA)

Now mount your partitions:
Code:

mount /dev/hdb1 /mnt/win2k -t ntfs -r -o umask=0222


[root@myfc3 imdeemvp]# ls -l /mnt/win2k
total 379716
-r-xr-xr-x 1 root root 150528 Jun 19 2003 arcldr.exe
-r-xr-xr-x 1 root root 163840 Jun 19 2003 arcsetup.exe
-r-xr-xr-x 1 root root 0 Jan 30 00:08 AUTOEXEC.BAT
-r-xr-xr-x 1 root root 5418606 Jan 31 00:42 AVG7DB_F.DAT
-r-xr-xr-x 1 root root 5226033 Jan 30 23:50 AVG7QT.DAT
dr-xr-xr-x 1 root root 0 Jan 30 21:50 BJPrinter
-r-xr-xr-x 1 root root 192 Jan 29 16:04 boot.ini
-r-xr-xr-x 1 root root 0 Jan 30 00:08 CONFIG.SYS
-r-xr-xr-x 1 root root 8 Jan 30 22:52 DFIMB.DAT
dr-xr-xr-x 1 root root 4096 Feb 1 15:18 Documents and Sett



Read the instructions given. They are easy to understand. Here is my /etc/fstab:

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/hda6 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/hdb1 /mnt/win2k -t ntfs -r -o auto,umask=0222 My NTFS aoutmounting.
/dev/hda2 /mnt/windows vfat users,rw,owner,umask=000 0 0
/dev/sda1 /mnt/usbflash vfat noauto,users,rw,umask=0 0 0

This is also shortly explained at http://www.fedorafaq.org/#ntfs
I did not see a how to in the forum so I created one. Most of the info posted here was taken from the link provided but done in my terminal so it works. So post your questions here if you have problems...


HOW TO MOUNT FAT32 PARTITIONS IN FEDORA:
Now if you have Windows 95, 98 or ME and want to mount a FAT32 partition this is how is done:
First you have to make a mounting point in the mount directory. Open terminal become root and type this:
Code:

cd /mnt/

now create windows directory:
Code:

mkdir windowsfat32

and now add it to fstab.
type:
Code:

gedit /etc/fstab

and add this line:
Code:

/dev/hda3 /mnt/windowsfat32 vfat users,rw,owner,umask=000 0 0



NOTE /dev/hda3 is my fat32 partition....
 
Old 09-17-2005, 09:09 AM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
We do have an active Tutorial section which is a much better place for this.
 
Old 09-18-2005, 11:31 AM   #3
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Original Poster
Rep: Reputation: 30
every time after I do restart I need to write as root this code... how can I do this automatically?


this code

Code:
mount /dev/sda1 /mnt/win -t ntfs -r -o umask=0222
 
Old 09-18-2005, 12:46 PM   #4
M.G.
LQ Newbie
 
Registered: Sep 2005
Location: Tbilisi, Georgia, Earth...
Distribution: Debian etch, ubuntu feisty, suse 10.2, Cisco IOS :)
Posts: 7

Rep: Reputation: 0
http://linux-ntfs.sourceforge.net/rpm/fedora4.html download appropriate RPM for your kernel...

rpm -ihv *.rpm then

mkidir /mnt/windows
then edit /etc/fstab and write this :
/dev/hda1 /mnt/windows ntfs ro,defaults,umask=0222 0 0



reboot... good luck
 
Old 10-19-2005, 07:47 PM   #5
libhf
LQ Newbie
 
Registered: Dec 2004
Posts: 16

Rep: Reputation: 0
In my case, I followed all the instructions, downloaded the appropriate rpm, and after installation, got the followinng:

[root@localhost libhf]# /sbin/modprobe ntfs
FATAL: Error inserting ntfs (/lib/modules/2.6.11-1.1369_FC4/kernel/fs/ntfs/ntfs.ko): Invalid module format
[root@localhost libhf]#


I don't know where to proceed from here. Can anyone help?

Thanks
 
Old 10-19-2005, 09:51 PM   #6
sum1else
Member
 
Registered: Sep 2005
Posts: 47

Rep: Reputation: 15
i too also seem to be having issues
everything works fine up until this:


[root@localhost tatyanna]# mount /dev/hda1 /mnt/winxp -t ntfs -r -o umask=0222
mount: wrong fs type, bad option, bad superblock on /dev/hda1,
or too many mounted file systems


did i type it in wrong or something? :/
 
Old 10-26-2005, 01:42 AM   #7
ghostmac
LQ Newbie
 
Registered: Oct 2005
Posts: 15

Rep: Reputation: 0
same err

Yikes! I received the same error as above. I have been trying to find this solution for 3 days now, and now that I found it, no dice. This is what I get;

[root@localhost bin]# /sbin/modprobe ntfs
FATAL: Error inserting ntfs (/lib/modules/2.6.13-1.1532_FC4/kernel/fs/ntfs/ntfs.ko): Invalid module format

If anyone could shed some light on this, I would be eternally grateful.
 
Old 10-30-2005, 09:09 PM   #8
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Rep: Reputation: 53
Well, I got NTFS support working in FC4 by issuing only two commands:

# rpm -ihv http://rpm.livna.org/fedora/4/i386/RPMS.lvn/livna-release-4-0.lvn.2.4.noarch.rpm
# yum -y install kernel-module-ntfs

Then create dir /mnt/windows and edit fstab as instructed earlier in this thread by M.G.

Only catch is Livna repository uses NTFS module for FC4 kernel 2.6.13-1.1526 not the latest version for 2.6.13-1.1532 so you might get downgraded by yum when it does its little dependency-hell dance.

Last edited by Crito; 10-30-2005 at 09:10 PM.
 
Old 12-15-2005, 02:00 PM   #9
M.G.
LQ Newbie
 
Registered: Sep 2005
Location: Tbilisi, Georgia, Earth...
Distribution: Debian etch, ubuntu feisty, suse 10.2, Cisco IOS :)
Posts: 7

Rep: Reputation: 0
Hi again. I reinstalled my Fedora and have prblems with /etc/fstab. appropriate .rpm for my kernel installed successfully, I can mount ntfs partitions by Konsole, but on startup, It is not working. here is my filesystems table:


# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
/dev/devpts /dev/pts devpts gid=5,mode=620 0 0
/dev/shm /dev/shm tmpfs defaults 0 0
/dev/proc /proc proc defaults 0 0
/dev/sys /sys sysfs defaults 0 0
LABEL=SWAP-hda8 swap swap defaults 0 0
/dev/hda1 /mnt/win_c ntfs ro, defaults, umask=0222 0 0
/dev/hda5 /mnt/win_d ntfs ro, defaults, umask=0222 0 0
/dev/hdb /media/cdrecorder auto pamconsole,exec,noauto,managed 0 0


and I recieve message :
line 9 in /etc/fstab is bad
line 10 in /etc/fstab is bad

can someone help? thanks.
misha.

P.S. maybe problem is in the sequence of lines? hm... I dont know..
 
Old 12-16-2005, 08:26 AM   #10
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
Take out the spaces between your options in lines 9 and 10. I.e. 'ro, defaults, umask=0222' should in fact be 'ro,defaults,umask=0222' (you might also want to consider adding 'noexec' to the options)
 
Old 12-26-2005, 03:16 PM   #11
vxrt586
LQ Newbie
 
Registered: Dec 2005
Posts: 2

Rep: Reputation: 0
It seems, and correct me if i'm wrong, that these are solutions for those who have already installed FC4. My problem is that i can't even begin the installation process. Is there a command that i can enter at the 'boot:' prompt when i boot from the FC4 install disk??
 
Old 12-26-2005, 03:21 PM   #12
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by vxrt586
It seems, and correct me if i'm wrong, that these are solutions for those who have already installed FC4. My problem is that i can't even begin the installation process. Is there a command that i can enter at the 'boot:' prompt when i boot from the FC4 install disk??
I don't quite remember, but you should try :

linux-install
install
F3

and just a press of "ENTER"
 
  


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
Reading files with Fedora FC4 from XP[ntfs] itz2000 Fedora 4 08-24-2005 04:11 AM
how to mount NTFS fliesystem in fedora sagun_newbie Linux - Hardware 13 04-26-2005 08:04 AM
how to mount NTFS drives on fedora core 2? laiju Linux - General 3 11-21-2004 03:51 PM
how do i mount a ntfs file system with fedora core 1 redhat linux hackman__007 Linux - Newbie 7 09-06-2004 02:29 AM
NTFS file system mount problems Fedora 2.4 jjisnow Linux - Newbie 2 03-23-2004 05:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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