Read-only file system after power outage and reboot

  • Follow


Hi,

There was a power outage and I had to restart my solaris machine: 
SunOS mymachine 5.7 Generic_106541-18 sun4u sparc SUNW,Ultra-5_10

Now whan I attempt to make any write on the /usr drive I get the
following type of message:
cp: cannot create ../mc3.tar: Read-only file system

Here is the line in my vfstab file:
/dev/dsk/c0t0d0s7       /dev/rdsk/c0t0d0s7      /usr    ufs     1     
 no      -

Here is the corresponding line in the mnttab file:
/dev/dsk/c0t0d0s7       /usr    ufs     ro,suid,dev=2200007,largefiles
 1112694631

Any ideas on this one.
Enda
0
Reply keepyourstupidspam 4/5/2005 10:13:59 AM

Enda Mannioooo napisa�(a):
> Hi,
> 
> There was a power outage and I had to restart my solaris machine: 
> SunOS mymachine 5.7 Generic_106541-18 sun4u sparc SUNW,Ultra-5_10
> 
> Now whan I attempt to make any write on the /usr drive I get the
> following type of message:
> cp: cannot create ../mc3.tar: Read-only file system
> 
> Here is the line in my vfstab file:
> /dev/dsk/c0t0d0s7       /dev/rdsk/c0t0d0s7      /usr    ufs     1     
>  no      -
> 
> Here is the corresponding line in the mnttab file:
> /dev/dsk/c0t0d0s7       /usr    ufs     ro,suid,dev=2200007,largefiles
>  1112694631
> 
> Any ideas on this one.
> Enda

change:
/dev/dsk/c0t0d0s7       /usr    ufs RW,suid,dev=2200007,largefiles 
1112694631
reboot now.

ro says read-only filesystem

-- 
d.
0
Reply d 4/5/2005 10:46:18 AM


Enda Mannioooo napisa�(a):
> Hi,
> 
> There was a power outage and I had to restart my solaris machine: 
> SunOS mymachine 5.7 Generic_106541-18 sun4u sparc SUNW,Ultra-5_10
> 
> Now whan I attempt to make any write on the /usr drive I get the
> following type of message:
> cp: cannot create ../mc3.tar: Read-only file system
> 
> Here is the line in my vfstab file:
> /dev/dsk/c0t0d0s7       /dev/rdsk/c0t0d0s7      /usr    ufs     1     
>  no      -
> 
> Here is the corresponding line in the mnttab file:
> /dev/dsk/c0t0d0s7       /usr    ufs     ro,suid,dev=2200007,largefiles
>  1112694631
> 
> Any ideas on this one.
> Enda
and the "no" in vfstab line says "no mount in boot time"
man vfstab
man mount
-- 
d.
0
Reply d 4/5/2005 10:50:03 AM

Enda Mannioooo wrote:

> There was a power outage and I had to restart my solaris machine: 
> SunOS mymachine 5.7 Generic_106541-18 sun4u sparc SUNW,Ultra-5_10
> 
> Now whan I attempt to make any write on the /usr drive I get the
> following type of message:
> cp: cannot create ../mc3.tar: Read-only file system

The filesystem might have been corrupted.  Try to "fsck" and remount "rw"

> Here is the line in my vfstab file:
> /dev/dsk/c0t0d0s7       /dev/rdsk/c0t0d0s7      /usr    ufs     1     
>  no      -

You might want to add "logging" to the mount options (man mount_ufs).
You might have to patch up the system first (I think "logging" was added
in a kernel patch of SunOS 5.7).  Apply the latest Recommended Patch Cluster
0
Reply Oscar 4/5/2005 12:17:14 PM

d. wrote:

>> Here is the corresponding line in the mnttab file:
>> /dev/dsk/c0t0d0s7       /usr    ufs     ro,suid,dev=2200007,largefiles
>>  1112694631

> change:
> /dev/dsk/c0t0d0s7       /usr    ufs RW,suid,dev=2200007,largefiles 
> 1112694631

do not edit mnttab
0
Reply Oscar 4/5/2005 12:18:22 PM

d. wrote:

> and the "no" in vfstab line says "no mount in boot time"

Which is correct for / and /usr - do not change it
0
Reply Oscar 4/5/2005 12:19:04 PM

d.

your rtfm suggestion did not work, I had exhausted that particular
avenue already.

What fixed my problem was running the following command during startup
console mode (or whatever its called).
fsck -F ufs /dev/rdsk/c0t0d0s7

Thanks all for help and suggestions.

em

0
Reply keepyourstupidspam 4/5/2005 12:41:02 PM

Oscar del Rio napisa�(a):
> Enda Mannioooo wrote:
> 
>> There was a power outage and I had to restart my solaris machine: 
>> SunOS mymachine 5.7 Generic_106541-18 sun4u sparc SUNW,Ultra-5_10
>>
>> Now whan I attempt to make any write on the /usr drive I get the
>> following type of message:
>> cp: cannot create ../mc3.tar: Read-only file system
> 
> 
> The filesystem might have been corrupted.  Try to "fsck" and remount "rw"
> 
>> Here is the line in my vfstab file:
>> /dev/dsk/c0t0d0s7       /dev/rdsk/c0t0d0s7      /usr    ufs     1     
>>  no      -
> 
> 
> You might want to add "logging" to the mount options (man mount_ufs).
> You might have to patch up the system first (I think "logging" was added
> in a kernel patch of SunOS 5.7).  Apply the latest Recommended Patch 
> Cluster
you were right i was wrong.
as always I do sth too fast
-- 
d.
0
Reply d 4/6/2005 5:47:07 AM

7 Replies
253 Views

(page loaded in 0.686 seconds)

Similiar Articles:













7/15/2012 4:02:37 AM


Reply: