You are not logged in.
Pages: 1
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
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 )
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
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
Online
I'm such an idiot... of course ! I have to set the boot priority from the BIOS/Firmware ! Thank you
Offline
Me again
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
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.
Offline
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
Offline
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
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
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
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
Offline
After messing up everything, booting from the usb and fixing the partitions, it works ! So, thanks guys
Questions : How do I close this forum Issue ?
Last edited by Foryah (2016-07-18 14:50:54)
Offline
Questions : How do I close this forum Issue ?
Edit the first post and add [Solved] before the title.
Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Offline
Thanks
Offline
Pages: 1