Bug 7504 - Text files inside SD card became read only. Unable to chomd at all.
: Text files inside SD card became read only. Unable to chomd at all.
Status: CLOSED WONTFIX
Product: SB Controller
Classification: Unclassified
Component: Setup
: unspecified
: Other Other
: -- enhancement (vote)
: ---
Assigned To: Unassigned bug - please assign me!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-03-13 11:55 UTC by Wallace Lai
Modified: 2008-03-13 15:49 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wallace Lai 2008-03-13 11:55:33 UTC
Jive FW Version:  7 r2100

Steps to Reproduce:
1.  Have an SD card inside the jive.
2.  Use Putty to conect to Jive's OS.
3.  Create a few txt files inside SD card and write something into them.
4.  Update to 7 r2100.
5.  Perform factory reset on Jive.
6.  Go into SD card again, and try to write something on those text files.
7.  Notice the files are read only -  -rwxr-xr-x.
8.  Try chmod 777 on these files.
9.  Notice the files do not take it.
10.  Try sudo chmod 777.
11.  Notice jive does not know about sudo.
Comment 1 Wallace Lai 2008-03-13 11:57:59 UTC
This user was running tests scripts to wrote to test logs inside the SD card.  Now, those io commands need to be commented out before the scripts can be run.
Comment 2 Wallace Lai 2008-03-13 12:03:06 UTC
Just updated the FW to 7.0.1 r2106.
Still unable to write to those log files.
In fact, unable to create and save a new text file using vi.
Something like:
vi NewFile.txt
Esc, i
Johny Johny
Esc, :, w

Get a warning this is a read only file system.

Just checked.  SD card is not physically locked.
Comment 3 KDF 2008-03-13 14:07:40 UTC
try formatting the sdcard as a workaround.  I've had a few show up as corrupt over time, and I have to reformat.
Comment 4 Wallace Lai 2008-03-13 14:23:35 UTC
These lines are the only ones found concerning SD card during reboot:
Mounting MMC/SD card (partition 1)
Starting syslogd (to mmc)
Enabling core files (to mmc)

These lines are from mount command:
rootfs on / type rootfs (rw)
/dev/root on / type cramfs (ro)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
mdev on /dev type ramfs (rw)
devpts on /dev/pts type devpts (rw)
/dev/mtdblock/2 on /mnt/storage type jffs2 (rw,noatime)
/ on / type mini_fo (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
ramfs on /tmp type ramfs (rw)
ramfs on /var type ramfs (rw)
/dev/mmcblk0p1 on /mnt/mmc type vfat (ro,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1)


These lines are from df command:
# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/mtdblock/2          20216     20216         0 100% /mnt/storage
/                        20216     20216         0 100% /
/dev/mmcblk0p1          994944     13936    981008   1% /mnt/mmc
Comment 5 Wallace Lai 2008-03-13 15:49:02 UTC
Hi, KDF,

Reformatting the SD card works.  Now my script is running while writting to a log file in the SD card.
Thank you very much.  You are very  helpful.

If something like this happens with customer, the work around is easy enough.

Closing this bug.
Comment 6 Wallace Lai 2008-03-13 15:49:27 UTC
Script is still running fine.

Closing.