|
2011-01-04
, 11:20
|
Posts: 840 |
Thanked: 823 times |
Joined on Nov 2009
|
#2
|
The Following 6 Users Say Thank You to Cue For This Useful Post: | ||
|
2011-01-04
, 11:24
|
|
Posts: 73 |
Thanked: 24 times |
Joined on Jan 2010
@ Paris
|
#3
|
|
2011-01-04
, 11:46
|
Posts: 1,048 |
Thanked: 1,127 times |
Joined on Jan 2010
@ Amsterdam
|
#4
|
|
2011-01-04
, 12:13
|
Posts: 244 |
Thanked: 354 times |
Joined on Jul 2010
@ Scotland
|
#5
|
~ $ grep MyDocs /etc/fstab /dev/mmcblk0p1 /home/user/MyDocs vfat noauto,nodev,noexec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0133,rodir 0 0 ~ $
The Following 3 Users Say Thank You to gregoranderson For This Useful Post: | ||
|
2011-01-04
, 12:15
|
Posts: 244 |
Thanked: 354 times |
Joined on Jul 2010
@ Scotland
|
#6
|
Actually you can chmod files on the MyDocs partition, unless I am misunderstanding your problem. But every time I run into the problem you describe, I have to do a filesystemcheck because the superblock got corrupted, one way or another.
So, when I run into that problem, I unmount the MyDocs partition, fsck -a the now unmounted partition and remount after that.
|
2011-01-04
, 12:30
|
Posts: 1,048 |
Thanked: 1,127 times |
Joined on Jan 2010
@ Amsterdam
|
#7
|
Are you subsequently mounting with defaults rather than the directives from fstab?
sudo gainroot umount /home/user/MyDocs fsck -a /dev/mmcblk0p1 mount /home/user/MyDocs
The Following User Says Thank You to anthonie For This Useful Post: | ||
|
2011-01-04
, 13:16
|
Posts: 244 |
Thanked: 354 times |
Joined on Jul 2010
@ Scotland
|
#8
|
Nokia-N900:~# dd if=/dev/zero of=/media/mmc1/bigbin bs=1024 count=512000 512000+0 records in 512000+0 records out Nokia-N900:~# ls -l /media/mmc1/ drwxrwxrwx 2 user root 24576 Dec 31 23:30 DCIM drwxrwxrwx 41 user root 4096 Nov 20 23:02 Music drwxrwxrwx 2 user root 4096 Dec 31 16:47 Video -rw-r--r-- 1 user root 524288000 Jan 4 13:01 bigbin
Nokia-N900:~# mkfs.ext3 /media/mmc1/bigbin mke2fs 1.41.3.maemo0 (12-Oct-2008) /media/mmc1/bigbin is not a block special device. Proceed anyway? (y,n) y Filesystem label= OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) 128016 inodes, 512000 blocks 25600 blocks (5.00%) reserved for the super user First data block=1 Maximum filesystem blocks=67633152 63 block groups 8192 blocks per group, 8192 fragments per group 2032 inodes per group Superblock backups stored on blocks: 8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409 Writing inode tables: done Creating journal (8192 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 38 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. Nokia-N900:~#
Nokia-N900:~# mkdir /home/user/bin Nokia-N900:~# chown user:users /home/user/bin
Nokia-N900:~# mount -o loop /media/mmc1/bigbin /home/user/bin
Nokia-N900:~# su - user BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash) Enter 'help' for a list of built-in commands. ~ $ echo "date" > bin/test.sh ; chmod u+x bin/test.sh
~ $ PATH=$PATH:/home/user/bin ~ $ test.sh Tue Jan 4 13:03:50 GMT 2011
The Following User Says Thank You to gregoranderson For This Useful Post: | ||
|
2011-01-04
, 13:39
|
Posts: 1,048 |
Thanked: 1,127 times |
Joined on Jan 2010
@ Amsterdam
|
#9
|
Consider this :
~/MyDocs/.documents $ ls -la myfile
-rw-r--r-- 1 user root 579498 Jan 6 02:14 myfile
~/MyDocs/.documents $ chmod 755 myfile
~/MyDocs/.documents $ ls -la myfile
-rw-r--r-- 1 user root 579498 Jan 6 02:14 myfile
Why is the file still non-executable ? And why did the shell not issue some kind of error ? I tried to
~/MyDocs/.documents $ sudo chmod 755 myfile
But that w/ the exact same result : Job not done and no error.
When I issue a "which chmod" I get a reassuring
/bin/chmod...
I'm obviously missing something, a week ago I tried to create a simple symlink but to no avail...
Please point me in the right direction, as for now I can't do much w/ the shell