Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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).
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.
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?
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.