Re: Clone redhat 9 to larger disk; part 2
From: Ohmster (notareal_at_emailaddress.com)
Date: 04/10/05
- Next message: Jason L. Woodruff: "Re: Clone redhat 9 to larger disk; part 2"
- Previous message: Edward Diener: "Re: Setting the startup directory when creating a link"
- In reply to: Lenard: "Re: Clone redhat 9 to larger disk; part 2"
- Next in thread: Jason L. Woodruff: "Re: Clone redhat 9 to larger disk; part 2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 10 Apr 2005 18:20:17 GMT
Lenard <Lenard@127.0.0.1> wrote in news:R3c6e.73$bc2.11
@newssvr17.news.prodigy.com:
Hmmm, alright, I will give this SystemRescueCD a try, downloading the iso
file now. Will burn it with Easy Media Creator because that works, is
easy to do, never had a problem with it.
I don't think the partition labels will be a problem because both drives
are not connected at the same time, unless I am trying some kind of
rescue. The labels and separate boot partition is the way that redhat 9
set itself up from the begining. I used the /home label when I ran out of
room the first time and make the /home disk to mount on top of /home.
Here is where I am at. I copied the drive over again with Ghost 8.0. The
copy seemed to go well, I ended up with 7Mb of free space because I
specified that the boot and swap partitions remain the same and Ghost
would not let me use up the last 7Mb of space. The copy looked good, I
saw every single file being copied over.
I booted to the new drive and with a black screen, saw "grub stage 2" and
the machine rebooted. This is what happens now. Grub and all of the boot
files are on the boot partition. The partition must be mounting, how
could I get to stage 2 if the boot partition was not mounting?
I then booted to knoppix with both hard drives connected, old disk as
primary slave, new disk primary master. I mounted the new / partition,
/dev/hda2, as /mnt/realroot. The mount was successful. I then chrooted to
/mnt/realroot, so far so good. I wanted to run grub-install again but
realized that all of my grub files were on the boot partition, which were
not mounted presently. Ugh, cannot run grub-install them because how
could it work? I tried to mount the boot; mount /dev/hda1 /boot. Got back
a cannot mount message, can't read file system. This is what happens if I
try to mount the working boot partition as well. For some reason, it does
not mount.
So if I cannot mount the boot partition, does this mean that I cannot run
grub-install?
> When I was done I replaced the old 10G hard drive with the new 40G hard
> drive and booted the laptop with (at the time) the FC2 installation CD
> into rescue mode, answered a few questions and used chroot and
> re-installed GRUB by typing (notice the switch);
>
> /sbin/grub-install --recheck /dev/hda
Now this is interesting, this "recheck" switch. But still, with a
separate boot partition, if I get the / partition mounted under knoppix
or rescue or whatever, and chroot there, don't I have to mount the boot
partition as well under /boot or how can grub install if the partition
where it's files are located cannot be mounted?
Downloading SystemRescueCd-x86-0.2.15.iso now. Ugh, slow as hell and
stopping, will try a diffent mirror.
Okay so you booted to rescue after making the partitions on the new drive
and resizing them to your taste. I used Ghost for that and as far as I
can tell, it worked, so before I go copying the drive all over again,
perhaps I just need to do the grub thing, it would not hurt anything to
try and maybe that is where I am stuck.
So this is the question; if you copied the old partitions over to the new
disk, then you used the rescue disk. Is this any different than using
knoppix? When I booted to knoppix, I had to mount disk in order to
chroot. I mounted my hda2 as /mnt/realroot and chrooted there. But the
boot partition was not mounted. I was afraid to run grub-install and
stopped. I cannot mount the boot partition because it fails, even when I
boot to knoppix and only have the working disk connected. *Even when
knoppixing to the working disk, the boot partition cannot be mounted.*
So to reinstall grub, just boot to this rescue CD, chroot, and install
grub with "/sbin/grub-install --recheck /dev/hda"? For sure? I don't have
to worry about mounting the boot partition to do this? Are you really,
really sure about this? The rescue disc takes care of all of this, for
sure? How exactly did you chroot, list commands please, after you booted
to the rescue CD? (You mounted any disks or partions first? You must
have!)
God this bites, the wife jumped back on her computer again and won't get
off of it for me to try this again right now (Network and internet will
die if I take the linux machine down to work on it.)...
...man this boot partition is turning out to be such a headache that I
wish I did not have one. :(
-- ~Ohmster ohmster at newsguy dot com
- Next message: Jason L. Woodruff: "Re: Clone redhat 9 to larger disk; part 2"
- Previous message: Edward Diener: "Re: Setting the startup directory when creating a link"
- In reply to: Lenard: "Re: Clone redhat 9 to larger disk; part 2"
- Next in thread: Jason L. Woodruff: "Re: Clone redhat 9 to larger disk; part 2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|