Well something happened if not what was desired! But no twisted knickers! I booted from a Ubuntu liveCD and then CTRL-ALT-F1 to get to command prompt and ran all commands as sudo.
I scribbled down outputs following many steps/commands you gave but forgive me if I cannot fully transcribe to here - my eyesight is so poor. STEP 1 No outputs from 1 to 3 written down but all seemed within order (question though - should I have been typing "5" rather than "3" as per your instruction?) At 4. when pressing "w" the following outputs were given:- The partition table has been changed. Calling ioctl() to re-read partition table. WARNING: Re-reading the partition table failed with error 16: Device or resource busy. The kernal still uses the old table. The new table will be used at the next re-boot or after you run partprobe(8) or kpartx(8) Syncing disks. After step 2 the following was displayed:- Physical Volume "/dev/sda5" changed 1 physical volume(s) resized/0 physical volume(s) not resized After step 3 the following was displayed:- New size (13736 extents) matches existing size (137?6 extents) After step 4 the following was displayed:- The file system is ???????? 14065664 blocks long or nothing to do! The fsck command seemed ok and just reported 387877/3522560 file 4976509/14065664 blocks I re-booted - seemed OK - but see the following outputs of fdisk -l , pvdisplay and parted -l sudo fdisk -l Disk /dev/sda: 120.0 GB, 120034123776 bytes 255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0003df66 Device Boot Start End Blocks Id System /dev/sda1 * 2048 499711 248832 83 Linux /dev/sda2 501758 234440703 116969473 5 Extended /dev/sda3 499712 501757 1023 8e Linux LVM /dev/sda5 501760 117209087 58353664 8e Linux LVM Partition table entries are not in disk order Disk /dev/mapper/ubuntu--vg-root: 57.6 GB, 57612959744 bytes 255 heads, 63 sectors/track, 7004 cylinders, total 112525312 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/mapper/ubuntu--vg-root doesn't contain a valid partition table Disk /dev/mapper/ubuntu--vg-swap_1: 2139 MB, 2139095040 bytes 255 heads, 63 sectors/track, 260 cylinders, total 4177920 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/mapper/ubuntu--vg-swap_1 doesn't contain a valid partition table sudo pvdisplay --- Physical volume --- PV Name /dev/sda5 VG Name ubuntu-vg PV Size 55.65 GiB / not usable 0 Allocatable yes (but full) PE Size 4.00 MiB Total PE 14246 Free PE 0 Allocated PE 14246 PV UUID tXWgOP-Ams3-ks9R-4UdZ-Q0C2-sr2r-krRnaR $ sudo parted -l Model: ATA TOSHIBA MK1255GS (scsi) Disk /dev/sda: 120GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 1049kB 256MB 255MB primary ext2 boot 3 256MB 257MB 1048kB primary lvm 2 257MB 120GB 120GB extended 5 257MB 60.0GB 59.8GB logical lvm Model: Linux device-mapper (linear) (dm) Disk /dev/mapper/ubuntu--vg-swap_1: 2139MB Sector size (logical/physical): 512B/512B Partition Table: loop Number Start End Size File system Flags 1 0.00B 2139MB 2139MB linux-swap(v1) Model: Linux device-mapper (linear) (dm) Disk /dev/mapper/ubuntu--vg-root: 57.6GB Sector size (logical/physical): 512B/512B Partition Table: loop Number Start End Size File system Flags 1 0.00B 57.6GB 57.6GB ext4 I seem to have gained another LVM partition :) /dev/sda3 and note the 8e ID The pvdisplay output now shows against PV size "not usable 0" Before it said "not usable 2.00 MiB The output from parted -l differs insofar as the additional partition 3 is shown. sorry, for this lengthy post but I thought it best to be as comprehensive as possible. Would be very grateful if you could plot a way ahead for me. Thanks DaveG On 7 February 2016 at 17:07, Daniel Llewellyn <diddle...@gmail.com> wrote: > > > On 7 February 2016 at 16:59, David Goldsbrough <da...@boavon.plus.com> > wrote: > >> That sounds brilliant Daniel! >> Excuse the noob questions:- >> I guess I need to boot from a live CD to do this? >> Will those steps destroy my data? I appreciate a backup is always wise >> - its the restore that scares me! >> Bear in mind I have the original 60GB disk and have done very little on >> my new disk and I suppose I would not cry over any data loss during an fdisk >> Thanks DaveG >> > > These steps should leave your data intact. You can probably do the process > from your normal system, but it might be better to do it via a live-cd so > that the root filesystem is not mounted and therefore less likely to get > its knickers in a twist (technical term :-p) > > -- > Regards, > The Honeymonster Daniel Llewellyn >
-- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/