qianian
October 29th, 2012, 06:19 PM
Hi, avid learner here, please reply with each step. I apologize for the long-windedness. How can I get my new SSD to boot?
I used partimage from a live boot CD to copy / and /home partitions from my old HDD to a new SSD. I also made a swap and extended partition but simply formatted those using gparted without cloning any data.
The newly restored SSD wouldn't boot immediately so I used the live disk to boot using a detected Linux system. I ran Grub Rescue in that session and rebooted. Here's the URL from Grub Rescue: http://paste.ubuntu.com/1314100
I got a black screen on every reboot, so I booted from live disk again, but when I selected to use a detected Linux system I just got a black screen. From the live CD environment I saw the SSD's / partition had an unrecognized fs. fsck came up with endless errors. I wiped and restored / from partimage again. Then I booted and Ubuntu startup screen indicated it couldn't mount /home. I tried to mount manually but it didn't like the filesystem. It hung on shutdown.
Finally I ran boot-repair from live disk. The / and /home partitions can't be mounted so the program doesn't detect the Linux OS. EDIT: Here's the boot-repair output: http://paste2.org/p/2398880
# fdisk -l
Disk /dev/sda: 240.1 GB, 240057409536 bytes
255 heads, 63 sectors/track, 29185 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00055639
Device Boot Start End Blocks Id System
/dev/sda1 1 2 10240 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 * 2 1277 10240000 83 Linux
/dev/sda3 1277 1404 1024000 82 Linux swap / Solaris
/dev/sda4 1404 29186 223155200 83 Linux
Disk /dev/sdb: 499.4 GB, 499405291520 bytes
255 heads, 63 sectors/track, 60715 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000b0789
Device Boot Start End Blocks Id System
/dev/sdb1 1 60716 487699456 83 Linux
# blkid
/dev/sda1: UUID="e6294b13-8db5-49b1-a4ca-28c6159b6d25" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda3: LABEL="swap" UUID="438412f6-d739-45cd-9f42-030d2614112c" TYPE="swap"
/dev/loop0: TYPE="squashfs"
/dev/sdb1: LABEL="Smalrus" UUID="7f0114cb-faea-41e7-b3c9-6cc772e53fc8" TYPE="ext3"
# file -sL /dev/sda1
/dev/sda1: Linux rev 1.0 ext3 filesystem data, UUID=e6294b13-8db5-49b1-a4ca-28c6159b6d25
# file -sL /dev/sda2
/dev/sda2: data
# file -sL /dev/sda3
/dev/sda3: Linux/i386 swap file (new style), version 1 (4K pages), size 255999 pages, LABEL=swap, UUID=438412f6-d739-45cd-9f42-030d2614112c
# file -sL /dev/sda4
/dev/sda4: data
#dmesg:
root@debian:/home/user# dmesg | tail
[ 934.387580] qnx4: wrong fsid in superblock.
[ 971.785973] EXT4-fs (sda2): VFS: Can't find ext4 filesystem
[ 981.309947] VFS: Can't find ext3 filesystem on dev sda2.
[ 1384.143283] FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[ 1384.143457] FAT: bogus number of reserved sectors
[ 1384.143461] VFS: Can't find a valid FAT filesystem on dev sda4.
[ 1384.143650] qnx4: wrong fsid in superblock.
[ 1411.153962] VFS: Can't find ext3 filesystem on dev sda4.
[ 1480.605957] EXT4-fs (sda4): VFS: Can't find ext4 filesystem
[ 1485.505981] VFS: Can't find an ext2 filesystem on dev sda4.
Thank you all so much for your help to get me this far.
I used partimage from a live boot CD to copy / and /home partitions from my old HDD to a new SSD. I also made a swap and extended partition but simply formatted those using gparted without cloning any data.
The newly restored SSD wouldn't boot immediately so I used the live disk to boot using a detected Linux system. I ran Grub Rescue in that session and rebooted. Here's the URL from Grub Rescue: http://paste.ubuntu.com/1314100
I got a black screen on every reboot, so I booted from live disk again, but when I selected to use a detected Linux system I just got a black screen. From the live CD environment I saw the SSD's / partition had an unrecognized fs. fsck came up with endless errors. I wiped and restored / from partimage again. Then I booted and Ubuntu startup screen indicated it couldn't mount /home. I tried to mount manually but it didn't like the filesystem. It hung on shutdown.
Finally I ran boot-repair from live disk. The / and /home partitions can't be mounted so the program doesn't detect the Linux OS. EDIT: Here's the boot-repair output: http://paste2.org/p/2398880
# fdisk -l
Disk /dev/sda: 240.1 GB, 240057409536 bytes
255 heads, 63 sectors/track, 29185 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00055639
Device Boot Start End Blocks Id System
/dev/sda1 1 2 10240 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 * 2 1277 10240000 83 Linux
/dev/sda3 1277 1404 1024000 82 Linux swap / Solaris
/dev/sda4 1404 29186 223155200 83 Linux
Disk /dev/sdb: 499.4 GB, 499405291520 bytes
255 heads, 63 sectors/track, 60715 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000b0789
Device Boot Start End Blocks Id System
/dev/sdb1 1 60716 487699456 83 Linux
# blkid
/dev/sda1: UUID="e6294b13-8db5-49b1-a4ca-28c6159b6d25" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda3: LABEL="swap" UUID="438412f6-d739-45cd-9f42-030d2614112c" TYPE="swap"
/dev/loop0: TYPE="squashfs"
/dev/sdb1: LABEL="Smalrus" UUID="7f0114cb-faea-41e7-b3c9-6cc772e53fc8" TYPE="ext3"
# file -sL /dev/sda1
/dev/sda1: Linux rev 1.0 ext3 filesystem data, UUID=e6294b13-8db5-49b1-a4ca-28c6159b6d25
# file -sL /dev/sda2
/dev/sda2: data
# file -sL /dev/sda3
/dev/sda3: Linux/i386 swap file (new style), version 1 (4K pages), size 255999 pages, LABEL=swap, UUID=438412f6-d739-45cd-9f42-030d2614112c
# file -sL /dev/sda4
/dev/sda4: data
#dmesg:
root@debian:/home/user# dmesg | tail
[ 934.387580] qnx4: wrong fsid in superblock.
[ 971.785973] EXT4-fs (sda2): VFS: Can't find ext4 filesystem
[ 981.309947] VFS: Can't find ext3 filesystem on dev sda2.
[ 1384.143283] FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[ 1384.143457] FAT: bogus number of reserved sectors
[ 1384.143461] VFS: Can't find a valid FAT filesystem on dev sda4.
[ 1384.143650] qnx4: wrong fsid in superblock.
[ 1411.153962] VFS: Can't find ext3 filesystem on dev sda4.
[ 1480.605957] EXT4-fs (sda4): VFS: Can't find ext4 filesystem
[ 1485.505981] VFS: Can't find an ext2 filesystem on dev sda4.
Thank you all so much for your help to get me this far.