Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Moving boot partition help RH9

  • 14-08-2004 1:22am
    #1
    Registered Users, Registered Users 2 Posts: 480 ✭✭


    I have just spent a frustrating few hours trying to move my machine onto a new(er) bigger hard drive
    perhaps someone can shed some light on the problem I ran into

    Firstly here is what i did

    installed the new hard drive

    partitioned it as

    hdd1 100mb (this is going to be new boot partition )
    hdd2 45 GB (this is going to be / partition)
    hdd3 512mb (swap)
    hdd4 Extended
    hdd5 512mb swap
    hdd6 the rest ~ 2GB


    current boot drive hda looks like

    hda1 100mb boot
    hda2 19Gb /
    hda3 swap

    after partioning new drive I formatted efs2 for /boot efs3 for / & hdd6 mkswap for the swap partitons

    then I mounted the new drive under mnt
    cd /boot
    then I used tar like this
    tar cvf - . | tar xvf - -C /mnt/newboot

    did something similar for my root dir

    as per this web site
    http://www.brandonhutchinson.com/Moving_Linux_to_a_new_hard_disk.html

    shutdown
    pulled the old drive and made the new drive hda (no need to go at /etc/fstab since drive geometry is the same as the old drive + some extras for later)

    no boot :-(
    not suprised when I started reading about grub and MBR

    booted from a CD (hard to do with this box as has no bootable CDrom drive in it & a broken floppy.)

    configured grib like so
    grub
    > setup (hd0) (hd0,1)

    thought everything should be ok now since on restart grub comes up ok and presents me with my old boot options menu

    boot and get
    kernel panic : No init found

    Where did i go wrong and is there an easier way of doign this

    did copying the /boot partition from a live system cause my downfall ?


Comments

  • Registered Users, Registered Users 2 Posts: 480 ✭✭bminish


    To answer my own thread

    I did it all again this time with a non live system (borrowed a CDrom drive to get around the bios from hell on the motherboard from hell that won't boot from a SCSI CD rom drive ..)

    did the the the stage I had forgotten last night ...

    The bit about labling the drives with e2label .. Seems it is very important, especally when you consider how things get mounted in fstab when the system comes up...

    the MBR that I wrote last night worked fine

    Up she came, now to fill up all that lovley new space with ancient logfiles and other worthless crap

    :D


Advertisement