* [gentoo-user] usb stick files read only
@ 2012-07-14 1:17 Joseph
2012-07-14 1:44 ` Nilesh Govindrajan
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Joseph @ 2012-07-14 1:17 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] usb stick files read only
2012-07-14 1:17 [gentoo-user] usb stick files read only Joseph
@ 2012-07-14 1:44 ` Nilesh Govindrajan
2012-07-14 4:10 ` Walter Dnes
2012-07-14 15:46 ` Alan McKinnon
2 siblings, 0 replies; 5+ messages in thread
From: Nilesh Govindrajan @ 2012-07-14 1:44 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1109 bytes --]
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.
[-- Attachment #2: Type: text/html, Size: 1370 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] usb stick files read only
2012-07-14 1:17 [gentoo-user] usb stick files read only Joseph
2012-07-14 1:44 ` Nilesh Govindrajan
@ 2012-07-14 4:10 ` Walter Dnes
2012-07-14 4:43 ` Joseph
2012-07-14 15:46 ` Alan McKinnon
2 siblings, 1 reply; 5+ messages in thread
From: Walter Dnes @ 2012-07-14 4:10 UTC (permalink / raw
To: gentoo-user
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>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] usb stick files read only
2012-07-14 4:10 ` Walter Dnes
@ 2012-07-14 4:43 ` Joseph
0 siblings, 0 replies; 5+ messages in thread
From: Joseph @ 2012-07-14 4:43 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] usb stick files read only
2012-07-14 1:17 [gentoo-user] usb stick files read only Joseph
2012-07-14 1:44 ` Nilesh Govindrajan
2012-07-14 4:10 ` Walter Dnes
@ 2012-07-14 15:46 ` Alan McKinnon
2 siblings, 0 replies; 5+ messages in thread
From: Alan McKinnon @ 2012-07-14 15:46 UTC (permalink / raw
To: gentoo-user; +Cc: syscon780
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-07-14 15:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-14 1:17 [gentoo-user] usb stick files read only Joseph
2012-07-14 1:44 ` Nilesh Govindrajan
2012-07-14 4:10 ` Walter Dnes
2012-07-14 4:43 ` Joseph
2012-07-14 15:46 ` Alan McKinnon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox