Write permission change on ntfs file system

Booting, installing, newbie
Post Reply
Message
Author
Krysztau
Posts: 11
Joined: Mon 20 Feb 2012, 10:00

Write permission change on ntfs file system

#1 Post by Krysztau »

Hi,
I have win7 and run slacko off my USB stick.
I have an exe file on sda1, so to run it I have a shortcut on desktop taht mounts a drive and than opens .exe

code you see here is with added permission change (third line), but it still does not change permission
(dr-x------ 1 root root)

Code: Select all

#!/bin/sh
mkdir /mnt/sda1
chmod ug+w /mnt/sda1
mount /dev/sda1 /mnt/sda1
wine  /mnt/sda1/"AAA Programy"/FX/MT4/terminal.exe "$@"
In command line on any chmod attempt I get message:
chmod: changing permission of `/mnt/sda1': Read-only file system

The thing i found on the net was some 3g needs to be installed to change ntfs permission, but the thing is whem I click sda1 drive icon on desktop with mouse it mounts with full permission, so my puppy can do it, but how?

there is one of topics I didn't found helpfull, maybe just because I can't understand it...

http://www.murga-linux.com/puppy/viewto ... b4f3775166

in particular this reply seems to be something near my poblem:
GCDB wrote:Hello,
Thanks for that,
I have now got it working, but do not know where to go from here.....
I am sure someone will correct me if i am wrong............
I had to set up permissions for the NTFS at boot, here is my two files.
fstab

none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
none /dev/pts devpts gid=2,mode=620 0 0
/dev/fd0 /mnt/floppy auto noauto,rw 0 0
/dev/sdb5 /mnt/sdb5 ntfs-3g rw 0 0
/dev/sdb1 /mnt/sdb1 ntfs-3g rw 0 0

rc.local

#!/bin/ash
modprobe fbcon
mkdir /mnt/sdb1
mkdir /mnt/sdb5
ntfs-3g /dev/sdb1 /mnt/sdb1
ntfs-3g /dev/sdb5 /mnt/sdb5

This seems to allow me and the world to read/write to the usb drive from another computer running xp

Not really ideal but wanted to get this sorted first.
Dont know how i could set permissions for different groups or users at boot though?? If any one could help this, or would i be better formatting drive with ext2 as peter suggests.
Many thanks for response though
Regards
Gavin
What I'm asking for is what command should I use.

Tanks
Chris

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#2 Post by bigpup »

Code:
#!/bin/sh
mkdir /mnt/sda1
chmod ug+w /mnt/sda1
mount /dev/sda1 /mnt/sda1
wine /mnt/sda1/"AAA Programy"/FX/MT4/terminal.exe "$@"
Try changing mount /dev/sda1 /mnt/sda1
To
ntfs-3g /dev/sda1 /mnt/sda1
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

Post Reply