LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-27-2004, 01:14 PM   #1
Amsterdam
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Rep: Reputation: 0
mounting my NTFS partition.


I am running FC2, im a noob sry...

I want to mount my second hard drive, it has one partition on it, a NTFS partition.

i have made a dir in /mnt/<New Drive>
I whent back to root dir and typed: mount -t ntfs /dev/hdb1 /mnt/<New Drive>
this gives an error: wrong FS type. Is this not possible, mounting a NTFS partition in Fedora C2?
 
Old 08-27-2004, 01:32 PM   #2
PenguinPwrdBox
Member
 
Registered: Oct 2003
Posts: 568

Rep: Reputation: 31
This is the question:
Is the kernel that you are using compiled with read support for NTFS?
If not, you can either patch it, or recompile......
 
Old 08-27-2004, 06:04 PM   #3
mjmwired
Member
 
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

Rep: Reputation: 39
Try reading here: http://linux-ntfs.sourceforge.net/rpm/fedora2.html
 
Old 08-28-2004, 07:04 AM   #4
Amsterdam
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Wow, perfect link...thank you so much...all working perfect now!!!!

you guys rule!
 
Old 08-28-2004, 08:08 AM   #5
Amsterdam
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Original Poster
Rep: Reputation: 0
but...

ok now i added the following line to my fstab file in /etc/:

mount /dev/hdb1 /mnt/AnimeHDD -t ntfs -r -o umask=0027,uid=admin

I want my user admin to have full read write execute access to this hdb1 ntfs partition.

The automatic mount works fine and my admin can view the content of this mounted drive...

but...

there is nothing in it. For some reason its empty. Why?

it should contain folders filled with .txt, .gif, .ogm and .avi files.

please help.

gr,

Amsterdam
 
Old 08-28-2004, 11:52 AM   #6
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi

try adding this to /etc/fstab

/dev/hdb1 /mnt/AnimeHDD ntfs auto,owner,exec,umask=000 0 0

and then see if ur user can acess the partitions
also write support fror NTFS is not good in linux, u just can replace file and cannot create, a new file


regards
gaurav
 
Old 08-28-2004, 12:39 PM   #7
kostason
Member
 
Registered: Aug 2004
Location: Greece
Distribution: Fedora Core 2, DeLi Linux 0.6.1, Slackware 10.0
Posts: 105

Rep: Reputation: 15
hi
correct me if I am wrong but the -r option is for read only filesystem.
Copy from "man mount": -r Mount the file system read-only. A synonym is -o ro.

Try the -w option instead.

Anyway write access is dangerous on ntfs file system.

I use the following in my fstab:
"/dev/hda6 /mnt/windows ntfs ro,umask=0222 0 0"
and it works fine, without write access.
You may also add your user "uid=admin" after the "umask=0222".


I hope I was of some help.

------------------------
Kostason

Last edited by kostason; 08-28-2004 at 12:43 PM.
 
Old 08-28-2004, 12:46 PM   #8
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi

write in NTFS is of no use also ,!!!!!
u cannot ceate any new files, i have been using the latest driver with the kernel 2.6.8.1

regards
 
Old 08-29-2004, 05:17 AM   #9
Amsterdam
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Thank you for the advise...but...

Tried your way of mounting, worked the same as my way unfortunately.

Drive is mounted, but when i open the folder nothing is in it.

It seems to mount the device but without the content.

If this doesnt work, I will be forced to use Microsoft again.
 
Old 08-29-2004, 05:41 AM   #10
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi
try changing the permisions after entering the root account and then
in ur browser go to the directory where u have the drive mounting ur ntfs partitons
now i beleive u can see ur files from root???
so riht click on the directory where ur ntfs Fs is mounted and
try changng permissions from
ther
give read access to "others" also


regards
 
Old 08-29-2004, 05:52 AM   #11
Amsterdam
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Original Poster
Rep: Reputation: 0


Unfortunately...

I logged in as root, changed permissions to 777 made my default user "admin" the file owner even, but still nothing in the folder

Another odd observation, the free space is 5GB it says. But it is a Drive of 160GB with at least 130GB Free space.

help....
 
Old 08-29-2004, 06:12 AM   #12
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi

it is unfortunate that this does not work out for u
but as i said earlier i am using the NTFS driver after i compiled my kernel for it
so might this be making any difference???

also i too have seen such problems before that the empty space reported is not correct, but it happens to be okay next time reboot
and they do happen later also

regards
 
Old 08-29-2004, 11:40 AM   #13
kostason
Member
 
Registered: Aug 2004
Location: Greece
Distribution: Fedora Core 2, DeLi Linux 0.6.1, Slackware 10.0
Posts: 105

Rep: Reputation: 15
OK
plz check the following.

Did you install the right "kernel-ntfs"?
plz post the output of the command "rpm -qa | grep kernel"

also check the architecture of the kernel and the kernel-ntfs that u have (i586, i686). They must be the same.

also plz check your "/var/log/boot.log" file for an error message like this:
"mount: mount: fs type ntfs not supported by kernel".

good luck

-------------------
Kostason
 
Old 08-29-2004, 02:48 PM   #14
Amsterdam
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Original Poster
Rep: Reputation: 0
hello, tu.

Quote:
rpm -qa | grep kernel:
kernel-ntfs-2.6.8-1.521
kernel-2.6.5-1.358
kernel-utils-2.4-9.1.131
kernel-source-2.6.5-1.358
kernel-2.6.8-1.521

Quote:
also check the architecture of the kernel and the kernel-ntfs that u have (i586, i686). They must be the same.
rpm -q --queryformat "%{ARCH}\n" kernel:

- i686
- i686

Quote:
also plz check your "/var/log/boot.log" file for an error message like this:
"mount: mount: fs type ntfs not supported by kernel".
- All succeeded it says.

im really at a loss of ideas.
 
Old 08-30-2004, 03:37 AM   #15
kostason
Member
 
Registered: Aug 2004
Location: Greece
Distribution: Fedora Core 2, DeLi Linux 0.6.1, Slackware 10.0
Posts: 105

Rep: Reputation: 15
just noticed above. Did u add in the fstab the following command?
Quote:
mount /dev/hdb1 /mnt/AnimeHDD -t ntfs -r -o umask=0027,uid=admin
If yes remove the "mount". It does not meant to be there.

--------------------
Kostason
 
  


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
Mounting ntfs partition Gentleman_finn Linux - Newbie 14 07-25-2005 03:45 PM
ntfs partition mounting as rw ktekosi Slackware 4 06-07-2005 08:43 PM
mounting an NTFS partition greythorne Slackware 1 06-02-2004 01:02 AM
mounting ntfs partition ! shaahul Linux - Newbie 11 09-16-2003 05:06 AM
Mounting NTFS partition dark_light Linux - General 4 09-20-2002 11:39 PM

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

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