Find the answer to your Linux question:
Results 1 to 3 of 3
Dear Linux experts: I installed OpenSUSE 11.2 on a computer. I would like to clone the hard drive so that I can put the same disk image on another computer ...
  1. #1
    Just Joined!
    Join Date
    Nov 2006
    Posts
    96

    [SOLVED] disk-by-id

    Dear Linux experts:

    I installed OpenSUSE 11.2 on a computer. I would like to clone the hard drive so that I can put the same disk image on another computer with the same hardwares.

    I used clonezilla to create the hadr disk image, when I restore the image on another computer, I got errors and failed to boot. I later learned that, I have disk-by-id on /etc/fstab and grub/menu.list. So, I went into the computer that I tried to restored using Knoppix liveCD and manually changed the fstab and menu.list so that it used something like /dev/sda1, /dev/sdd2, and /dev/sda3, instead of /dev/disk/by-id/WD....-part1 (part2/part3). When I re-booted the new computer, it still failed to boot.

    So, do I have to go back to the original computer, manually edit fstab and menu.list to /dev/sda1 /dev/sda2 /dev/sda3, then re-create the disk image? Is there anything I have to change so that it does not use disk-by-id any more?

    Thanks!

    Pei

  2. #2
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105
    That should have worked. The disk-by-id is just pointers to the device sdx#. Maybe you did something wrong, Show the menu.lst file here maybe some one will spot the problem.

  3. #3
    Just Joined!
    Join Date
    Nov 2006
    Posts
    96
    Dear gogalthorp,

    Thanks a lot for the suggestion! As usual, you are very helpful. I found out that I did make mistakes when editing both fstab and menu.lst. This computer actually has 3 hard drives. I thought that the OpenSUSE drive will naturally be sda. But, it turns out it was assigned sdc. So, I re-edited fstab and menu.lst to use sdc (instead of sda), not, it boots to OpenSUSE 11.2 without any problem.

    Best Regards,

    Pei

Posting Permissions

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