LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-06-2008, 07:30 PM   #31
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled

Code:
 # mke2fs -n /dev/sdb1
mke2fs 1.40.6 (09-Feb-2008)
Warning: 256-byte inodes not usable on older systems
warning: 389 blocks unused.

Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
279072 inodes, 1114112 blocks
55725 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1140850688
34 block groups
32768 blocks per group, 32768 fragments per group
8208 inodes per group
Superblock backups stored on blocks: 
        32768, 98304, 163840, 229376, 294912, 819200, 884736
See, those in bold are superblock backups.

e2fsck -b 98304 /dev/sdb1

This command would use an alternative superblock at block 98304.
 
Old 03-06-2008, 07:46 PM   #32
babag
Member
 
Registered: Aug 2003
Posts: 368

Original Poster
Rep: Reputation: 30
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
456064 inodes, 911680 blocks
45584 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=935329792
28 block groups
32768 blocks per group, 32768 fragments per group
16288 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736



hope i typed all this right
 
Old 03-06-2008, 07:59 PM   #33
babag
Member
 
Registered: Aug 2003
Posts: 368

Original Poster
Rep: Reputation: 30
trying e2fsck -b <superblock number> /dev/hda1 produces this error:


The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:

e2fsck -b 8193 <device>




tried this with each of these superblocks listed by the mke2fs -n /dev/hda1
command. same error each time.
 
Old 03-06-2008, 08:00 PM   #34
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
Verify the block size:

tune2fs -l /dev/hda1

Last edited by Emerson; 03-06-2008 at 08:01 PM.
 
Old 03-06-2008, 08:05 PM   #35
babag
Member
 
Registered: Aug 2003
Posts: 368

Original Poster
Rep: Reputation: 30
says:

Block size: 4096
 
Old 03-06-2008, 08:09 PM   #36
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
Too bad
Don't know what's wrong, hopefully somebody else will chime in ...
 
Old 03-06-2008, 08:16 PM   #37
babag
Member
 
Registered: Aug 2003
Posts: 368

Original Poster
Rep: Reputation: 30
end of this line, eh? bummer.

thanks for all your help.

BabaG
 
Old 03-06-2008, 08:45 PM   #38
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
Um, one more attempt to discover valid superblock backups:

dumpe2fs /dev/hda1 | grep Backup
 
Old 03-08-2008, 07:05 PM   #39
babag
Member
 
Registered: Aug 2003
Posts: 368

Original Poster
Rep: Reputation: 30
finally got things to work. gave up on partimage, though.
i suspect i could have gotten it to work with some of the
steps i found but by the time i found them i'd moved on to
another methodology.

i used cp to copy everything from each partition, then used
the mandriva install cd to reinstall the boot loader. then
i used mv to rename the user home folder to a new name.

using systemrescue cd i first partitioned the clone drive
to match the original, then formatted these new partitions.
then i mounted the original drive as hda and the clone to
hdb (systemrescuecd calls the drives sda and sdb):

mkdir /mnt/hda
mkdir /mnt/hdb

mount /dev/sda1 /mnt/hda
mount /dev/sdb1 /mnt/hdb


navigate to the original sda1 partition:

cd /mnt/hda


then i copied the partition:

cp -dpRx . /mnt/hdb


then i repeated the process for hda6, my home partition.
this was necessary to get kde working.

then i used the mandriva installation cd to reinstall
grub. this was done just by rebooting with the install
cd in the cd drive and selecting 'rescue system' at the
first screen that pops up. then 'reinstall boot loader.'

reboot with mandriva cd
select 'rescue system'
select 'reinstall boot loader.'


thanks to everyone who helped, particularly emerson, who
put in a lot of thought and time. while this method worked,
i suspect that the original symptom, the flashing 'grub'
line might imply that, had i found it sooner, the grub
reinstall from the mandriva disc might have solved the
issue considerably earlier and allowed me to use the image
from partimage. if i do this again, might try that.

thanks again and hope this helps someone else,
BabaG
 
  


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
Partimage Backup FredGSanford Linux - Software 3 01-02-2008 01:08 AM
Using partimage to backup HD? JockVSJock Linux - Software 1 02-26-2006 06:52 PM
Speed up partimage backup Swift&Smart Slackware 12 11-11-2005 08:32 AM
Partimage backup questions jrdioko Linux - Newbie 11 09-24-2004 05:22 PM
Using partimage with network backup Swift&Smart Linux - Software 2 06-20-2003 12:42 AM


All times are GMT -5. The time now is 10:31 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