You are not logged in.

#1 2016-07-15 07:27:19

Foryah
Member
Registered: 2016-06-02
Posts: 27

[Solved] Migrate Arch to SSD

Hello,

I tried to move my current Arch environment from my hdd to my ssd. I followed the wiki, I rsync everything, and after that I created a new entry in the old hdd loader that mounts the ssd instead of the normal hdd partitions, and it works like a charm.  I'm using the loader from the boot folder, I edit the /boot/loader/loader.conf and I add new entries /boot/loader/entrie/ folder... So, I'm not using grub, I think smile

The only thing that I'm unable to do, is to have arch take the loader information from the /boot partition I have on the ssd. It has the /boot flag, it has all the other information the old, hdd, /boot partition has. I tried to remove the /boot flag from gparted on the old hdd boot partition, but it seems like that partition is still in use, and not the new ssd one.

I already ran

mkinitcpio -p linux

on the new ssd ( not even sure if I had to big_smile )

This is my first forum post, so, I'm fairly new, if you guys need any more information, let me know and I'll be happy to provide them.

Thanks

Last edited by Foryah (2016-07-18 15:02:19)

Offline

#2 2016-07-15 11:24:42

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,441
Website

Re: [Solved] Migrate Arch to SSD

If I understand correctly, you've done everything to make the new disk "bootable" but the BIOS/Firmware boot priority is still set to boot the hard disk first.  You need to change the settings in BIOS.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2016-07-15 11:44:49

Foryah
Member
Registered: 2016-06-02
Posts: 27

Re: [Solved] Migrate Arch to SSD

I'm such an idiot... of course ! I have to set the boot priority from the BIOS/Firmware ! Thank you smile

Offline

#4 2016-07-17 17:32:10

Foryah
Member
Registered: 2016-06-02
Posts: 27

Re: [Solved] Migrate Arch to SSD

Me again smile

So, I went to BIOS, and selected the SSD as the primary boot device, and.... It failed. It's saying that the SSD cannot be booted, and that I should enter a proper boot device and reboot the computer. Now, if I go to gparted, to the ssd partition, my first 2 Gb are a partition with the boot flag turned on, and which has the exact same content as the HDD boot partition ( I used rsync to make sure they have the same data ).

I tried to switch the os type in BIOS from UEFI and Legacy OS to CSM but I've got the same result...

Any ideas ?

Offline

#5 2016-07-17 17:46:00

ooo
Member
Registered: 2013-04-10
Posts: 1,637

Re: [Solved] Migrate Arch to SSD

Did you also install the bootloader to your new disk?
Simply copying the files is never enough, no matter which bootloader you're using or whether you use UEFI or BIOS.

see https://wiki.archlinux.org/index.php/systemd-boot

Offline

#6 2016-07-17 19:25:59

Foryah
Member
Registered: 2016-06-02
Posts: 27

Re: [Solved] Migrate Arch to SSD

Thanks ! That's the kind of thing that I should know before I start the darn migration, but I don't...

No, I didn't install the bootloader, and when I try to do it, I realized the ssd has a msdos partition table and the hdd has a gpt table...so, now I have to backup everything from the ssd, change the partition table, restore the backup, then install the bootloader... fun, fun, fun smile

Offline

#7 2016-07-17 19:39:28

frostschutz
Member
Registered: 2013-11-15
Posts: 1,409

Re: [Solved] Migrate Arch to SSD

You can probably just convert the partition table without re-copying everything ( https://wiki.archlinux.org/index.php/GU … MBR_to_GPT )

If you have a partition that goes to the very last sector you'll have to shrink it down a little because GPT needs the first/last ~64 sectors to itself.

Feel free to post your partition table in detail, output of `parted /dev/disk unit s print free` or similar...

Last edited by frostschutz (2016-07-17 19:40:27)

Offline

#8 2016-07-17 20:10:54

Foryah
Member
Registered: 2016-06-02
Posts: 27

Re: [Solved] Migrate Arch to SSD

Awesome ! Resizing the last partition would not be a problem, since the last partition is an empty data partition, I can shrink that as much as I want...  Here's the info you wanted :

Model: ATA Samsung SSD 750 (scsi)
Disk /dev/sdb: 976773168s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start       End         Size        Type      File system     Flags
        63s         2047s       1985s                 Free Space
 3      2048s       4667391s    4665344s    primary   fat32           boot, esp
 2      4667392s    31102975s   26435584s   primary   linux-swap(v1)
 1      31102976s   196982783s  165879808s  primary   ext4
 4      196982784s  976773119s  779790336s  extended
 5      196984832s  418445311s  221460480s  logical   ext4
 6      418447360s  976773119s  558325760s  logical   ntfs
        976773120s  976773167s  48s                   Free Space

Offline

#9 2016-07-17 20:17:43

frostschutz
Member
Registered: 2013-11-15
Posts: 1,409

Re: [Solved] Migrate Arch to SSD

Yup, shrink the last partition by a bit and you should be good to convert.

You can either convert using the method described in the wiki, or use any partitioner of your choice and create partitions with the exact start/end sectors as shown in your output above.

(Probably still a good idea to make a backup of important data if you don't have one)

edit: also here https://wiki.archlinux.org/index.php/Fd … BR_and_GPT

suggests # sgdisk -g /dev/sda

Last edited by frostschutz (2016-07-17 20:19:08)

Offline

#10 2016-07-17 20:21:11

Foryah
Member
Registered: 2016-06-02
Posts: 27

Re: [Solved] Migrate Arch to SSD

Basically the ssd is a clone of the hdd + some extra data from the past week... so, I'll just rsync it back to the hdd, which should be pretty fast since the updates will be small, then I'll go for it. Thank you so much for your support smile

Offline

#11 2016-07-18 14:46:46

Foryah
Member
Registered: 2016-06-02
Posts: 27

Re: [Solved] Migrate Arch to SSD

After messing up everything, booting from the usb and fixing the partitions, it works ! smile So, thanks guys smile

Questions : How do I close this forum Issue ?

Last edited by Foryah (2016-07-18 14:50:54)

Offline

#12 2016-07-18 14:55:51

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,407
Website

Re: [Solved] Migrate Arch to SSD

Foryah wrote:

Questions : How do I close this forum Issue ?

Edit the first post and add [Solved] before the title. wink


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#13 2016-07-18 15:02:34

Foryah
Member
Registered: 2016-06-02
Posts: 27

Re: [Solved] Migrate Arch to SSD

Thanks

Offline

Board footer

Powered by FluxBB