LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-10-2010, 06:16 AM   #1
thomas.olsen
LQ Newbie
 
Registered: May 2003
Posts: 1

Rep: Reputation: 0
ext2 corruption


Hi,

I have been working on a small distribution, which will be running on a small / almost embedded system. It work as it should, however, I did ones after testing get a ext2 filesystem corruption and the system wouldn't startup as I had everything within the same partition "/dev/sdc1". I have since then split the file system into a read only partition "/dev/sdc1" for the core startup OS and a read-write partition "/dev/sdc2" for the application software, which should allow me to startup and fix the "/dev/sdc2" partition for the application software.

My question is that I'd like to test this and therefore require to somehow corrupt the "dev/sdc2" partition manually. How would I do this. I don't mind having to reformat afterwards and would expect to lose all data.

Hope you can help.

Best Regards

Thomas Olsen
 
Old 02-10-2010, 06:32 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590
Quote:
Originally Posted by thomas.olsen View Post
corrupt the "dev/sdc2" partition manually
Something like 'for ((i=0;i<100;i++)); do dd if=/dev/zero of=/dev/sdc2 count=4k skip=${RANDOM:0:3}; done'? Or just 'dd' the first five or ten megs of /dev/sdc1 onto /dev/sdc2? Or just zero out the first five or ten megs of /dev/sdc2?
 
  


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
[SOLVED] Gain access to ext2 partition without ext2 support in kernel ColInvictus Gentoo 3 10-26-2009 07:57 AM
ext2 vs ext3 on usb-is ext2 better for health of usb? linus72 Linux - Newbie 13 06-10-2009 05:18 AM
Corruption in Fedora 10? Completely Clueless Linux - Security 5 11-30-2008 06:49 AM
EXT2 -fs warning (device sda1): ext2_fill_super:mounting ext3 filesystem as ext2 snakeo2 Linux - Newbie 6 11-19-2006 08:35 PM
http corruption? JoeUser11 Linux - Newbie 2 01-04-2005 10:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:45 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration