Force Check Linux File System Under Maintenance Mode

Force Check Linux File System Under Maintenance Mode

One of the server running Backuppc and using USB storage to store the backup and I called it harisbackup. Its has one habit, in a period of a month, it will detect having a file system problem. The file system type is ext2. Before using ext2, I had use ext3, but USB storage keep on detaching itself after a few days. Changing to ext2 resolved the issue.

If you want to used, external storage, USB connecton is not a good option if you want to keep it permanent mounted. Used Firewire or Iscsi and format it with ext2 or reiserfs. ext4 not yet tested. I believe high IO between mounted file system and OS in long period of time like days, the device will disconnect itself.

If you get error messages as per below when rebooting the system. (Im using Linux Centos 5).

----- Start Message -----


harisbackup contains a file system with errors, check forced

harisbackup : | =============== |% (until it finish)

unattached inode 2050

root : UNEXPECTED INCONSISTENCY; run fsck MANUALLY
(i.e. , without -a or -p options)

*** An error occured during the file system check
*** Dropping you to a shell; the system will reboot
*** when you leave the shell.

Give root password for maintenance.
(Or type Control-D for normal startup);

---- End message ----

Keyin your root pasword and issue this command

fsck -p

This will check the hard disk. Time estimation around 45 minutes for 1 tera (1000GB) hard disk.

If the above command fail, need to force check

fsck -f -v

You may be ask with questions, just answer "y".

*** warning *** you may lose or already lost files. Answering "Y" may copy full or partial files to lost+found.

When finish just type exit and system will reboot.

Popular Posts

Labels

64bit Activity Adempire advocate Akta Apache ASAS Azam backup backuppc Bash Beowulf Big Data Broadband Budget Centos Cinta Cluster CMS cmsfornerd Company Complain computer Computer Operation Conference Contest Data Centre Operation DBmail Digg Digital Certification Discussion Group Django DNS Docker Domain Duit Online Economy Elastic Stack Elasticsearch ELK email email server English Evangelist Events Family Tree Fedora File System Firefox Foss FOSS.my FreeBSD FTX Gesaan Gluster Gmail Godaddy.com Google Google App GTUG Hacking Hadoop hafnie Harisfazillah Jamel horde HP-UX hwclock IBM ICT Service Delivery and Operation Indonesia Internet Internet Tools Itanium Jabatan IT Negara Jaring Java Javascript Jepun Jiwang Joke Joomla K3S K3Sup Kernel Kesihatan Kibana KOSTEM Kubernetes ldap Linux Linux Counter linuxmalaysia Logstash Love Mailman MailScanner Mailwatch Malay Malaysia MAMPU MDeC meetup Melaka Melayu Merdeka Microsoft Migration mirror sites Money Online Monitor MOSC 2010 MOSC2010 mosc2011 MOSC2013 MOSCMY MOSCMY2014 MOSCMY2015 Mozilla MPI MSC Malaysia MSC Malaysia OSCONF MSCOSCONF My Love MyGOSSCON MyMeeting Mypenguin99 mysql Nagios NagiosQL Negaraku nss_ldap ntp OBW2014 Open Office Open Source openldap Openoffice.org OpenStack Opera OS2 OS400 OSCC OSCC MAMPU osdc.my OSS OSS Policy OWASP Parallel Computing People Power Personal Petition PGP PHP Pligg Podman Politik Postfix Postgresql Programming Proxmox Python q1moscmy2015 Questionnaires Research Research tools RPM SASSIAN Sassian 85-89 Sassians 85-89 SCO Security Sekolah Sekolah Alam Shah Shell script Software License Solaris SongketMail SongketMailFilter sourceforge spam spamassassin Spoof Survey SVR4 System Tools Technorati Terjemahan Terminal TMnet Tor Training translation Treasury Malaysia Trend Micro Twitter Ubuntu Unix Virtualization VMS VOIP Wang Web Server Windows Zimbra
 

LinuxMalaysia Mastodon