Jump to content


Can't change permissions on SD card


91 replies to this topic

#1 PickleHead

    Advanced Member

  • Members
  • PipPipPip
  • 39 posts

Posted 01 November 2007 - 12:43 PM

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.

#2 Qatz

    Senior Member

  • Members
  • 212 posts
  • LocationIn your hair.

Posted 01 November 2007 - 01:39 PM

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

#3 o2smartphone

    Senior Member

  • Members
  • 569 posts

Posted 01 November 2007 - 02:53 PM

Quote

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

#4 Qatz

    Senior Member

  • Members
  • 212 posts
  • LocationIn your hair.

Posted 01 November 2007 - 02:55 PM

"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

#5 o2smartphone

    Senior Member

  • Members
  • 569 posts

Posted 01 November 2007 - 02:56 PM

Quote

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

#6 PickleHead

    Advanced Member

  • Members
  • PipPipPip
  • 39 posts

Posted 01 November 2007 - 03:01 PM

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.

#7 o2smartphone

    Senior Member

  • Members
  • 569 posts

Posted 01 November 2007 - 03:05 PM

Quote

"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)
Posted Image

You can change permission if you are the owner (root)
Posted Image

You can also change the ownership
Posted Image
windows or linux, who cares ! I just want to use eeePC My Way

#8 o2smartphone

    Senior Member

  • Members
  • 569 posts

Posted 01 November 2007 - 03:09 PM

Quote

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

#9 Qatz

    Senior Member

  • Members
  • 212 posts
  • LocationIn your hair.

Posted 01 November 2007 - 03:10 PM

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

#10 o2smartphone

    Senior Member

  • Members
  • 569 posts

Posted 01 November 2007 - 03:17 PM

Hard to imagine that people will format already ready for use SD card to ext2 :)
windows or linux, who cares ! I just want to use eeePC My Way

#11 Qatz

    Senior Member

  • Members
  • 212 posts
  • LocationIn your hair.

Posted 01 November 2007 - 03:19 PM

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

#12 PickleHead

    Advanced Member

  • Members
  • PipPipPip
  • 39 posts

Posted 01 November 2007 - 03:21 PM

Quote

Quote

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

#13 o2smartphone

    Senior Member

  • Members
  • 569 posts

Posted 01 November 2007 - 03:26 PM

Quote

Quote

Quote

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) ?

Edited by o2smartphone, 01 November 2007 - 03:34 PM.

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

#14 PickleHead

    Advanced Member

  • Members
  • PipPipPip
  • 39 posts

Posted 01 November 2007 - 03:32 PM

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.

#15 o2smartphone

    Senior Member

  • Members
  • 569 posts

Posted 01 November 2007 - 03:40 PM

Quote

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

#16 PickleHead

    Advanced Member

  • Members
  • PipPipPip
  • 39 posts

Posted 01 November 2007 - 04:27 PM

Posted Image

#17 PickleHead

    Advanced Member

  • Members
  • PipPipPip
  • 39 posts

Posted 03 November 2007 - 01:50 PM

Bump!

#18 o2smartphone

    Senior Member

  • Members
  • 569 posts

Posted 04 November 2007 - 10:34 AM

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

#19 arcaneman

    Member

  • Members
  • 15 posts

Posted 04 November 2007 - 01:14 PM

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

#20 o2smartphone

    Senior Member

  • Members
  • 569 posts

Posted 04 November 2007 - 02:34 PM

Quote

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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users