LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-29-2005, 11:14 PM   #1
mcrexx
LQ Newbie
 
Registered: Aug 2005
Location: Ontario, Canada
Posts: 20

Rep: Reputation: 0
Unhappy Trying to mount and read my NTFS paritions :(


hi all,

New Debian (sarge) user here and I've been read around the forums on how to mount my NTFS paritions (with all my audio, video, word, etc. files).

From what I read this is what I've done so far, as a su:

Code:
mkdir /mnt/windows
next:

Code:
pico /etc/fstab
Within that file I typed:

Code:
/dev/hda1     /mnt/windows     ntfs     ro,noauto,user,unmask=0022 0 0
I save the file and then type:

Code:
mount -a
So far so good, but when I try to access the hda1 driver in Computer I get the following error:

Quote:
mount: wrong fs type, bad option, bad superblock on /dev/hda1, missing codepage or other error
Quote:
In some cases useful info is found in syslog - try dmesg | tail or so
Please check that the disk is entered correctly
Please help, I've been trying to do this for 2 days .

Last edited by mcrexx; 08-29-2005 at 11:15 PM.
 
Old 08-29-2005, 11:39 PM   #2
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,834

Rep: Reputation: 47
chmod a+rx /dev/hda1


mount the file system with "umask=0" as an option.

For example

#mount -t ntfs -o umask=0 /dev/hda1 /path/to/mount/point

where /dev/hda1 is replaced with the hard drive and partition of the NTFS filesystem.

In fstab it will look a bit different -- but I'll let you play around with it.
 
Old 08-29-2005, 11:48 PM   #3
mcrexx
LQ Newbie
 
Registered: Aug 2005
Location: Ontario, Canada
Posts: 20

Original Poster
Rep: Reputation: 0
Thank you for the quick reply.

I followed your instructions and now the error I'm getting when I try to read the ntfs drive in Computer is:

Quote:
Could not enter folder /mnt/windows
And in fstab I added the line:

Code:
/dev/hda1     /mnt/windows     ntfs     ro,noauto,user,unmask=0 0   0
Is this correct?
 
Old 08-30-2005, 12:03 AM   #4
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,834

Rep: Reputation: 47
Hello!
Have you chmoded?
You could try a different approach:
/dev/hde1 /mnt/windows ntfs uid=1001,gid=root,ro 1 0
Assuming that you're the only user (uid=1001) and your root is 1000
 
Old 08-30-2005, 12:09 AM   #5
mcrexx
LQ Newbie
 
Registered: Aug 2005
Location: Ontario, Canada
Posts: 20

Original Poster
Rep: Reputation: 0
Success!

I was typing UNmask instead of Umask. LOL

Wow, the sillest things that can cause you so much greif!

Thank you so much SlackerLX!
 
Old 08-30-2005, 03:54 AM   #6
primo
Member
 
Registered: Jun 2005
Posts: 542

Rep: Reputation: 34
The ntfs driver has the dmask and fmask options since long, but they aren't documented in mount(8). They refer to permissions of directories and files respectively.
See /usr/src/linux/Documentation/filesystems/ntfs.txt

/usr/src/linux/Documentation/filesystems/ntfs.txt
Something like
Code:
/dev/hda1 /mnt/hda1 ntfs auto,user,ro,dmask=0022,fmask=0133 0 0
would work

fmask & dmask for vfat are supported by kernels >= 2.5.43
Code:
/dev/hda7 /mnt/hda7 vfat auto,users,rw,dmask=0022,fmask=0133,debug,quiet 0 0
 
  


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
How to read .chm file in fedora, can't mount ntfs file system ishti_du Linux - Newbie 12 03-06-2007 04:27 AM
Fedora Core 3 and NTFS Paritions harley51 Fedora 6 11-25-2004 03:39 PM
Can I mount an ntfs partition or read one using linux? r_squared Linux - General 8 11-20-2004 01:18 PM
Can't mount NTFS in read-write mode Tyco Linux - Hardware 4 06-08-2003 12:52 PM
Compiled RH7.3 to read WinXP NTFS partition, mounts in Console, but can't mount fstab BlackDogg Linux - Newbie 20 08-06-2002 12:15 AM


All times are GMT -5. The time now is 06:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration