Re: [Skunkworks] Read-Only Filesystem on Linux

Most definitely a disk failure, best option is to replace it FAST!
In my experience, that is always the cause. Check the kernel logs. And don't reboot until you are ready to replace it, when it goes down, its not going to be coming up again so you will have a more serious outage William
On 20 July 2012 12:02, Brian Ngure <brian@pixie.co.ke> wrote:
Do a disk check. The drive may be failing.
On Fri, Jul 20, 2012 at 11:44 AM, Moses Muya <mouzmuyer@gmail.com> wrote:
Can't do that right now, it's a production server and the read-only file system is only affecting 3 users.
On 20 July 2012 11:38, Arthur Buliva <arthurbuliva@hotmail.com> wrote:
Reboot the machine
--
Sent from my Casio FX-350HB Calculator
________________________________ From: mouzmuyer@gmail.com Date: Fri, 20 Jul 2012 11:28:25 +0300 To: skunkworks@my.co.ke; skunkworks@lists.my.co.ke Subject: [Skunkworks] Read-Only Filesystem on Linux
Good People(and Bad ones as well),
I got a read-only file system error on one of my hardisks on a Linux box and quickly switched to root and did 'mount -o remount,rw /where/i/wanted/it/to/be/mounted/ ' but I keep getting the error 'mount: block device /dev/sdb2 is write-protected, mounting read-only' .
I have also tried to unmount it so that I mount it afresh, i.e 'umount /where/it/was/mounted/ but I get the error 'umount: /where/it/was/mounted/: device is busy' ! Is there something i'm missing here?
-- Kind Regards,
Moses Muya.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Kind Regards,
Moses Muya.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Regards
Brian Ngure
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- ??????????????????????? Regards, David Njuki @njukey [Google,Twitter,Yahoo]
------------------------------
Message: 4 Date: Fri, 20 Jul 2012 17:08:21 +0300 From: David Njuki <njukey@gmail.com> To: Skunkworks Mailing List <skunkworks@lists.my.co.ke> Cc: skunkworks@my.co.ke Subject: Re: [Skunkworks] Read-Only Filesystem on Linux Message-ID: <CAHM9YQoL=RQ-eDCAgrAbRU9p1TnZ2YQAMuO0RkGTtN3cGkMbYQ@mail.gmail.com> Content-Type: text/plain; charset=UTF-8
Most definitely a disk failure, best option is to replace it FAST!
On 20 July 2012 12:02, Brian Ngure <brian@pixie.co.ke> wrote:
Do a disk check. The drive may be failing.
On Fri, Jul 20, 2012 at 11:44 AM, Moses Muya <mouzmuyer@gmail.com> wrote:
Can't do that right now, it's a production server and the read-only file system is only affecting 3 users.
On 20 July 2012 11:38, Arthur Buliva <arthurbuliva@hotmail.com> wrote:
Reboot the machine
--
Sent from my Casio FX-350HB Calculator
________________________________ From: mouzmuyer@gmail.com Date: Fri, 20 Jul 2012 11:28:25 +0300 To: skunkworks@my.co.ke; skunkworks@lists.my.co.ke Subject: [Skunkworks] Read-Only Filesystem on Linux
Good People(and Bad ones as well),
I got a read-only file system error on one of my hardisks on a Linux box and quickly switched to root and did 'mount -o remount,rw /where/i/wanted/it/to/be/mounted/ ' but I keep getting the error 'mount: block device /dev/sdb2 is write-protected, mounting read-only' .
I have also tried to unmount it so that I mount it afresh, i.e 'umount /where/it/was/mounted/ but I get the error 'umount: /where/it/was/mounted/: device is busy' ! Is there something i'm missing here?
-- Kind Regards,
Moses Muya.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Kind Regards,
Moses Muya.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Regards
Brian Ngure
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- ??????????????????????? Regards, David Njuki @njukey [Google,Twitter,Yahoo]
------------------------------
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
End of Skunkworks Digest, Vol 29, Issue 190 *******************************************

Failing drive???.......LOL Fellas, lets not be quick to judge @Muya. Hoping you haven't gotten rid of your drive already..... Mount supplements the args/params you give with those set in */etc/fstab* The args that "fscks" up users ability to do RW opps are "*dmask*" and "* fmask*" and most importantly "*umask*" not being set to "*000*". Therefore nano (or vi) your fstab like so:- *nano /etc/fstab* * * Find the line that corresponds to your drive, it may start with /dev/sdb2 or the drive's UUID Then depending on what you see in the options collumn,... get rid of "*dmask = XXX"* & "*fmask = XXX"* parrams (if they are there) and add "*umask=000*" - OR - change "*umask = XXX*" to "*umask=000*" when done, just "*umount /dev/sda && mount /dev/sda*" without parrams and voila! * * _______________________________________________ *The value of a prototype is in the education it gives you, * *not in the code it's made of. ** * _______________________________________________ * * 2012/7/20 William Muriithi <william.muriithi@gmail.com>
Most definitely a disk failure, best option is to replace it FAST!
In my experience, that is always the cause. Check the kernel logs. And don't reboot until you are ready to replace it, when it goes down, its not going to be coming up again so you will have a more serious outage
William
On 20 July 2012 12:02, Brian Ngure <brian@pixie.co.ke> wrote:
Do a disk check. The drive may be failing.
On Fri, Jul 20, 2012 at 11:44 AM, Moses Muya <mouzmuyer@gmail.com> wrote:
Can't do that right now, it's a production server and the read-only
file
system is only affecting 3 users.
On 20 July 2012 11:38, Arthur Buliva <arthurbuliva@hotmail.com> wrote:
Reboot the machine
--
Sent from my Casio FX-350HB Calculator
________________________________ From: mouzmuyer@gmail.com Date: Fri, 20 Jul 2012 11:28:25 +0300 To: skunkworks@my.co.ke; skunkworks@lists.my.co.ke Subject: [Skunkworks] Read-Only Filesystem on Linux
Good People(and Bad ones as well),
I got a read-only file system error on one of my hardisks on a Linux
box
and quickly switched to root and did 'mount -o remount,rw /where/i/wanted/it/to/be/mounted/ ' but I keep getting the error 'mount: block device /dev/sdb2 is write-protected, mounting read-only' .
I have also tried to unmount it so that I mount it afresh, i.e 'umount /where/it/was/mounted/ but I get the error 'umount: /where/it/was/mounted/: device is busy' ! Is there something i'm missing here?
-- Kind Regards,
Moses Muya.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Kind Regards,
Moses Muya.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Regards
Brian Ngure
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- ??????????????????????? Regards, David Njuki @njukey [Google,Twitter,Yahoo]
------------------------------
Message: 4 Date: Fri, 20 Jul 2012 17:08:21 +0300 From: David Njuki <njukey@gmail.com> To: Skunkworks Mailing List <skunkworks@lists.my.co.ke> Cc: skunkworks@my.co.ke Subject: Re: [Skunkworks] Read-Only Filesystem on Linux Message-ID: <CAHM9YQoL= RQ-eDCAgrAbRU9p1TnZ2YQAMuO0RkGTtN3cGkMbYQ@mail.gmail.com> Content-Type: text/plain; charset=UTF-8
Most definitely a disk failure, best option is to replace it FAST!
On 20 July 2012 12:02, Brian Ngure <brian@pixie.co.ke> wrote:
Do a disk check. The drive may be failing.
On Fri, Jul 20, 2012 at 11:44 AM, Moses Muya <mouzmuyer@gmail.com> wrote:
Can't do that right now, it's a production server and the read-only
file
system is only affecting 3 users.
On 20 July 2012 11:38, Arthur Buliva <arthurbuliva@hotmail.com> wrote:
Reboot the machine
--
Sent from my Casio FX-350HB Calculator
________________________________ From: mouzmuyer@gmail.com Date: Fri, 20 Jul 2012 11:28:25 +0300 To: skunkworks@my.co.ke; skunkworks@lists.my.co.ke Subject: [Skunkworks] Read-Only Filesystem on Linux
Good People(and Bad ones as well),
I got a read-only file system error on one of my hardisks on a Linux
box
and quickly switched to root and did 'mount -o remount,rw /where/i/wanted/it/to/be/mounted/ ' but I keep getting the error 'mount: block device /dev/sdb2 is write-protected, mounting read-only' .
I have also tried to unmount it so that I mount it afresh, i.e 'umount /where/it/was/mounted/ but I get the error 'umount: /where/it/was/mounted/: device is busy' ! Is there something i'm missing here?
-- Kind Regards,
Moses Muya.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Kind Regards,
Moses Muya.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Regards
Brian Ngure
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- ??????????????????????? Regards, David Njuki @njukey [Google,Twitter,Yahoo]
------------------------------
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1f...
------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
End of Skunkworks Digest, Vol 29, Issue 190 *******************************************
Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
participants (2)
-
James Nzomo
-
William Muriithi