Partitions: resize & move mixed types
Greets
I'm using systemrescue, trying to resize two partitions on sda which runs Lenny in a small NAS. sda is 1.5TB which has about 500G of unused space after sda4. Code:
Filesystem Type Size Used Avail Use% Mounted on /dev/sda4 from ~929GB to the end of the physical disk and /dev/md0 (root) from ~1GB to to ~5GB I am currently making a direct copy of the disk to the exact same model empty disk using: Code:
ddrescue --no-split /dev/sda /dev/sdb logfile Looking at gparted (using a different but similarly setup disk), it seems that when I resize sda4 and move it to the end of the disk, then shift sda3 and sda2 over "to the right", and resize sda1 to take the extra space (effectively enlarging it), there is always some "leftover" unallocated space between sda1 and sda2 (I don't care if there is space at beginning and end of the disk but i can't seem to eliminate the space in between). Anyone know of any such way to eliminate the unallocated space? Some type of alignment that will work for these varied type paritions? Thanks in advance |
Hi there,
Quote:
Quote:
Quote:
I don't know if that's the issue here; it's just a guess. [X] Doc CPU |
Quote:
Here's fdisk -l: Code:
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted. Code:
Model: Seagate ST31500541AS (scsi) Quote:
I had thought there'd be a faster way image the disk with some util, that would NOT waste time copying the "unused" bits on the disk. Perhaps that would be much more complicated than I assumed. Quote:
|
Quote:
Quote:
|
Quote:
Quote:
|
well, it didn't quite work. Good thing I'm working on the copy.
After resizing and moving sda4 (the xfs part), gparted errored on sda3, complaining device busy. I realized that the md device was actually auto-started by the OS so I stopped it and re-opened gparted and moved it over to the right. I had similar issues with sda2, and sda1, but eventually got it done, HOWEVER, none of the raid partitions (md0, md1, md2) were showing in the parted --list or proc/mdstat. I tried to issue a mdadm -Cv to recreate the arrays, but then parted showed the array (eg. md0) with unknown label and unknown partition type. So, I guess I'm missing some steps required to successfully move/resize RAID md array partitions. If anyone can suggest a HOWTO or some helpful links, it'd be much appreciated. |
All times are GMT -5. The time now is 04:11 PM. |