Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 20
Hi, I did a process backup-restore-boot in these steps: 1- BACKUP from desktop PC to portable hard disk : i do an image iso file from a linux SO partition ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2006
    Posts
    36

    Restore-Boot Multi-disk


    Hi,

    I did a process backup-restore-boot in these steps:

    1- BACKUP from desktop PC to portable hard disk : i do an image iso file from a linux SO partition (hda) installed on a desktop PC to a partition PORTABLE disk (sdb1). The aplication used was Partimage integrated in SystemRescueCd 0.3.0 CD-rom.
    2-RESTORE of from sdb1 partition portable disk to sdb3 partition portable disk.
    3-BOOT: I would like boot the linux S.O. Store in sdb3 partition portable disk FROM a new Desktop PC and I can not do it with error messages like:
    -------------------------------------------------------
    “unable to access resume device ( dev/hda5) “
    “ could not find filesystem “dev root”
    “ setuproot error mounting /prog”
    “ setuproot error mounting /sys”
    “ switching to new root & running init “
    “kernel panic not syncing” attempted to kill init”
    PC BLOCKED

    The grub.conf file for the step 3 -> BOOT, the 4º entry is the boot from portable disk

    # grub.conf generated by anaconda
    #
    # Note that you do not have to rerun grub after making changes to this file
    # NOTICE: You have a /boot partition. This means that
    # all kernel and initrd paths are relative to /boot/, eg.
    # root (hd0,1)
    # kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
    # initrd /initrd-version.img
    #boot=/dev/sda2
    default=2
    timeout=60
    splashimage=(hd0,1)/grub/splash.xpm.gz
    hiddenmenu
    title Fedora Core (2.6.16-1.2080.16.rdt.rhfc5.ccrmasmp)
    root (hd0,1)
    kernel /vmlinuz-2.6.16-1.2080.16.rdt.rhfc5.ccrmasmp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
    initrd /initrd-2.6.16-1.2080.16.rdt.rhfc5.ccrmasmp.img
    title Fedora Core (2.6.16-1.2080.16.rdt.rhfc5.ccrma)
    root (hd0,1)
    kernel /vmlinuz-2.6.16-1.2080.16.rdt.rhfc5.ccrma ro root=/dev/VolGroup00/LogVol00 rhgb quiet
    initrd /initrd-2.6.16-1.2080.16.rdt.rhfc5.ccrma.img
    title Fedora Core (2.6.15-1.2054_FC5smp)
    root (hd0,1)
    kernel /vmlinuz-2.6.15-1.2054_FC5smp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
    initrd /initrd-2.6.15-1.2054_FC5smp.img
    title WINDOWS XP
    rootnoverify (hd0,0)
    chainloader +1
    # third partition of portable hard disk
    title Fedora Core (2.6.18-1.2257.fc5) PORTABLE
    root (hd1,2)
    kernel /boot/vmlinuz-2.6.18-1.2257.fc5 ro root=/dev/sdb3 rhgb quiet
    initrd /boot/initrd-2.6.18-1.2257.fc5.img



    ¿ What is wrong? ¿ I need write some information on boot sector of sdb3 partition? ¿ There is some information in sdb3 about the configuration in the last PC that i need modify?

    THANKS IN ADVANCE
    Candido

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    post the output of 'fdisk -l' command and contents of /boot/grub/device.map file.





    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Oct 2006
    Posts
    36

    multi disk partitions

    Hi

    This is the disks partitions information. sdb3 is the SO that I would like boot, i know that the grub.conf is wrong edited ... i am looking for more information about grub commands ....

    [root@s167m40 candido]# fdisk -l

    Disk /dev/sda: 120.0 GB, 120034123776 bytes
    255 heads, 63 sectors/track, 14593 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/sda1 1 7452 59858158+ 7 HPFS/NTFS
    /dev/sda2 * 7453 7465 104422+ 83 Linux
    /dev/sda3 10721 14593 31109872+ 5 Extended
    /dev/sda4 7466 10720 26145787+ 8e Linux LVM
    /dev/sda5 10886 14593 29784478+ b W95 FAT32

    Partition table entries are not in disk order

    Disk /dev/sdb: 100.0 GB, 100030242816 bytes
    255 heads, 63 sectors/track, 12161 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/sdb1 1 1386 11133013+ 83 Linux
    /dev/sdb2 1387 2661 10241437+ b W95 FAT32
    /dev/sdb3 2662 4063 11261565 83 Linux
    /dev/sdb4 4064 7250 25599577+ 7 HPFS/NTFS
    [root@s167m40 candido]#

    [root@s167m40 candido]# cat /boot/grub/device.map
    # this device map was generated by anaconda
    (hd0) /dev/sda
    (hd1) /dev/sdb


    Thanks

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    edit /etc/fstab file and change refrence of SWAP partition and replace hdax with sdbx.
    in case, it doesn't work, post the contents of /etc/fstab file.






    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Just Joined!
    Join Date
    Oct 2006
    Posts
    36

    multidisk boot partition

    HI,

    I dont understand HOW setup the BOOT PARTITION for a MULTIDISK BOOT PROCESS.
    If i read the fstab you can see that the /boot partition ( ACTIVE PARTITION) is on /dev/sda2/ ( partition 2 of disk1) so how i pass control to the second disk sdb partition3 ? How cand i ACTIVATE the third partition of second disk? It is necessary manually edit the mounting points at fstable files or I can do it from grub.conf file ?
    The grub.conf file informe :
    NOTICE: You have a /boot partition.
    # boot=/dev/sda2

    ********** BOOT PROCESS***

    1-Bios init the boot process and pass control to MRB
    2- Boot loader GRUB stage1 is installed at MRB joint partition table
    3-root filesystem for the boot process
    4- Control to Active partition or Boot Partition. Stage1_5 load stage 2 from GRUBs root device.
    5- Stage 2 read the grub.conf from GRUBs root device and setup the menu
    6-I can to select differents SO from grub.conf-> SO linux at DISK PORTABLE
    7-load the kernel image
    8-initrd: others file system load like drivers
    9- init process


    *************************BOOT PARTITION***
    From root@dhcppc0 terminal
    **without the second usb disk connected
    grub> find /boot/grub/stage1
    Error 15: File not found

    **with the second usb disk connected
    grub> find /boot/grub/stage1
    (hd1,2)

    *************************DEVICES MOUNTED***
    [candido@s167m40 ~]$ mount -l
    /dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
    proc on /proc type proc (rw)
    sysfs on /sys type sysfs (rw)
    devpts on /dev/pts type devpts (rw,gid=5,mode=620)
    /dev/sda2 on /boot type ext3 (rw) [/boot]
    tmpfs on /dev/shm type tmpfs (rw)
    /dev/sda5 on /mnt/data type vfat (rw,gid=500,umask=0007,fmask=0117,utf
    none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
    sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
    automount(pid215 on /net type autofs (rw,fd=4,pgrp=2158,minproto=2,maxproto=4)/dev/sdb1 on /media/disk type ext3 (rw,noexec,nosuid,nodev)
    /dev/sdb2 on /media/disk-1 type vfat (rw,noexec,nosuid,nodev,shortname=winnt,uid=500)
    /dev/sdb3 on /media/DISCLINUXNAGUSI type ext3 (rw,noexec,nosuid,nodev) [DISCLINUXNAGUSI]



    *************************This is the FSTAB content at PORTABLE hard disk 2
    [root@s167m40 candido]# gedit /media/DISCLINUXNAGUSI/etc/fstab

    LABEL=DISCLINUXNAGUSI / ext3 defaults 1 1
    devpts /dev/pts devpts gid=5,mode=620 0 0
    tmpfs /dev/shm tmpfs defaults 0 0
    proc /proc proc defaults 0 0
    sysfs /sys sysfs defaults 0 0
    /dev/hda5 swap swap defaults 0 0
    /dev/grupoprueba/vologicprue1 /data ext3 defaults 0 0



    ************************This is the FSTAB at hard disk 1*******

    [root@s167m40 candido]# gedit /etc/fstab
    /dev/VolGroup00/LogVol00 / ext3 defaults 1 1
    LABEL=/boot /boot ext3 defaults 1 2
    devpts /dev/pts devpts gid=5,mode=620 0 0
    tmpfs /dev/shm tmpfs defaults 0 0
    proc /proc proc defaults 0 0
    sysfs /sys sysfs defaults 0 0
    /dev/VolGroup00/LogVol01 swap swap defaults 0 0
    /dev/sda5 /mnt/data vfat gid=500,umask=0007,fmask=0117,utf8 0 0

    THANKS

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    If i read the fstab you can see that the /boot partition ( ACTIVE PARTITION) is on /dev/sda2/ ( partition 2 of disk1) so how i pass control to the second disk sdb partition3 ? How cand i ACTIVATE the third partition of second disk? It is necessary manually edit the mounting points at fstable files or I can do it from grub.conf file ?
    you dont have to activate or deactivate partitions and you can't edit fstab file in grub shell. as i suggested earlier, replace hdax with sdbx in fstab file of second disk.
    GRUB loads stage1, looks for stage 2 in /boot partition, reads menu.lst and device.map files, and displays GRUB menu at startup. when you select any title in GRUB Menu, it gives control to kernel and kernel uses fstab file. so, GRUB has nothing to do with fstab file and you can't edit it in GRUB shell.

    Code:
    *************************This is the FSTAB content at PORTABLE hard disk 2
    [root@s167m40 candido]# gedit /media/DISCLINUXNAGUSI/etc/fstab
    
    LABEL=DISCLINUXNAGUSI / ext3 defaults 1 1
    devpts /dev/pts devpts gid=5,mode=620 0 0
    tmpfs /dev/shm tmpfs defaults 0 0
    proc /proc proc defaults 0 0
    sysfs /sys sysfs defaults 0 0
    /dev/sdb3 swap swap defaults 0 0
    /dev/grupoprueba/vologicprue1 /data ext3 defaults 0 0



    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Just Joined!
    Join Date
    Oct 2006
    Posts
    36

    /dev/root not find

    Ive changed the swap device to /dev/sdb3 in fstab file of second disk and the boot message process are
    "kernel /boot/vmlinuz...
    "intrd /boot/.....
    "Uncompressing linux ...
    "REd Hat nash version 5.0.32 starting
    “ could not find filesystem “dev/root”
    “ setuproot error mounting /prog”
    “ setuproot error mounting /sys”
    “ switchroot....
    “kernel panic not syncing” attempted to kill init”

    & PC status was BLOCKED
    THANKS

  8. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    according to grub.conf file, partitions are LVM. i should have looked in that first place. either create LVM or change LVM reference to regular partitions in grub.conf file.






    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  9. #9
    Just Joined!
    Join Date
    Oct 2006
    Posts
    36
    I need change the grub.con entries that reference to desktop PC disk partitions? There are relations between the with the usb external hard disk?

    The boot process messages after the ...OK booting kernel ....display:

    UNABLE to access resume device (/dev/hda5)
    mount:could no find filesystem '/dev/root'
    ----------------------------------------

    /dev/hda5 is the original partition of the backup ¿ where is the information about old partitions? ¿ initrd ?

  10. #10
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    hmm... sorry man ! its all confusing now.

    you created an image of Desktop PC's Partition, saved it in sdb1 of External disk and restored it in sdb3 partition of External Disk. you are using GRUB of Internal Disk and trying to boot up from External Disk partition sdb3. am i correct?
    Now, for sake of clarity, post these
    1. grub.conf and device.map files of Internal disk grub.
    2. fstab file of External disk sdb3 partition.
    3. output of fdisk -l command.





    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •