FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 07-14-2012, 01:44 AM
Nilesh Govindrajan
 
Default usb stick files read only

On Jul 14, 2012 6:48 AM, "Joseph" <syscon780@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.
 
Old 07-14-2012, 04:10 AM
"Walter Dnes"
 
Default usb stick files read only

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 <waltdnes@waltdnes.org>
 
Old 07-14-2012, 04:43 AM
Joseph
 
Default usb stick files read only

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 <waltdnes@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
 
Old 07-14-2012, 03:46 PM
Alan McKinnon
 
Default usb stick files read only

On Fri, 13 Jul 2012 19:17:14 -0600
Joseph <syscon780@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.mckinnon@gmail.com
 

Thread Tools




All times are GMT. The time now is 07:05 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org