LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-25-2012, 03:18 PM   #1
Gr2600
LQ Newbie
 
Registered: Oct 2012
Posts: 15

Rep: Reputation: Disabled
Smile Corrupt filesystem


Hello All,

Nice to finally have an account on this forum

I would like to ask you if you could advice me how to make a filesystem corrupt, for testing purpose. I want to test something on a server that's running ubuntu, fedora and centOS.

Thank you in advance.
 
Old 10-25-2012, 03:20 PM   #2
Gr2600
LQ Newbie
 
Registered: Oct 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
I forgot to say that the fs can be ext3 or 4.
 
Old 10-25-2012, 03:39 PM   #3
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
You can interfare with it's vtoc block or can overwrite it.
 
Old 10-25-2012, 07:49 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
You can use the dd cmd to eg remove/corrupt the partition table
Code:
dd if=/dev/zero of=/dev/sda count=1000
 
1 members found this post helpful.
  


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
How to deal with corrupt filesystem? pinga123 Linux - General 1 02-23-2011 09:20 AM
RAID-1 with one disk causes filesystem to be corrupt? alirezan1 Linux - Newbie 4 02-23-2009 12:23 PM
Crypto filesystem : corrupt or wrong password? iainr Linux - Software 1 10-23-2006 09:15 AM
where has my disk space gone? corrupt filesystem? matticus SUSE / openSUSE 3 09-19-2006 11:06 PM
Unknown or corrupt filesystem Synergetek Linux - Newbie 1 02-03-2003 06:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:30 AM.

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