Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Does mke2fs -b 1042 -S <device> format the disk?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
inn3rpece
n00b
n00b


Joined: 17 Nov 2007
Posts: 33
Location: the land of the lions

PostPosted: Mon Mar 02, 2009 9:05 pm    Post subject: Does mke2fs -b 1042 -S <device> format the disk? Reply with quote

Hi all,

I've tried using e2fsck -b <block size> <device> to no avail. It can appears as the the primary and backup superblocks have been corrupted. I ran the command mke2fs -b 1042 -S <device> and it's still running ..

Does the command "mke2fs -b 1042 -S <device>" actually format the disk thereby clearing the data?
_________________
I love Gentoo !
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2719
Location: here, there or in transit

PostPosted: Mon Mar 02, 2009 11:14 pm    Post subject: Re: Does mke2fs -b 1042 -S <device> format the disk? Reply with quote

inn3rpece wrote:
Does the command "mke2fs -b 1042 -S <device>" actually format the disk thereby clearing the data?

Doesn't look that way to me:
man mke2fs wrote:
-S
    Write superblock and group descriptors only. This is useful if all of the superblock and backup superblocks are corrupted, and a last-ditch recovery method is desired. It causes mke2fs to reinitialize the superblock and group descriptors, while not touching the inode table and the block and inode bitmaps. The e2fsck program should be run immediately after this option is used, and there is no guarantee that any data will be salvageable. It is critical to specify the correct filesystem blocksize when using this option, or there is no chance of recovery.
How big is the disk? Even this limited work might take a while if we're talking really big....
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum