LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 10-17-2004, 02:24 PM   #1
sephiro499
Member
 
Registered: Sep 2003
Location: Baltimore, MD
Distribution: Fedora Core 8
Posts: 39

Rep: Reputation: 15
Upgrade Hard Drive Invalid SuperBlock


Ok I have an 80gig HD and a 7 gig running mandrake 10. I just bought a new 160gig hd and tried to replace the 7 gig with it. Now when I boot my computer I get an invalid superblock error on dev/hdb1 (something like that). I tried to upgrade my installation via the mandrake cds but i'm getting this really annoying 'can't install important packages' when I know these cds are complete; I have used them before.

I'm assuming that linux is trying to mount whatever was on my 7 gig (which was empty but formatted) and doesn't know what to do when it sees my new empty 160gig. I really, really don't want to install Mandrake again for the 3rd time. Mainly since I put so much time installing and customizing everything. What can I do?
 
Old 10-17-2004, 05:33 PM   #2
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
It sounds like your /etc/fstab merely doesn't reflect your new configuration.

The easiest thing to do is to delete the line which corresponds to your old 7 gig hard drive, in /etc/fstab.

Then go into the Mandrake Control Center / Mount Points and add your new drive as you want it.
 
Old 10-17-2004, 05:52 PM   #3
sephiro499
Member
 
Registered: Sep 2003
Location: Baltimore, MD
Distribution: Fedora Core 8
Posts: 39

Original Poster
Rep: Reputation: 15
The only problem is I can't get into X at all. During boot it asks me if I want to repair the errors, irregardless of what I choose it drops me to a command line for maintenance. I tried using the rescue portion of the mandrake cds, but the only close option is to redo the bootloader.

I put the install cd into my drive and went through the installation so I could format the drive then I exited. Now during boot it says Bad magic number in super-block.

Booting with the install cd and going to a console I opened the fstab file with less. I don't see any mention of dev/hdb as a matter of fact here is what it says

/dev/ram3 / ext2 defaults 1 1
/dev/fd0 /mnt/floppy auto defaults,noauto 0 0
non /proc proc defaults,noauto,ro 0 0
/dev/cdrom /mnt/cdrom auto defaults,nacuto 0 0
 
Old 10-17-2004, 05:59 PM   #4
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Well there's the problem right there.

Where is root "/" and the other parititions?
 
Old 10-17-2004, 06:04 PM   #5
sephiro499
Member
 
Registered: Sep 2003
Location: Baltimore, MD
Distribution: Fedora Core 8
Posts: 39

Original Poster
Rep: Reputation: 15
I don't know because this is all new to me. My computer was fully working yesterday. I had two hard drives, one 80gig and one 7 gig. I took the 7gig out and put the 160 in. Now I have these errors on boot and I can't go any further. It doesn't say there is any problem with hda1, just hda2. All of my data is on the first disk, but it still wont boot.
 
Old 10-18-2004, 07:08 AM   #6
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
You say you booted from the CD.

It is quite likely that what you are seeing is the /etc/fstab of the CDROM not the one on your system.

You'll need to boot from the CD as you did then mount the partition containing the hard disk based fstab.

Then edit this file to remove the offending line.

As an example with the cd booted.

mkdir /mnt/harddisk

mount /dev/hda4 /mnt/harddisk

cd /mnt/harddisk/etc

vi fstab

Changing things where appropriate.

You could also hit TAB at the boot screen and supply an argument to the kernel load that will cause Linux to come up at runlevel 1 (maintenance mode) to do this too.
 
  


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
Invalid hard drive!? NickN Linux - Hardware 3 06-09-2006 10:05 AM
Bad superblock when mounting hard drive... SamJ Linux - Hardware 5 06-04-2005 07:32 PM
bad superblock when trying to mount a USB hard drive shubb Linux - Hardware 4 04-29-2005 12:00 AM
Hard drive failure? No Superblock, Mandrake kwalker Linux - Hardware 10 02-19-2005 04:01 PM
Upgrade Hard Drive Invalid SuperBlock sephiro499 Linux - Hardware 1 10-17-2004 08:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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