Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

HDD to SSD

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
anatak
Posts: 91
Joined: 2013-08-22 02:20
Location: North of the Nine States Island, Japan

HDD to SSD

#1 Post by anatak »

My hard disk is failing and I tried to change to a SSD using the dd command.

I can boot up but I get a lot of warnings.
the first warning is in GRUB that the device GRUB is looking for does not exist.

I tried to install bootlogd to get all the messages to post but installing from the synaptic package manager
running apt-get install bootlogd gives me these messages

Code: Select all


Do you want to continue [Y/n]? y
Setting up linux-image-3.2.0-4-686-pae (3.2.65-1+deb7u2) ...
Running depmod.
Failed to symbolic-link /boot/initrd.img-3.2.0-4-686-pae to initrd.img.
dpkg: error processing linux-image-3.2.0-4-686-pae (--configure):
 subprocess installed post-installation script returned error exit status 17
Errors were encountered while processing:
 linux-image-3.2.0-4-686-pae
E: Sub-process /usr/bin/dpkg returned an error code (1)
after rebooting I got this from the boot log file.

Code: Select all

fsck.ext2: Unable to resolve 'UUID=0ee695a9-d8df-4152-8d32-fc3a99d75f15'
Sun Apr 19 17:26:53 2015: fsck died with exit status 8
Sun Apr 19 17:26:53 2015: ^[[?25l^[[?1c^[7^[[1G[^[[31mFAIL^[[39;49m^[8^[[?25h^[[?0c^[[31mfailed (code 8).^[[39;49m
Sun Apr 19 17:26:53 2015: [....] File system check failed. A log is being saved in /var/log/fsck/checkfs if that location is writable. Plea$
Sun Apr 19 17:26:53 2015: [....] A maintenance shell will now be started. CONTROL-D will terminate this shell and resume system boot. ...^[$
Sun Apr 19 17:26:53 2015: Give root password for maintenance
Sun Apr 19 17:26:53 2015: (or type Control-D to continue):
Sun Apr 19 17:27:03 2015: [....] Mounting local filesystems...mount: special device UUID=0ee695a9-d8df-4152-8d32-fc3a99d75f15 does not exist
Is there some way to tell the system I changed to a SSD as I think that is causing the problems ?
or if that is not possible is there some way to transfer my whole system (installed packages, settings and files) to an SSD ?
If all else fails I still have an extra spare HDD (exactly the same as the failing one) that I can use but I would prfer the SSD.

thank you very much.

aplistir
Posts: 141
Joined: 2014-03-26 22:11

Re: HDD to SSD

#2 Post by aplistir »

sounds like your UUID:s have changed (dont know if that is normal when using dd )
But you should correct those UUID:s

Open terminal and type:'

Code: Select all

blkid
to print your current UUID:s

And then type:

Code: Select all

cat /etc/fstab
to see what UUID:s you have currently set up there. Those should match. If not edit UUID:s in your /etc/fstab

You should propably also reinstall grub with

Code: Select all

update-grub && grub-install /dev/sdX
You need to be root to do that, and change the X in sdX to be your hd... propably to sda

User avatar
kiyop
Posts: 3983
Joined: 2011-05-05 15:16
Location: Where persons without desire to improve themselves fear to tread, in Japan
Been thanked: 3 times

Re: HDD to SSD

#3 Post by kiyop »

Write more detail concretely.

How did you execute "dd"? On the original debian installed on the failing HDD?
Can you boot the original debian on the failing HDD?
Openbox, JWM: Jessie, Sid, Arch / Win XP (on VirtualBox), 10
http://kiyoandkei.bbs.fc2.com/

anatak
Posts: 91
Joined: 2013-08-22 02:20
Location: North of the Nine States Island, Japan

Re: HDD to SSD

#4 Post by anatak »

thank you aplistir
worked like a charm.
system is booting without any errors anymore.

Post Reply