LinuxQuestions.org
Review your favorite Linux distribution.
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, 01:36 PM   #16
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,147

Rep: Reputation: Disabled

OK, it seems grub-install script comes with GRUB, so you have it.

Chroot thing. From LiveCD, create a mount point.
mkdir /mnt/linux

Then mount it.
mount /dev/sda1 /mnt/linux
Note: LiveCD uses libata, hence your IDE disk is accessed as sda, it does not matter later.

mount -o bind /dev /mnt/linux/dev
This will make your /dev alive, GRUB needs it probably. Not sure but it does not hurt.

chroot /mnt/linux /bin/bash
Now you should be inside your Linux installation.

grub-install --no-floppy /dev/sda
This should install the MBR, ignoring floppy.

Please note, I did not test this, if you encounter something weird, post back.
 
Old 03-06-2008, 04:05 PM   #17
babag
Member
 
Registered: Aug 2003
Posts: 368

Original Poster
Rep: Reputation: 30
thanks again emerson.

chroot /mnt/linux /bin/bash

produced and error. it printed two odd characters and then said:

'is_in_UTF8_mode: Input/output error'

then it brought me back to my systemrescuecd command line which
was now at the far right of my screen.

hmmm.

i tried an 'ls' just to see what's up and it printed a / directory.
then the system froze with just a blinking cursor.

BabaG

Last edited by babag; 03-06-2008 at 04:09 PM.
 
Old 03-06-2008, 04:13 PM   #18
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,147

Rep: Reputation: Disabled
I'm quite at loss with this, probably your LiveCD has significantly newer kernel (and whole system) than your Linux installation? Do you still have the Mandriva disk you installed from? You'll probably succeed using it as LiveCD.
 
Old 03-06-2008, 04:18 PM   #19
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,147

Rep: Reputation: Disabled
Or another way to get it running. Start with restoring your MBR (with dd, as you did). Then create partition(s). For last, restore the partition with partimage.
 
Old 03-06-2008, 04:19 PM   #20
babag
Member
 
Registered: Aug 2003
Posts: 368

Original Poster
Rep: Reputation: 30
yeah. i have a few surplus boxes i'm loading this way.
trying to make the installations easy but when i don't
get one to work, i go back to a fresh install from the
mandriva live cd. so far i'm 0 for 4. that's been working
fine in every case. just means manually going through and
updating, adding apps, copying data, etc. after the
install. wish i could get this to work. odd thing is i've
gotten this partimage process to clone my xp system in a
similar upgrade without a hitch.

thanks again,
BabaG

Last edited by babag; 03-06-2008 at 04:21 PM.
 
Old 03-06-2008, 04:24 PM   #21
babag
Member
 
Registered: Aug 2003
Posts: 368

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Emerson View Post
Or another way to get it running. Start with restoring your MBR (with dd, as you did). Then create partition(s). For last, restore the partition with partimage.
i thought this is how i got to this point in the first place.
 
Old 03-06-2008, 04:31 PM   #22
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,147

Rep: Reputation: Disabled
Didn't you do it in a different order? First partitions and then MBR?
 
Old 03-06-2008, 04:34 PM   #23
babag
Member
 
Registered: Aug 2003
Posts: 368

Original Poster
Rep: Reputation: 30
i think i tried it every which way but i'll take
extra care to follow your order on the next one.
probably be in about 45 minutes.
 
Old 03-06-2008, 05:58 PM   #24
babag
Member
 
Registered: Aug 2003
Posts: 368

Original Poster
Rep: Reputation: 30
same thing. GRUB writing endlessly all over the screen.
 
Old 03-06-2008, 06:12 PM   #25
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,147

Rep: Reputation: Disabled
Sorry to hear this, the only way left is to chroot from Mandriva CD then. What does fsck say about your Linux partition (the one you restored from image)?
 
Old 03-06-2008, 06:28 PM   #26
babag
Member
 
Registered: Aug 2003
Posts: 368

Original Poster
Rep: Reputation: 30
progress! wow! not working but not looking at GRUB all over my screen.

emerson, using the mandriva live cd got me to a successful, sort of,
install of grub using your arguments and commands. the mandriva boot
screen displays and the process engages. it errors, however, in a
filesystem check.

No volume groups found
Invalidating stale software suspend images... done.
Enabling /etc/fstab swaps: swapon: /dev/hda5: Invalid argument [FAILED]

Checking filesystems
fsck.ext3: Bad magic number in super-block while trying to open /dev/hda6
/dev/hda6:
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>
[FAILED]

*** An error occurred during the filesystem check.
*** Dropping you to a shell; the system will reboot
*** when you leave the shell.
Give root password for maintenance
(or type Control-D to continue):



i'm thinking there might be a way to still get this to work and that
the command 'e2fsck -b 8193 <device>' is generic and needs something
more specific to my system? (sorry but i don't know how to put the
above code into a box.)

help, please?

thanks,
BabaG

Last edited by babag; 03-06-2008 at 06:34 PM.
 
Old 03-06-2008, 06:43 PM   #27
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,147

Rep: Reputation: Disabled
mke2fs -n /dev/hda1

This should tell you where superblock backups were created. Was the partition you imaged healthy on your old HDD?
 
Old 03-06-2008, 07:06 PM   #28
babag
Member
 
Registered: Aug 2003
Posts: 368

Original Poster
Rep: Reputation: 30
i can only assume, not even knowing what a superblock is.
old system boots fine all the time.
 
Old 03-06-2008, 07:07 PM   #29
babag
Member
 
Registered: Aug 2003
Posts: 368

Original Poster
Rep: Reputation: 30
tried mke2fs -n /dev/hda1

and got message that the drive is mounted.
i should maybe do this from the systemrescuecd,
or the mandriva live cd?
 
Old 03-06-2008, 07:26 PM   #30
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,147

Rep: Reputation: Disabled
Yes, all fsck and other operations on filesystems have to be done on unmounted partitions.
 
  


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

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

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