LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 03-21-2009, 09:24 AM   #1
abefroman
Senior Member
 
Registered: Feb 2004
Location: Chicago
Distribution: CentOS
Posts: 1,263

Rep: Reputation: 53
Is there a way to manually create a file system error? So the disk will prompt you t


Is there a way to manually create a file system error? So the disk will prompt you to go into maintenance mode upon rebooting?
 
Old 03-21-2009, 09:55 AM   #2
clvic
Member
 
Registered: Feb 2008
Location: Rome, Italy
Distribution: OpenSuSE 11.x, vectorlinux, slax, Sabayon
Posts: 206
Blog Entries: 2

Rep: Reputation: 44
You can use tune2fs on ext3 to cause the disk to be checked at the next boot, using the option -C for instance to cheat and tell the system that the FS has been mounted too many times... still, this should not cause the system to go to maintenance mode.
If you want that, you can try to change the file /etc/fstab (a bit dangerous if you're not experienced in using it).
Change the filesystem type of the partition you want to fail, (I suppose /), and change from its real filesystem (e.g. ext3) to a wrong one (e.g. vfat). This should do the trick.
To repair the problem, you will need a livecd or something like this, maybe the maintenance mode won't allow you to repair. Be careful!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't create folder in file system using file browser aarav2306 Linux - Newbie 5 03-03-2009 01:36 AM
System collapse without kernel panic when copy file to a sata-disk or usb-disk JammyWei Linux - Embedded & Single-board computer 0 12-25-2008 08:21 PM
Disk Error in Raid array file system inode tables. jpbland51 Linux - Newbie 6 05-21-2008 06:27 AM
no login prompt - suse 9.3 x64: installation disk to boot into installed system? shshjun Suse/Novell 2 02-17-2006 11:00 PM
Large tar file taking huge disk space in ext3 file system pcwulf Linux - General 2 10-20-2003 07:45 AM


All times are GMT -5. The time now is 04:55 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration