Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-10-2011, 02:53 PM
|
#1
|
|
LQ Newbie
Registered: Feb 2007
Location: Alexandria VA
Distribution: Ubuntu 8.4, 10, Fedora 12, 14
Posts: 9
Rep:
|
Clone to Sandforce SSD
I have a Ubuntu 8.4 desktop (ZOTAC) test rig that works OK. The OS was first installed on a 60Gb ATA hard drive and subsequently cloned to a separate 120Gb SATA hard drive using ddrescue running for this purpose from a Ubuntu CDRom. As prescribed in dimitar.me/clone-disk-drives-with-ubuntu . . . ,this required simply
sodu ddrescue -v /dev/sda /dev/sdb
This all worked and the resulting 120Gb drive installed on its own was bootable and fdisk showed that both the 60 and 120 drives had identical EXT3 partitions.
Next, I installed a 60Gb SSD (Microcenter G2 series) as a copy destination (/dev/sdc) in the same way as I had used the 120GB drive. Then I wrote a partition on the SSD with
cfdisk -z /dev/sdc followed by W and, as before,
sodu ddrescue -v /dev/sda /dev/sdc
This all worked and fdisk showed that the SSD had the expected cloned partitions. But the SSD would not boot and moreover would not mount because mount stated that the drive did not recognize the EXT3 partition parameter nor any other partition type. Please note that I am not trying for efficient use of the SSD by manipulating partition boundaries and block sizes; I just want it to accept a clone write like a hard drive does. Help.
|
|
|
|
01-10-2011, 03:24 PM
|
#2
|
|
Member
Registered: Sep 2009
Posts: 125
Rep: 
|
Delete My account
Last edited by xandercage17; 04-22-2012 at 02:55 PM.
Reason: Delete My account
|
|
|
|
01-10-2011, 03:58 PM
|
#3
|
|
Moderator
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 12,231
|
There is no point in first making a partition and then writing over the partition table, like you do. So I don't think that this really is a partitioning issue.
Please post the output of when the SSD is attached to your system.
|
|
|
|
01-11-2011, 11:10 AM
|
#4
|
|
LQ Newbie
Registered: Feb 2007
Location: Alexandria VA
Distribution: Ubuntu 8.4, 10, Fedora 12, 14
Posts: 9
Original Poster
Rep:
|
Output
Quote:
Originally Posted by TobiSGD
There is no point in first making a partition and then writing over the partition table, like you do. So I don't think that this really is a partitioning issue.
Please post the output of when the SSD is attached to your system.
|
see attached jan11.txt
|
|
|
|
01-11-2011, 11:31 AM
|
#5
|
|
Moderator
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 12,231
|
The output of your fdisk -l looks fine, of course I would set the boot flag on only one of the disks, if all three are in the machine. To help you we need more info. What exactly do you mean with "won't boot" (any error messages?), and what exactly are your commands and error-messages (please cut and paste into code-tags) you get when you try to mount the partition on the SSD?
|
|
|
|
01-11-2011, 05:39 PM
|
#6
|
|
LQ Newbie
Registered: Feb 2007
Location: Alexandria VA
Distribution: Ubuntu 8.4, 10, Fedora 12, 14
Posts: 9
Original Poster
Rep:
|
Thanks so far. I tried to boot with only the SSD in the system (both hard drives physically disconnected). GRUB gives the msg: Error 21: Selected disk does not exist. But the bios seems to recognize the SSD correctly ("SSD G2 series 64GB") and the GRUB boot code shows
root (hd1,0)
kernel /boot/vmlinuz-2.6.24-28-generic root=UUID=16fb47be-68f1-4964- [and so on]
initrd /boot/initrd.img-2.6.24-28-generic
Moreover, the above is the correct device UUID and Gparted on the SSD shows an ext3 partition flagged as boot .
With the system running on the original 60 GB HD and with the 120 and the SSD installed as /dev/sdb and /dev/sdc (but not mounted), I can mount sdb but mount /dev/sdc -t ext3 /mnt gives the msg "wrong fs type, bad option, bad superblock . . .
or other error. By the way, I am writing this on a separate machine from the one with the SSD problem, so the above code is copied manually from the Ubuntu machine.
So what now?
|
|
|
|
01-11-2011, 06:32 PM
|
#7
|
|
LQ Newbie
Registered: Feb 2007
Location: Alexandria VA
Distribution: Ubuntu 8.4, 10, Fedora 12, 14
Posts: 9
Original Poster
Rep:
|
More on SSD
Running with only the SSD installed, I tried the boot menu "Recovery Mode". After some screen churning I get "Recovery Menu". Selecting "resume normal boot" (the first menu option) works successfully and the machine seems to run perfectly, in fact faster than with the HD, as it should with an SSD. A restart, however, leads to the same boot failure. The other recovery menu items, "repair broken packages" etc, are not successful. So now I have it working but don't know why. Gparted shows the expected partitions on the SSD, with about 20GB inherited from the original HD installation and 37GB unallocated. Returning to the original HD system with the SSD installed but not mounted as SDB I tried fsck /dev/sdb and got the msg: "The superblock could not be read or does not described a correct ext2 file system . . . try running e2fsck with an alternate superblock . . . e2fsck -b 8193 <device>".
What now?
|
|
|
|
01-11-2011, 06:35 PM
|
#8
|
|
Moderator
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 12,231
|
The code root (hd1,0) is not correct, if only one disk is in your system. It should be root (hd0,0).
And also you should try to mount /dev/sdc1 and not /dev/sdc.
|
|
|
1 members found this post helpful.
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:39 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|