Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 20 of 20
im sorry .... There are 3 hard disks = 2 PC computers + 1 external usb disk Disk 1: Original linux SO at old PC computer : hda ( old ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Just Joined!
    Join Date
    Oct 2006
    Posts
    36

    im sorry ....

    There are 3 hard disks = 2 PC computers + 1 external usb disk

    Disk 1: Original linux SO at old PC computer : hda ( old internal disk)
    Disk 2: New PC computer: sda ( new internal disk)
    Disk 3: external usb disk connect to the New PC: sdb

    Backup: hda -> sdb1
    Restore:sdb1->sdb3
    Boot: GRUB it is installed in sda and active partition is sda2 with /boot, you named it INTERNAL disk. The grub.conf has a entry to linux SO sdb3

    ******** grub.conf of sda2 ****

    # 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
    #
    # Boot from SO linux at disk portable, partition 3.
    #
    title Fedora Core (2.6.18-1.2257.fc5) PORTABLE
    #
    # root (hdX,Y)->the GRUBs root device to the partition containing the boot directory for the boot # process.
    # It may not be the root directory for the Fedora Core installation.
    # Its usually the the filesystem mounted at /boot when the system is running
    # Is the /boot partition, containing the linux kernel image file. Find /etc/grub/
    #
    #
    root (hd1,2)
    #
    # kernel /vmlinuz -> tells GRUB where to find the kernel files whithin the root filesystem for the
    # boot process
    # kernel arguments:
    # ro: -> tells kernel to mount the root filesytem as read only
    # root=/dev/sdb3 -> is the device partition where the root partition is mounted,
    # the root filesystem for Linux core.
    # rghb -> is the red hat graphical boot
    # quiet -> only important and critical messages are printed at console
    #
    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

    ************External disk sdb3: fstab file
    [root@s167m40 candido]# gedit /media/DISCLINUXNAGUSI/etc/fstab ****

    /dev/sdb3 / 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


    ******** fdisk -l at New PC with the external disk mounted**************

    [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]#



    THANKS

  2. #12
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    External disk has two Linux Partitions. sdb1 and sdb3. you have restored image in sdb3. where is SWAP partition?
    in case, you didn't create any SWAP space, put # sign before SWAP entry in fstab file of sdb3.
    Code:
    /dev/sdb3 / 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

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

    swap

    without saw line in fstab file the messages errors are same ... it can not mount the filesystem ... i dont undersand why the message display information about hda5 ( the old computer)...

    THANKS

  4. #14
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    check the contents of mtab file in sdb3. meanwhile, i will look into this. kernel should read current fstab file only.






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

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

    mtab file

    [candido@s167m40 ~]$ gedit /media/DISCLINUXNAGUSI/etc/mtab

    /dev/hda2 / ext3 rw 0 0
    proc /proc proc rw 0 0

    hda2 is the second partition of the old PC where the old linux OS was load

    THANKS

  6. #16
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    that makes a sense if your old hdd has hda2 Extended partition.
    edit this file and set it to sdb3.
    Code:
    /dev/sdb3 / ext3 rw 0 0
    proc /proc proc rw 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. #17
    Just Joined!
    Join Date
    Oct 2006
    Posts
    36

    mtab update

    [root@s167m40 candido]# cat /media/DISCLINUXNAGUSI/etc/mtab
    Code:
    /dev/sdb3 / ext3 rw 0 0
    proc /proc proc rw 0 0
    [root@s167m40 candido]#

    The error messages continue identical ....

  8. #18
    Just Joined!
    Join Date
    Oct 2006
    Posts
    36

    cd rescue

    I have "simulate" a installation on portable hard disk with the FEdora 5 installation first CD disk (1/5)
    and when it ask about the location of the linux installation ONLY sda (internal disk) can see in the dialogue menu ...

  9. #19
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    execute fdisk -l in rescue shell. check if it recognizes all disks.








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

  10. #20
    Just Joined!
    Join Date
    Oct 2006
    Posts
    36

    rescue mode

    In rescue shell it recognizes all disk and partition
    THANKS
    Candido

Page 2 of 2 FirstFirst 1 2

Posting Permissions

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