guyran, it was Gordon who mentioned putting the swap partition close to the start and this was the approach that I used when doing what you appear to be wanting to do. I took the drive out, mounted it in an Ubuntu PC and used 'disks' and 'gparted' to shrink the first partition (ext3, where the OS is) to a minimum, moved the swap partition down next to it then added an ext4 partition filling the rest of the (3TB) disk. My partition table, printed via 'fdisk' is:
Code: Select all
Disk /dev/sda: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Disk model: WDC WD30EZRZ-00Z
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: D6AB7D7B-50AB-4F7F-86A2-E5F52DD7924F
Device Start End Sectors Size Type
/dev/sda1 2048 10002431 10000384 4.8G Linux filesystem
/dev/sda2 10002432 11051007 1048576 512M Linux swap
/dev/sda3 11051008 5860532223 5849481216 2.7T Linux filesystem
I then mounted the new partition to a temporary location so that I could copy across the data in /home to it prior to re-mounting it as /home. This didn't go completely smoothly; I did lose some data in the process. I can't remember how or what, exactly, but it was re-creatable. If you have anything precious, it may be best to back it up onto a memory stick or elsewhere on your network.
This is my 'etc/fstab' file:
Code: Select all
/dev/sda1 / ext3 noatime 0 1
/dev/sda3 /home ext4 defaults 0 0
Once you have a working flash drive to re-install buster, my thoughts are that you'll be good using it going forwards.
To locate the b3 on the network, use 'sudo nast -m', the location should then be obvious and you're right that it seems to wander around, probably because my router remembers the previous location and assigns the next IP address.
Code: Select all
Nast V. 0.2.0
Mapping the Lan for 255.255.255.0 subnet ... please wait
MAC address Ip address (hostname)
===========================================================
50:E5:49:EC:A3:0E 192.168.1.10 (corsair.lan) (*)
B8:27:EB:FB:1A:C9 192.168.1.1 (raspberrypi)
04:92:26:D3:AE:B8 192.168.1.2 (lofty)
00:08:9B:ED:26:50 192.168.1.3 (qnap)
E8:DE:27:03:CF:0C 192.168.1.4 (garage)
B8:27:EB:77:D7:73 192.168.1.5 (dripper)
B8:27:EB:F6:BA:BA 192.168.1.7 (spectrum)
C4:4E:AC:14:ED:AE 192.168.1.8 (vero)
00:22:02:00:41:FD 192.168.1.9 (b3)
F0:6E:0B:8D:10:A3 192.168.1.35 (LEOS-XBOX.lan)
DC:D3:21:55:F5:DF 192.168.1.73 (humax.lan)
A4:08:F5:92:85:02 192.168.1.254 (dsldevice.lan)
(*) This is localhost
Finished