move and resize SSD partitions - with OS on it
by bennypr0fane from LinuxQuestions.org on (#5D1Z0)
So, I've never made any adjustments to the partition table of an SSD after doing the initial installations, and I don't know much about how an SSD operates.
1. My basic question is: When I move things around on an SSD, is it different from doing that on a hard drive?
On a HDD, the partitions are numbered from the center outwards, the innermost one being first. When you move/extend a partition to the center, we talk about moving it "to the left" in a partition manager graph, and files are saved at the start, occupying sectors from left to right.
If I have a partition at the outer rim of a HDD and want to enlarge it, I'll have to add space "at the start/left" of it, and all data will have to be moved to the beginning of that partition. When I add space to right/outer side of a partition, data is not moved.
I just know that SSDs don't have a center or outer rim, since they're just memory chips, and the location of their first sector is probably not determined "geographically", but logically, I guess?
2. My more specific question: If do that on an SSD, will data also need to be moved to its "beginning" or "to the left" or the likes?
I have a GPT partition table residing on an NMVe SSD, with the Linux operating system (Manjaro) residing on the third partition, a swap partition, and empty space between 1 and 3 (where there used to be my first OS):
Code:[ben@paul-mnj ~]$ sudo parted -l
Modell: INTEL SSDPEKNW010T8 (nvme)
Festplatte /dev/nvme0n1: 1024GB
Sektorgroe (logisch/physisch): 512B/512B
Partitionstabelle: gpt
Disk-Flags:
Nummer Anfang Ende Groe Dateisystem Name Flags
1 1049kB 538MB 537MB fat32 primary boot, esp
3 630GB 638GB 8590MB linux-swap(v1) primary swap
4 638GB 1024GB 386GB ext4Now if I was to enlarge partition 4 to take up all the empty space, will it take a lot of time and be rather risky, because all blocks are copied to a different location - like on a HDD - or does an SSD somehow allow for skipping all that crap, and just have more space left and right?


1. My basic question is: When I move things around on an SSD, is it different from doing that on a hard drive?
On a HDD, the partitions are numbered from the center outwards, the innermost one being first. When you move/extend a partition to the center, we talk about moving it "to the left" in a partition manager graph, and files are saved at the start, occupying sectors from left to right.
If I have a partition at the outer rim of a HDD and want to enlarge it, I'll have to add space "at the start/left" of it, and all data will have to be moved to the beginning of that partition. When I add space to right/outer side of a partition, data is not moved.
I just know that SSDs don't have a center or outer rim, since they're just memory chips, and the location of their first sector is probably not determined "geographically", but logically, I guess?
2. My more specific question: If do that on an SSD, will data also need to be moved to its "beginning" or "to the left" or the likes?
I have a GPT partition table residing on an NMVe SSD, with the Linux operating system (Manjaro) residing on the third partition, a swap partition, and empty space between 1 and 3 (where there used to be my first OS):
Code:[ben@paul-mnj ~]$ sudo parted -l
Modell: INTEL SSDPEKNW010T8 (nvme)
Festplatte /dev/nvme0n1: 1024GB
Sektorgroe (logisch/physisch): 512B/512B
Partitionstabelle: gpt
Disk-Flags:
Nummer Anfang Ende Groe Dateisystem Name Flags
1 1049kB 538MB 537MB fat32 primary boot, esp
3 630GB 638GB 8590MB linux-swap(v1) primary swap
4 638GB 1024GB 386GB ext4Now if I was to enlarge partition 4 to take up all the empty space, will it take a lot of time and be rather risky, because all blocks are copied to a different location - like on a HDD - or does an SSD somehow allow for skipping all that crap, and just have more space left and right?