Alert ! /dev/sda2 does not exists (Debian 4.0)

Posted on 2011-05-11
Last Modified: 2012-08-13
i need help!!

yesterday i copied linux system by using Knopix .

Server 1 ( Knopix)  ( Source)
dd if=/dev/sda | nc 1234

Server 2 (knopix) (Destinatino)
nc -l -p 1234 | dd of=/dev/sda

now i boot the destination,
It starts to boot ..

then it drop me to shell as

Waitting for root file sytem
check root = bootarg /cat/proc/cmdline

or missing moduels, devices cat /proc/moudules ls /dev/

Alert /dev/sda2 does not exists

i boot this server with live Cd again

and it has

fidsk -l
-bash: fidsk: command not found
aeromarkcvs:~# fdisk -l

Disk /dev/sda: 80 GB, 64424509440 bytes
255 heads, 63 sectors/track, 7832 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            7590        7832     1951897+  82  Linux swap / Solaris
/dev/sda2   *           1        7589    60958611   83  Linux

Partition table entries are not in disk order

What shall i do now ??

Please advise urgent

Bellow is my kernel :

title           Debian GNU/Linux, kernel 2.6.24-etchnhalf.1-686
root            (hd0,1)
kernel          /boot/vmlinuz-2.6.24-etchnhalf.1-686 root=/dev/sda2 ro vga=788 acpi=off
initrd          /boot/initrd.img-2.6.24-etchnhalf.1-686

title           Debian GNU/Linux, kernel 2.6.24-etchnhalf.1-686 (single-user mode)
root            (hd0,1)
kernel          /boot/vmlinuz-2.6.24-etchnhalf.1-686 root=/dev/sda2 ro single
initrd          /boot/initrd.img-2.6.24-etchnhalf.1-686

Question by:fosiul01
    LVL 38

    Assisted Solution

    Check this one
    ----- Solution
    Check files in /boot directory.

    Compare each file size with original system. The copy the missing ones or size mismatch one.
    LVL 29

    Author Comment

    It was "dd" copy as you can see.. so i am 100% sure that every thing was copied properly....

    and it was nto any upgrade  ..

    but i will try to copy /boot directory from origial one to this server again.. let see if it helps.. but has doubt
    LVL 38

    Expert Comment

    Please check the "Analyzing the problem" in that URL,
    It might give you the clue for your issue.
    Besides, compare before copying anything.
    LVL 87

    Accepted Solution

    Sometimes you have to change from sda to hda, depending on the disk controller used. Also check your /boot/grub/grub.cfg and /etc/fstab files (the config file in grub might be a different name, depending on the distro and version). Newer distro's don't use /dev/sdx etc but rather labels, and these are unique to the partition, so you may have to edit the files to use the actual label.
    LVL 29

    Author Comment

    I just took a chance by  chaning kernel input from /dev/sda2 to /dev/hda2

    like bellow

     /boot/vmlinuz-2.6.24-etchnhalf.1-686 root=/dev/sda2 ro vga=788 acpi=off


     /boot/vmlinuz-2.6.24-etchnhalf.1-686 root=/dev/hda2 ro vga=788 acpi=off

    it worked fine

    LVL 29

    Author Closing Comment


    Featured Post

    Gigs: Get Your Project Delivered by an Expert

    Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

    Join & Write a Comment

    How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
    Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now