LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-18-2020, 11:05 AM   #1
JPP47180
LQ Newbie
 
Registered: Jul 2020
Posts: 2

Rep: Reputation: Disabled
migration Linux distro from hdd to ssd


Hi,I have just installed bodhi linux on a hdd next to Ubuntu 18.0.4 LTS on a ssd.
I am very happy with bodhi and wish to migrate to ssd and replace ubuntu.
How can I make it with dd ? How can I identify the "if" partitions and "of" partitions to use with dd ?
Thank you for your assistance.
JP
 
Old 07-19-2020, 01:36 AM   #2
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,124
Blog Entries: 21

Rep: Reputation: 3476Reputation: 3476Reputation: 3476Reputation: 3476Reputation: 3476Reputation: 3476Reputation: 3476Reputation: 3476Reputation: 3476Reputation: 3476Reputation: 3476
Quote:
Hi,I have just installed bodhi linux on a hdd next to Ubuntu 18.0.4 LTS on a ssd.
I am very happy with bodhi and wish to migrate to ssd and replace ubuntu.
SSD mentioned twice. Installed and migrate. Kinda confusing.

Oh well.

https://www.howtoforge.com/tutorial/...tical-example/
 
1 members found this post helpful.
Old 07-19-2020, 02:05 AM   #3
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
i think what you are wanting to is copy the actual data and re-configure it so it understands the new device it runs on. the 2nd step could be the hardest to do. but you have one advantage in your favor: leave the old bodhi system on the hdd until everything works fine on the ssd. at first you will be running from the hdd to mount the ssd to work on it. do the copying from a live Linux CD/DVD so you are copying a "down system" so the copy is consistent. you will need to plan your partitioning in advance. if your partition sizes change you will need to format the target and copy individual files (rsync is your friend).
 
Old 07-19-2020, 09:58 AM   #4
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Quote:
Originally Posted by JPP47180 View Post
just
reinstall it.
 
Old 07-19-2020, 01:53 PM   #5
DarrenDrapkin
Member
 
Registered: Aug 2014
Location: Leeds, England
Distribution: Slackware x86 64 version 15.0
Posts: 127
Blog Entries: 3

Rep: Reputation: 27
Do you have any of your own data on the sdd along with Ubuntu, that you want to keep? If you do, then dd is probably the wrong kind of tool for that sort of thing, because dd copies whole partitions, not individual files.
 
Old 07-19-2020, 01:58 PM   #6
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
Unless you shrink the partition on the SSD and used free space to create a new partition.

Add: plus:
Code:
man dd
does more.

Last edited by jamison20000e; 07-19-2020 at 02:00 PM.
 
Old 07-19-2020, 02:57 PM   #7
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,972
Blog Entries: 32

Rep: Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465
JPP47180,

Welcome to LQ forums.

Either install Bodhi Linux on the SSD and then copy & paste your personal data from the HDD

OR

use Clonezilla to make an image of your HDD (to an external drive) and then restore the image to the SSD.

NB If the SSD is smaller than the HDD, additional steps are needed. Scroll down to the bottom of this link:

https://www.linuxquestions.org/quest...o-image-38106/
 
Old 07-27-2020, 08:19 AM   #8
JPP47180
LQ Newbie
 
Registered: Jul 2020
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thank you all for your answers and advises.

beachboy2
Quote:
Either install Bodhi Linux on the SSD and then copy & paste your personal data from the HDD
jamison20000e
Quote:
reinstall it
Yes, I can reinstall bodhi, + home, + all packages. What I want to do with dd is to reinstall everything in one shot! But what about grub and partition table if I use dd from hdd to sdd? This is what I need to know.

beachboy2
Quote:
use Clonezilla to make an image of your HDD (to an external drive) and then restore the image to the SSD
I don't like much using CloneZilla or anything of the kind. Not sure of the results.

I think I will reinstall bodhi and use dpkg --get-selections > mylist.txt and dpkg --set-selections < mylist.txt
Is this correct or do you know anything simpler?

Thank you all
 
Old 07-27-2020, 01:17 PM   #9
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
I'd echo what jamison20000e said in post #6. Boot off of a live disk, such as USB, use dd to copy the entire HDD contents to the SDD. The SDD should now be a bootable drive, boot off of it. Assuming there's free space, re-boot again off of a USB and use gparted to grow your partitions to consume more space on the SDD. If the SDD is smaller, then the question is whether or not the data on the HDD will fit. You can shrink the file system on the HDD if you have space to do this. Might be better in that situation to install fresh and then copy what you need from the HDD to the SDD. These are all preferences really. There's a variety of things you can do and you should decide what works best for you.
 
Old 07-27-2020, 01:19 PM   #10
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
With regards to your reluctance to use Clonezilla or dd to make a copy. What's the issue there? You make an identical copy of your existing drive onto the SDD. If that boots, you can check it to ensure it contains all the same information which is on the HDD. You've lost nothing, unless you did things in reverse and copied an empty drive onto the original drive. Assuming a UI based clone too will help you there, I know you can make bad mistakes with the dd command.
 
Old 08-09-2020, 09:08 AM   #11
masterclassic
Member
 
Registered: Jun 2007
Distribution: Knoppix, antiX
Posts: 252

Rep: Reputation: 73
It is true that one has to be careful with dd. Nevertheless it is used very often for this kind of system transfers.

One issue (mostly from the past) is related to the partition alignment. In the past (up to 2005 or 2010) it was usual to use the "cylinder" alignment, a mode coming from the early years of the hard drives and BIOS, late 1970s and 1980s, with hard drive capacities of several MiB or 10s of MiB. This model was used later in the era of GiB hard drives, with various BIOS changes. All partitions had to be aligned to some "cylinder" positions.

Newer hard drive technology, after 2000, with the production of SSDs and hard drives that used 4 KiB sectors instead of 512 bytes, was better used with the MiB alignment, with partition borders aligned to physical MiB positions. This is necessary for a slightly better speed performance and longer life for the SSD devices. If your original rotating drive was partitioned according to the cylinder alignment, this would be for the clone too. In this case it was necessary to "move" the entire partitions up to a MiB border using a partition editing software like GParted. Since 2005, the various operating systems started to use as default the MiB alignment (Windows vista at the time, and various Linux distributions). Now, I think all or most operating systems default to the MiB alignment, so the clone drive doesn't need any alignment adjustment, nevertheless it can be the case of older o.s. versions.

GParted can use both alignments (MiB as default, or cylinder), or can leave the alignment without any change.
It is not at all probable to fall into that issue, however it is useful to check the actual alignment with fdisk, by displaying the partition details in sector accuracy. fdisk and GParted can help you to identify the "if" and "of" device names, too.
 
1 members found this post helpful.
Old 08-09-2020, 11:13 AM   #12
speel
Member
 
Registered: Apr 2004
Posts: 354

Rep: Reputation: 30
You may want to consider copying your home dir to a external drive, then just copy it over after a fresh OS install.
 
Old 08-10-2020, 01:45 AM   #13
Roken
Member
 
Registered: Oct 2011
Location: Warrington, UK
Distribution: Arch local, Debian on VPS, several RPIs.
Posts: 300
Blog Entries: 1

Rep: Reputation: 55
You need to check first if this is a BIOS boot or UEFI boot. If UEFI, then you need to ensure that the new boot drive is properly formatted and configured.
 
Old 08-10-2020, 07:32 AM   #14
biker_rat
Member
 
Registered: Feb 2010
Posts: 369

Rep: Reputation: 220Reputation: 220Reputation: 220
Format and rsync is better than using an image clone system for this. Look at Archwiki https://wiki.archlinux.org/index.php...system_cloning .
 
Old 08-15-2020, 07:23 AM   #15
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
+1 Rsync has:
Quote:
man rsync
sweet!

Large amount of data copies were failing for me, Rsync saved me!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Will cloning one hdd (not ssd) to another encrypted hdd work on a cloning device? hddfsck Linux - Newbie 16 09-05-2019 07:02 AM
Install Linux in Toshiba u940 series with 32gb ssd and 750gb hdd I would like to have boot code in ssd only cvkchary Linux - Laptop and Netbook 4 08-31-2016 04:26 PM
IMAP Mailbox Migration utility for Gmail/iCloud and Calendar Migration tips TB0ne LinuxQuestions.org Member Success Stories 0 03-10-2013 12:33 PM
[SOLVED] Using both SSD/HDD for partitioning or is it better to just get external HDD? Switch7 Linux - Hardware 16 10-26-2009 12:23 PM
Mysql 4-5 migration as well as character set migration from latin1 to utf8? helptonewbie Linux - Server 3 05-15-2008 05:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration