Blog Forum Wiki Links Contact Us NetbookUser
RunCore Pro IV SSD Transforms your ASUS EEE PC by increasing 
performance 5-40X. Your satistfaction guaranteed RunCore Pro 70mm SATA Mini PCI-e SSD
RunCore Pro IV 70mm SATA II Mini PCI-e SSD
RunCore Pro IV 2.5 Inch SATA II SSD

You are not logged in.

#1 2007-11-01 8:43:34 am

PickleHead
Member
Registered: 2007-10-29
Posts: 39

Can't change permissions on SD card

Hey guys, I can't seem to change any permissions or owners of any files on the sd card, even logged in as root. Can anyone help me out? I don't know too much about Linux but I'm learning pretty fast.

Offline

 

#2 2007-11-01 9:39:32 am

Qatz
Senior Member
From: In your hair.
Registered: 2007-08-27
Posts: 212

Re: Can't change permissions on SD card

You need to reformat the sd card to ext2. Just a note the card will only be readable Linux after this. That is unless you install an ext2 driver on the windows system you want to read it.


Beer?
4G White 701a with Flash PCI-E Slot | 2 gig Ram | Gentoo | Kernel 2.6.25.4

Offline

 

#3 2007-11-01 10:53:01 am

o2smartphone
Senior Member
Registered: 2007-10-28
Posts: 569

Re: Can't change permissions on SD card

Qatz wrote:

You need to reformat the sd card to ext2. Just a note the card will only be readable Linux after this. That is unless you install an ext2 driver on the windows system you want to read it.

Why need to reformat the sd card ? The system is able to read, write to the SD card in Fat !


windows or linux, who cares !  I just want to use eeePC My Way

Offline

 

#4 2007-11-01 10:55:06 am

Qatz
Senior Member
From: In your hair.
Registered: 2007-08-27
Posts: 212

Re: Can't change permissions on SD card

"Why need to reformat the sd card ? The system is able to read, write to the SD card in Fat !"

"I can't seem to change any permissions or owners of any files on the sd card"

Fat filesystems do not support file permissions or file ownership.


Beer?
4G White 701a with Flash PCI-E Slot | 2 gig Ram | Gentoo | Kernel 2.6.25.4

Offline

 

#5 2007-11-01 10:56:24 am

o2smartphone
Senior Member
Registered: 2007-10-28
Posts: 569

Re: Can't change permissions on SD card

PickleHead wrote:

Hey guys, I can't seem to change any permissions or owners of any files on the sd card, even logged in as root. Can anyone help me out? I don't know too much about Linux but I'm learning pretty fast.

As I understand, files written to the SD card will belong to root. What exactly do you want to do with the files. I am not a linux guru, but I sure know how to help you on this.

Do you use console to change the permissions, or you just type su or sudo in the console and return to the File Manager trying to change the permission ?


windows or linux, who cares !  I just want to use eeePC My Way

Offline

 

#6 2007-11-01 11:01:16 am

PickleHead
Member
Registered: 2007-10-29
Posts: 39

Re: Can't change permissions on SD card

I was trying to do it through console. Couldn't chown or chmod. It makes sense that you can't on fat.

But I guess the real problem is that I can't run programs or shell scripts off the car, I tried to put filezilla on the sd card and when I double click on it, it brings up an open with dialog. When I try to start it via console, it gives me permission errors - even on root.

Offline

 

#7 2007-11-01 11:05:48 am

o2smartphone
Senior Member
Registered: 2007-10-28
Posts: 569

Re: Can't change permissions on SD card

Qatz wrote:

"Why need to reformat the sd card ? The system is able to read, write to the SD card in Fat !"

"I can't seem to change any permissions or owners of any files on the sd card"

Fat filesystems do not support file permissions or file ownership.

I am no linux guru, I only know windows do not honour file ownership in Fat.

This is a file in SD (Fat)
http://865gv.kornhill.hk/eeepc/snapshot26.png

You can change permission if you are the owner (root)
http://865gv.kornhill.hk/eeepc/snapshot27.png

You can also change the ownership
http://865gv.kornhill.hk/eeepc/snapshot28.png


windows or linux, who cares !  I just want to use eeePC My Way

Offline

 

#8 2007-11-01 11:09:55 am

o2smartphone
Senior Member
Registered: 2007-10-28
Posts: 569

Re: Can't change permissions on SD card

PickleHead wrote:

I was trying to do it through console. Couldn't chown or chmod. It makes sense that you can't on fat.

But I guess the real problem is that I can't run programs or shell scripts off the car, I tried to put filezilla on the sd card and when I double click on it, it brings up an open with dialog. When I try to start it via console, it gives me permission errors - even on root.

Have you prefix your command with sudo ?


windows or linux, who cares !  I just want to use eeePC My Way

Offline

 

#9 2007-11-01 11:10:32 am

Qatz
Senior Member
From: In your hair.
Registered: 2007-08-27
Posts: 212

Re: Can't change permissions on SD card

Yes but once he removes the card and then replaces it... poof.


Beer?
4G White 701a with Flash PCI-E Slot | 2 gig Ram | Gentoo | Kernel 2.6.25.4

Offline

 

#10 2007-11-01 11:17:03 am

o2smartphone
Senior Member
Registered: 2007-10-28
Posts: 569

Re: Can't change permissions on SD card

Hard to imagine that people will format already ready for use SD card to ext2 smile


windows or linux, who cares !  I just want to use eeePC My Way

Offline

 

#11 2007-11-01 11:19:47 am

Qatz
Senior Member
From: In your hair.
Registered: 2007-08-27
Posts: 212

Re: Can't change permissions on SD card

Its just one of the choices. I find it easier then resetting the permissions each time you insert the card. Also its safer then trying to get someone who doesn't know what they are doing to edit the fstab to change the sd cards defaults.


Beer?
4G White 701a with Flash PCI-E Slot | 2 gig Ram | Gentoo | Kernel 2.6.25.4

Offline

 

#12 2007-11-01 11:21:34 am

PickleHead
Member
Registered: 2007-10-29
Posts: 39

Re: Can't change permissions on SD card

o2smartphone wrote:

PickleHead wrote:

I was trying to do it through console. Couldn't chown or chmod. It makes sense that you can't on fat.

But I guess the real problem is that I can't run programs or shell scripts off the car, I tried to put filezilla on the sd card and when I double click on it, it brings up an open with dialog. When I try to start it via console, it gives me permission errors - even on root.

Have you prefix your command with sudo ?

sudo: ./filezilla: command not found

Offline

 

#13 2007-11-01 11:26:17 am

o2smartphone
Senior Member
Registered: 2007-10-28
Posts: 569

Re: Can't change permissions on SD card

PickleHead wrote:

o2smartphone wrote:

PickleHead wrote:

I was trying to do it through console. Couldn't chown or chmod. It makes sense that you can't on fat.

But I guess the real problem is that I can't run programs or shell scripts off the car, I tried to put filezilla on the sd card and when I double click on it, it brings up an open with dialog. When I try to start it via console, it gives me permission errors - even on root.

Have you prefix your command with sudo ?

sudo: ./filezilla: command not found

I think you got it wrong, if the application is in SD and you have not prepare a soft link, then the correct location should be /media/MMC-SD/partition1/....
But if you already CD to the correct folder, then you need to check the attrib, if it is 0644 then it is not allowed to execute.

But are you sure you will use filezilla in the 480 height screen ?

In the site it mention: It is recommended to use the package management system of your distribution or to manually compile FileZilla instead.

Have you tried the Fireftp (plug-in for Firefox) ?

Last edited by o2smartphone (2007-11-01 11:34:47 am)


windows or linux, who cares !  I just want to use eeePC My Way

Offline

 

#14 2007-11-01 11:32:11 am

PickleHead
Member
Registered: 2007-10-29
Posts: 39

Re: Can't change permissions on SD card

I was already in the correct directory, If I were to run ./filezilla without sudo, it would give me a permission error. And then I go and try and change the permissions and I don't have permissions to change permissions lol. Even if I am logged in as root, I get an error when I try to change permissions on the file.

Offline

 

#15 2007-11-01 11:40:17 am

o2smartphone
Senior Member
Registered: 2007-10-28
Posts: 569

Re: Can't change permissions on SD card

PickleHead wrote:

I was already in the correct directory, If I were to run ./filezilla without sudo, it would give me a permission error. And then I go and try and change the permissions and I don't have permissions to change permissions lol. Even if I am logged in as root, I get an error when I try to change permissions on the file.

what command you issue to change the permissions ?


windows or linux, who cares !  I just want to use eeePC My Way

Offline

 

#16 2007-11-01 12:27:04 pm

PickleHead
Member
Registered: 2007-10-29
Posts: 39

Re: Can't change permissions on SD card

http://img235.imageshack.us/img235/9738/snapshot1xt1.png

Offline

 

#17 2007-11-03 9:50:29 am

PickleHead
Member
Registered: 2007-10-29
Posts: 39

Re: Can't change permissions on SD card

Bump!

Offline

 

#18 2007-11-04 5:34:39 am

o2smartphone
Senior Member
Registered: 2007-10-28
Posts: 569

Re: Can't change permissions on SD card

Sorry, I can confirm now Qatz may be right.

Even if you use root to change the permisson, it reverse back to 666 after you leave.


windows or linux, who cares !  I just want to use eeePC My Way

Offline

 

#19 2007-11-04 8:14:18 am

arcaneman
Member
Registered: 2007-11-01
Posts: 15

Re: Can't change permissions on SD card

You can't execute binaries on the external SD card.  It is automounted with the noexec option.

You can see this by typing:
cat /proc/mounts

Offline

 

#20 2007-11-04 9:34:45 am

o2smartphone
Senior Member
Registered: 2007-10-28
Posts: 569

Re: Can't change permissions on SD card

arcaneman wrote:

You can't execute binaries on the external SD card.  It is automounted with the noexec option.

You can see this by typing:
cat /proc/mounts

so can we change that to exec ?


windows or linux, who cares !  I just want to use eeePC My Way

Offline

 

#21 2007-11-04 10:10:50 am

arcaneman
Member
Registered: 2007-11-01
Posts: 15

Re: Can't change permissions on SD card

The only way I can think of to change the noexec option right now is to unmount and remount.  I guess you can write a shell script to do this to save time.  If anyone knows where to reconfigure the automounter you might be able to change it there.

Offline

 

#22 2007-11-04 11:25:50 pm

Damaniel
Member
Registered: 2007-10-29
Posts: 23

Re: Can't change permissions on SD card

There's a file in /sbin called probedevice which sets up the options for mounting different filesystems.  The 'FAT' and 'msdos' filesystem types are configured with 'noexec' (which turns off the ability to run programs from the filesystem), and a fmask of '111' (which doesn't permit the changing of the execute bit even if the 'noexec' option isn't present). 

On lines 43 and 44 of the file, if you change the 2 'noexec' options to 'exec', and change the value of fmask from '111' to '0', save and reboot, then you'll be able to execute programs from the SD card (and probably USB memory devices too).

EDIT:  You'll need to do this as root, normal users don't have permission to modify this file.

Last edited by Damaniel (2007-11-04 11:27:16 pm)

Offline

 

#23 2007-11-05 12:23:26 am

o2smartphone
Senior Member
Registered: 2007-10-28
Posts: 569

Re: Can't change permissions on SD card

Damaniel wrote:

There's a file in /sbin called probedevice which sets up the options for mounting different filesystems.  The 'FAT' and 'msdos' filesystem types are configured with 'noexec' (which turns off the ability to run programs from the filesystem), and a fmask of '111' (which doesn't permit the changing of the execute bit even if the 'noexec' option isn't present). 

On lines 43 and 44 of the file, if you change the 2 'noexec' options to 'exec', and change the value of fmask from '111' to '0', save and reboot, then you'll be able to execute programs from the SD card (and probably USB memory devices too).

EDIT:  You'll need to do this as root, normal users don't have permission to modify this file.

You are the One !


windows or linux, who cares !  I just want to use eeePC My Way

Offline

 

#24 2007-11-05 9:22:58 am

arcaneman
Member
Registered: 2007-11-01
Posts: 15

Re: Can't change permissions on SD card

Thanks for the info damaniel.  I was looking for that file.

Offline

 

#25 2007-11-05 4:41:04 pm

elwood
Member
From: Germany
Registered: 2007-11-02
Posts: 31

Re: Can't change permissions on SD card

I have a similar problem. Somehow all my folders, files on my sd card are root only now even though that wasn`t the case yesterday. I tried to change the permission back to user, but all I get is this:

http://img135.imageshack.us/img135/9193/snapshot5dz6.jpg

If everything else fails I don`t mind formating, but someone will have to tell me how to go about it please.

Offline

 

Board footer

Powered by PunBB 1.2.15
© Copyright 2002–2005 Rickard Andersson