LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-30-2003, 11:39 AM   #1
krymsunmortis
Member
 
Registered: Jan 2003
Location: Fort Worth Tx
Distribution: Slackware RedHat Mandrake BackTrack
Posts: 31

Rep: Reputation: 15
Question Mounting NTFS filesystem with permissions


Ok here is my situation
I am trying to mount 3 file systems
they are
/dev/hda1
/dev/hdb1
/dev/hdb5

I have 3 target directories
/mnt/music
/mnt/storgae
/mnt/xp


I have tryied all sorts of ~/fstab entries and nothing seems to give me the permissions I want.

I have tried

/dev/hda5 swap swap defaults 0 0
/dev/hda6 / ext3 defaults 1 1
/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

#My own mount points listed here
/dev/hdb5 /mnt/music ntfs umask=000 0 0
/dev/hdb1 /mnt/storage ntfs umask=000 0 0
/dev/hda1 /mnt/xp ntfs umask=000 0 0



Config 2 was
/dev/hda5 swap swap defaults 0 0
/dev/hda6 / ext3 defaults 1 1
/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

#My own mount points listed here
/dev/hdb5 /mnt/music ntfs umask=777 0 0
/dev/hdb1 /mnt/storage ntfs umask=777 0 0
/dev/hda1 /mnt/xp ntfs umask=777 0 0

Config 3 was
/dev/hda5 swap swap defaults 0 0
/dev/hda6 / ext3 defaults 1 1
/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

#My own mount points listed here
/dev/hdb5 /mnt/music ntfs user,group 0 0
/dev/hdb1 /mnt/storage ntfs user,group 0 0
/dev/hda1 /mnt/xp ntfs user,group 0 0

since then I have gone back to using umask
and going through all combinations of numbers

but none of these will give any user or even root write permissions on those mounts. I have come to my end with out resorting to some GUI program but that is why I came over to Slack was to move away from needing the GUI and wanting a kicking Linux Flav. beside if I have to use GUI's to do everything then I might as go back to Bill Gates Land right ? Ok I admit I like playing in config files and I feel like I have POWER. But not with my mount point grrrrrrrrrrrrrrr.


Any help would be greatly appreciated.
 
Old 10-30-2003, 12:31 PM   #2
Wonderer
Member
 
Registered: Oct 2003
Location: London, UK
Distribution: Slackware 9.0
Posts: 58

Rep: Reputation: 15
Check out the Q&A in:

Once agian: Problems with mounting ntfs


Good Luck
 
Old 10-30-2003, 12:48 PM   #3
musrum
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 112

Rep: Reputation: 15
THe link given above covers mount errors. Sounds like you mount successfully.

If you do, and can read but not write an ntfs partition that is _normal_. Writing to ntfs partitions is considered unstable - the ntfs filesystem code is usually compiled without write support.

If you want to be able to write to the ntfs partition, you may need to recompile the ntfs driver to enable write support.
 
Old 10-30-2003, 12:53 PM   #4
krymsunmortis
Member
 
Registered: Jan 2003
Location: Fort Worth Tx
Distribution: Slackware RedHat Mandrake BackTrack
Posts: 31

Original Poster
Rep: Reputation: 15
Lightbulb Yep can mount but cant write

Yep your right I can mount but just cant write to those mount points and as you can tell there all NTFS and I am not willing to loose 40GB of data to just be able to read/write and execute on that filesystem.
So I think I will figure out how to reconfigure the driver for NTFS support and go from there other wise ............. who knows what my next step will be.

Thanks for all your help
will let you all know if that worked
 
Old 10-30-2003, 01:04 PM   #5
Wonderer
Member
 
Registered: Oct 2003
Location: London, UK
Distribution: Slackware 9.0
Posts: 58

Rep: Reputation: 15
I am not an expert [noob] but writing to ntfs from linux is very dangerous.

It is often mentioned that you should only mount ntfs as read only.

Many poeple have corrupted their data by writing to ntfs from linux.


I mounted it as ro and can access and copy files to linux.

Good Luck
 
Old 10-30-2003, 01:23 PM   #6
Kroppus
Member
 
Registered: Aug 2003
Location: Norway
Distribution: Debian UNSTABLE + latest 2.6.kernel
Posts: 391

Rep: Reputation: 30
as Wonderer said.
It's deemed dangerous by most people that use Linux and fot ntfs on other disks.
My advice is get a hold of PartitionMagic8 and use that to convert the drives you need/want to write to into FAT32. That way you can use them from Windows and Linux with no danger of screwing up.
I tried to compile in the support for writing to NTFS and i'm really happy that i had made a backup of that partition. Everything just went wrong with it. (maybe cause treid to copy a movie over to it)
My setup looks like this.

hda1 =xp (ntfs) (50gb)
hda2= fat32 (65gb)
hda3=NTFS (6gb)
hdb1-5=ext2 (40 gb)
hdb12=fat32 (40 gb)
hdc=cdrom
hdd1=fat32 (120 gb) (my mp3's)
 
Old 04-24-2004, 08:19 PM   #7
kidburla2004
LQ Newbie
 
Registered: Apr 2004
Posts: 1

Rep: Reputation: 0
Kernel write NTFS support

In the kernel configuration you will need to make sure you change "Code maturity level options"->"Prompt for development and/or incomplete code/drivers" to yes, so that "NTFS write support" will appear under "Filesystem support". Select that as yes, then recompile the kernel. This should solve your problems, but bear in mind NTFS write support is very dangerous and could cause severe data loss.
 
Old 04-29-2004, 04:37 PM   #8
krymsunmortis
Member
 
Registered: Jan 2003
Location: Fort Worth Tx
Distribution: Slackware RedHat Mandrake BackTrack
Posts: 31

Original Poster
Rep: Reputation: 15
Changed partition type

Thanks to all I changed the partition type to Fat32 and reloaded all information back on the drives. Figured it was better that way instead of getting linux to write to the NTFS and loosing all information.
 
  


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 external Firewire NTFS HDD & Permissions Ganza Linux - Newbie 9 11-06-2005 07:39 AM
Mounting NTFS filesystem. mickeyboa Fedora 2 04-20-2005 07:57 PM
Mounting HDD vs. Mounting Filesystem snailophone Linux - Hardware 4 08-12-2003 11:00 AM
Mounting NTFS filesystem in linux?? Hachaso Linux - General 4 07-23-2003 03:19 PM
Mounting NTFS filesystem laxguy1515 Linux - General 1 06-06-2003 12:16 PM

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

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