You are not logged in.

#1 2014-05-13 07:52:04

Burroughs
Member
From: Naples (Italy)
Registered: 2010-02-15
Posts: 37

Migrating from HDD to SSD, problems when rebooting [SOLVED]

Good morning to everyone!
A few days ago I decided to upgrade my laptop, an Asus U44S, by replacing its original magnetic hard drive with a solid state one.
Well, once gathered some info on the Internet, I proceeded the following way (both hard drives have the same size, 750 GB):

dd if=/dev/sda of=/dev/sdb bs=4096 conv=notrunc,noerror

My partitioning scheme is as follows:

/dev/sda1 >> recovery for Windows; /dev/sda2 >> swap; /dev/sda3 >> /; /dev/sda4 >> extended partition; /dev/sda5 >> /home

Mounted the root partition and then the subsystems:

mount /dev/sda3 /mnt
mount -t proc none /mnt/proc
mount -o bind /dev /mnt/dev
mount -o bind /sys /mnt/sys

then a change root:

chroot /mnt /bin/bash

Edited the fstab by adding the options noatime,discard to the lines rgarding the root and the home partition, added the option elevator=noop in /etc/default/grub, rebuilt the kernel image by giving:

mkinitcpio -p linux-ice

installed grub:

grub-install /dev/sda

after that, unmounted the subsystems and rebooted the machine.
Once selected my kernel, TuxOnIce, Arch immediately goes into emergency mode, because all systemd units fail in their initialization.
Another strange thing, the extended partition containing my /home, isn't mounted.
Where did I go wrong and what should I do to get this mess fixed?

Burroughs.

Last edited by Burroughs (2014-05-14 15:47:05)


"Two things are infinite: the universe and human stupidity; and I'm not sure about the universe" (Albert Einstein)

Offline

#2 2014-05-13 09:18:18

m1st3rkr3p
Member
Registered: 2014-02-21
Posts: 34

Re: Migrating from HDD to SSD, problems when rebooting [SOLVED]

Burroughs wrote:

Mounted the root partition and then the subsystems:

mount /dev/sda3 /mnt
mount -t proc none /mnt/proc
mount -o bind /dev /mnt/dev
mount -o bind /sys /mnt/sys

You should mount the home when you mount the root partition too:

mount /dev/sda3 /mnt
mount /dev/sda5 /mnt/home
mount -t proc none /mnt/proc
mount -o bind /dev /mnt/dev
mount -o bind /sys /mnt/sys

I'm using the ssd too, and I think it's better to not use the swap partition if you have enought ram since the swap it's consuming the ssd faster
Burroughs.

Offline

#3 2014-05-13 09:45:14

Burroughs
Member
From: Naples (Italy)
Registered: 2010-02-15
Posts: 37

Re: Migrating from HDD to SSD, problems when rebooting [SOLVED]

Thanks for you answer, but nothing has changed: my Arch still boots in emergency mode and the /home partition is not been mounted...


"Two things are infinite: the universe and human stupidity; and I'm not sure about the universe" (Albert Einstein)

Offline

#4 2014-05-14 15:23:05

m1st3rkr3p
Member
Registered: 2014-02-21
Posts: 34

Re: Migrating from HDD to SSD, problems when rebooting [SOLVED]

Burroughs wrote:

Thanks for you answer, but nothing has changed: my Arch still boots in emergency mode and the /home partition is not been mounted...

While in emergency mode can you manually mount the home partition?

Offline

#5 2014-05-14 15:46:27

Burroughs
Member
From: Naples (Italy)
Registered: 2010-02-15
Posts: 37

Re: Migrating from HDD to SSD, problems when rebooting [SOLVED]

m1st3rkr3p wrote:
Burroughs wrote:

Thanks for you answer, but nothing has changed: my Arch still boots in emergency mode and the /home partition is not been mounted...

While in emergency mode can you manually mount the home partition?

Yes, I can, and I'll tell you more, I've solved the problem, it was just an incorrect option in /etc/fstab, that stopped the system from booting up correctly...
Anyway, thanks for your patience and support,

Burroughs.


"Two things are infinite: the universe and human stupidity; and I'm not sure about the universe" (Albert Einstein)

Offline

#6 2014-05-14 17:24:23

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: Migrating from HDD to SSD, problems when rebooting [SOLVED]

What was the incorrect option? Curious minds want to know (tm)!


Matt

"It is very difficult to educate the educated."

Offline

#7 2014-05-14 17:34:04

Burroughs
Member
From: Naples (Italy)
Registered: 2010-02-15
Posts: 37

Re: Migrating from HDD to SSD, problems when rebooting [SOLVED]

mrunion wrote:

What was the incorrect option? Curious minds want to know (tm)!

No problem, this is the line:

# UUID=1e6b025c-2759-4fec-9c11-c44a04f8a1ab
/dev/sda5           	/home     	reiserfs  	rw,relatime,user_xattr,noatime,discard	 0 2

Arch boots correctly if I remove the options noatime,discard...
Ok, it's a step forward but I'd like to enable them back again; if you (or someone else) can give me good tips on how to fix this problem...

Ps: I know I'm going off-topic, now. :-)


"Two things are infinite: the universe and human stupidity; and I'm not sure about the universe" (Albert Einstein)

Offline

#8 2014-05-14 20:45:57

m1st3rkr3p
Member
Registered: 2014-02-21
Posts: 34

Re: Migrating from HDD to SSD, problems when rebooting [SOLVED]

Put just discard without noatime should work. By enabling noatime you should not use relatime since you can use just one of these: noatime, realtime or atime.

Last edited by m1st3rkr3p (2014-05-14 21:17:01)

Offline

#9 2014-05-15 07:02:18

Burroughs
Member
From: Naples (Italy)
Registered: 2010-02-15
Posts: 37

Re: Migrating from HDD to SSD, problems when rebooting [SOLVED]

m1st3rkr3p wrote:

Put just discard without noatime should work. By enabling noatime you should not use relatime since you can use just one of these: noatime, realtime or atime.

Unfortunately, it didn't work...
If I add only discard, Arch goes into recovery mode again.


"Two things are infinite: the universe and human stupidity; and I'm not sure about the universe" (Albert Einstein)

Offline

#10 2014-05-15 09:04:43

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Migrating from HDD to SSD, problems when rebooting [SOLVED]

AFAIK reiserfs doesn't support the discard option. You'll have to use a different filesystem if you want trim support.

Last edited by Slithery (2014-05-15 09:05:48)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#11 2014-05-15 10:17:25

Kartious
Member
From: UK
Registered: 2013-03-23
Posts: 311

Re: Migrating from HDD to SSD, problems when rebooting [SOLVED]

Any reason you are using Reiserfs? Just out of curiosity as I have never seen any one to use it before, especially for a SSD seeming it doesn't support TRIMMING like slithery said. I more see btrfs or ext4 partition more than anything else.

Offline

#12 2014-05-15 10:34:11

Burroughs
Member
From: Naples (Italy)
Registered: 2010-02-15
Posts: 37

Re: Migrating from HDD to SSD, problems when rebooting [SOLVED]

Kartious wrote:

Any reason you are using Reiserfs? Just out of curiosity as I have never seen any one to use it before, especially for a SSD seeming it doesn't support TRIMMING like slithery said. I more see btrfs or ext4 partition more than anything else.

No particular reason at all, just a matter of laziness: I've been using reiserfs since I first installed Slackware, more than 10 years ago, and I've never made a step forward. I agree with you, don't think reiserfs supports trimmering, so there's not much I can do, except migrating my data... :-(


"Two things are infinite: the universe and human stupidity; and I'm not sure about the universe" (Albert Einstein)

Offline

#13 2014-05-15 10:40:52

Kartious
Member
From: UK
Registered: 2013-03-23
Posts: 311

Re: Migrating from HDD to SSD, problems when rebooting [SOLVED]

Burroughs wrote:

I agree with you, don't think reiserfs supports trimmering

It doesn't at the moment

Wiki

I will be doing a fresh install on a new SSD I have bought. I would do what you have done by moving the entire drive over, but I think a fresh start with a better partition table is in hand.

Last edited by Kartious (2014-05-15 10:41:25)

Offline

#14 2014-05-15 11:07:32

Burroughs
Member
From: Naples (Italy)
Registered: 2010-02-15
Posts: 37

Re: Migrating from HDD to SSD, problems when rebooting [SOLVED]

Kartious wrote:
Burroughs wrote:

I agree with you, don't think reiserfs supports trimmering

It doesn't at the moment

Wiki

I will be doing a fresh install on a new SSD I have bought. I would do what you have done by moving the entire drive over, but I think a fresh start with a better partition table is in hand.

Brilliant!
I will format my /home partition, instead, reiserfs is really out-of-date and deprecated at the moment and I don't think it's still supported, considering what happened to Hans Reiser.


"Two things are infinite: the universe and human stupidity; and I'm not sure about the universe" (Albert Einstein)

Offline

Board footer

Powered by FluxBB