I'm in the process of trying to ghost my system onto a bigger drive, but after using dd to ghost all of sda onto the new drive, I discovered that Partition Manager wouldn't let me expand the main partition. I'm assuming it's because the partition it's using for swap space is in the way, order-wise. Will it work if I start over and this time move each partition one at a time, so I can expand sda1 before moving the swap space? I was worried maybe it wouldn't know where to look for things if they weren't in exactly the same spot as before.
Announcement
Collapse
No announcement yet.
I'm ghosting my system. Can I move partitions one at a time?
Collapse
This topic is closed.
X
X
-
I'm in the process of trying to ghost my system onto a bigger drive ...
The dd Command
https://www.kubuntuforums.net/showth...The-dd-CommandAn intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski
- Top
- Bottom
-
I'm pretty sure that GParted would do what you want.Windows no longer obstructs my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock Holmes
- Top
- Bottom
Comment
-
Originally posted by Qqmike View PostYou raise a good issue, though. I would need to dig into my notes, but I'm pretty sure that when you use dd to go from smaller to bigger (drive-wise), the result is not seen as a "bigger" drive. dd copies everything, including filesystem structure and related data.
To clarify, the plan was to dd sda1 by itself, then use Partition Manager to expand it, then dd sda2.
- Top
- Bottom
Comment
-
What dd command are you using?
Smaller disk to larger disk, yes, should work, after which you should be able to use GParted (or similar) to expand partitions.
I found one command I had used:
Code:dd if=/dev/sda of=/dev/sdb bs=4096 conv=notrunc,noerror
An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski
- Top
- Bottom
Comment
-
I was planning to use
Code:dd if=/dev/sda1 of=/dev/sdb1 bs=64K status=progress
- Top
- Bottom
Comment
-
dd is a 'bit for bit' clone of the source to the destination.Windows no longer obstructs my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock Holmes
- Top
- Bottom
Comment
-
If the output destination (of=) doesn't exist; isn't mounted; the command is going to fail.Windows no longer obstructs my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock Holmes
- Top
- Bottom
Comment
-
Yeah, I can think of safer and easier ways to do this. Qqmike is correct, to dd /dev/sdb is just a destination. If there's no device mounted there, dd will not fail. It will create a file of the size you send it.
Proof:
Code:stuart@office:~/.local$ ll /dev/sdm ls: cannot access '/dev/sdm': No such file or directory stuart@office:~/.local$ sudo dd if=/dev/zero of=/dev/sdm bs=1024 count=512 [sudo] password for stuart: 512+0 records in 512+0 records out 524288 bytes (524 kB, 512 KiB) copied, 0.000482235 s, 1.1 GB/s stuart@office:~/.local$ ll /dev/sdm -rw-r--r-- 1 root root 524288 Mar 2 17:28 /dev/sdm
Why not boot to clonezilla and let it do a partition to partition clone? Why not re-install and just move your home? Why not boot to a liveUSB and do an rsync? Why not use a backup and restore program?
BTW, just because it's my thing and I can't help myself, if you had used btrfs we wouldn't be having this discussion at all. You already be done.
- Top
- Bottom
Comment
-
Originally posted by Steve the Pocket View PostI was worried maybe it wouldn't know where to look for things if they weren't in exactly the same spot as before.
One gotcha I learned the hard way is that cloning a partition usually just clones its UUID, and confusion occurs if at boot the UUIDs are not unique. gparted has a "New UUID" function to avoid that case.
Now, a thought. I dislike UUIDs, and I use labels instead. I have to make sure my drives have unique labels, but that's easy.
Regards, John LittleRegards, John Little
- Top
- Bottom
Comment
Comment