Re: [gentoo-user] usb stick files read only

2012-07-14 Thread Alan McKinnon
On Fri, 13 Jul 2012 19:17:14 -0600
Joseph syscon...@gmail.com wrote:

 I've a usbstick formated with ext2 file system and must have use it
 on a different computer because when mount the usb stick I get file
 ownership: -rw-r--r-- 1 test   users 692926 Jan  7  2012
 asterisk_1_4_39.tar.gz -rw-r--r-- 1 test   users   8502 Jul 21
 2011 asterisk-help.txt -rw-r--r-- 1 joseph  1000  22696 Mar 26
 18:27 asus_10-0-0-1_shaw_nvrambak.bin -rw-r--r-- 1 joseph  1000
 22459 Mar 26 16:16 asus_home_10-10-0-1.nvrambak.bin
 
 The ownership should be joseph:users but when I try to change (as
 root) it I get : Read-only file system chown -R
 joseph:users /media/stick/* chown: changing ownership of
 `/media/stick/asterisk_1_4_39.tar.gz': Read-only file system chown:
 changing ownership of `/media/stick/asterisk-help.txt': Read-only
 file system
 
 How to deal with it?
 I the past changing the ownership always worked from root.

The error clearly tells you the file-system is read-only. It does not
say permission denied.

Fix the read-only aspect first



-- 
Alan McKinnnon
alan.mckin...@gmail.com




[gentoo-user] usb stick files read only

2012-07-13 Thread Joseph

I've a usbstick formated with ext2 file system and must have use it on a 
different computer because when mount the usb stick I get file ownership:
-rw-r--r-- 1 test   users 692926 Jan  7  2012 asterisk_1_4_39.tar.gz
-rw-r--r-- 1 test   users   8502 Jul 21  2011 asterisk-help.txt
-rw-r--r-- 1 joseph  1000  22696 Mar 26 18:27 
asus_10-0-0-1_shaw_nvrambak.bin
-rw-r--r-- 1 joseph  1000  22459 Mar 26 16:16 
asus_home_10-10-0-1.nvrambak.bin

The ownership should be joseph:users but when I try to change (as root) it I 
get : Read-only file system
chown -R joseph:users /media/stick/*
chown: changing ownership of `/media/stick/asterisk_1_4_39.tar.gz': Read-only 
file system
chown: changing ownership of `/media/stick/asterisk-help.txt': Read-only file 
system

How to deal with it?
I the past changing the ownership always worked from root.

--
Joseph



Re: [gentoo-user] usb stick files read only

2012-07-13 Thread Nilesh Govindrajan
On Jul 14, 2012 6:48 AM, Joseph syscon...@gmail.com wrote:

 I've a usbstick formated with ext2 file system and must have use it on a
different computer because when mount the usb stick I get file ownership:
 -rw-r--r-- 1 test   users 692926 Jan  7  2012 asterisk_1_4_39.tar.gz
 -rw-r--r-- 1 test   users   8502 Jul 21  2011 asterisk-help.txt
 -rw-r--r-- 1 joseph  1000  22696 Mar 26 18:27
asus_10-0-0-1_shaw_nvrambak.bin
 -rw-r--r-- 1 joseph  1000  22459 Mar 26 16:16
asus_home_10-10-0-1.nvrambak.bin

 The ownership should be joseph:users but when I try to change (as root)
it I get : Read-only file system
 chown -R joseph:users /media/stick/*
 chown: changing ownership of `/media/stick/asterisk_1_4_39.tar.gz':
Read-only file system
 chown: changing ownership of `/media/stick/asterisk-help.txt': Read-only
file system

 How to deal with it?
 I the past changing the ownership always worked from root.

 --
 Joseph


The file system probably has errors. See dmesg. Also, run fsck -vfy
/dev/usbdev (replace usbdev with sdc or whatever).

That should fix the problem.


Re: [gentoo-user] usb stick files read only

2012-07-13 Thread Walter Dnes
On Fri, Jul 13, 2012 at 07:17:14PM -0600, Joseph wrote

 How to deal with it?
 I the past changing the ownership always worked from root.

  If the mount process detects a problem, it'll set the filesystem as
readonly.  You'll have to back up the data from the stick, repartition
and reformat the stick, and then restore the data.  There's no guarantee
that the data will be 100% correct.

  Try the following...

open a terminal; su to root; execute the command...
tail -f /var/log/messages

insert the USB stick.  Do you see any mention of filesystem panic in the
output?

-- 
Walter Dnes waltd...@waltdnes.org



Re: [gentoo-user] usb stick files read only

2012-07-13 Thread Joseph

On 07/14/12 00:10, Walter Dnes wrote:

On Fri, Jul 13, 2012 at 07:17:14PM -0600, Joseph wrote


How to deal with it?
I the past changing the ownership always worked from root.


 If the mount process detects a problem, it'll set the filesystem as
readonly.  You'll have to back up the data from the stick, repartition
and reformat the stick, and then restore the data.  There's no guarantee
that the data will be 100% correct.

 Try the following...

open a terminal; su to root; execute the command...
tail -f /var/log/messages

insert the USB stick.  Do you see any mention of filesystem panic in the
output?

--
Walter Dnes waltd...@waltdnes.org


It could be that the USB reader problem, it was giving me problem for some time 
and not fall apart :-/
Will get a new one tomorrow and try it.

--
Joseph