Let me start Daniel, by saying a big thank you for all your time and patience in helping me with these issues - I really do appreciate it.
Well, I did what you advised. Deleted the inadvertent /dev/sda3, then deleted /dev/sda5, and did a new, specifying a logical partition and accepting the defaults after this. At stage 3 when telling the system that it was an LVM partition I typed "5" and not "3". I then did a sudo pvresize /dev/sda5 and had same outputs as last time "Physical volume /dev/sda5 changed 1 physical volume(s) resized/0 physical volume(s) not resized. sudo lvextend seemed to go ok as did sudo resize2fs. I ran sudo fsck at the end and all seemed fine. I did all this from a liveCD again. But on reboot - an unexpected outcome - it did not boot with the following outputs: Gave up waiting for root device Common problems: - Boot args (cat /proc/cmdline) - check rootdelay=(did the system wait long enough?) - check root=(did the system wait for the right device?) -Missing modules (cat /proc/modules; ls /dev) ALERT! /dev/mapper/ubuntu--vg-root does not exist. Dropping to a shell! Busy Box v1.21.1 (ubuntu 1:1.21.0-lubuntul) built in shell (ash) Enter 'help' for a list of built in commands (initramfs) >From here I tried a re-boot just in case but the same. I tried re-booting from my liveCD without success - but I might have an issue with that liveCD. It kept re-booting to a GRUB 2 screen (which I dont normally see). So, I have the original 60GB disk and have booted it as a USB drive. I now append the outputs from fdisk -l, pvdisplay and parted -l which hopefully gives some clues as to what has happened and assist in correcting. Of course the outputs show 2 drives - /dev/sdb is my original 60MB I have booted from. Hope you can help further DaveG $ 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/sda5 503806 234440703 116968449 8e Linux LVM Disk /dev/sdb: 60.0 GB, 60011641856 bytes 64 heads, 32 sectors/track, 57231 cylinders, total 117210238 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/sdb1 * 2048 499711 248832 83 Linux /dev/sdb2 501758 117209087 58353665 5 Extended /dev/sdb5 501760 117209087 58353664 8e Linux LVM 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 /dev/sda5 No physical volume label read from /dev/sda5 Failed to read physical volume "/dev/sda5" $ 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 2 257MB 120GB 120GB extended 5 258MB 120GB 120GB logical lvm Model: Mass Storage Device (scsi) Disk /dev/sdb: 60.0GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 1049kB 256MB 255MB primary ext2 boot 2 257MB 60.0GB 59.8GB 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 On 8 February 2016 at 18:07, Daniel Llewellyn <diddle...@gmail.com> wrote: > > > On 7 February 2016 at 21:56, David Goldsbrough <da...@boavon.plus.com> > wrote: > >> 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?) >> > > Yes, I appear to have mistyped. > > The partition you now have at /dev/sda3 needs removing with “d” followed > by “3” and then “enter” again as before. > > You also need to repeat the delete step with “5” instead of “3” to remove > the partition at /dev/sda5. > > Then you can redo steps 2 thru 4 after fixing step 2 which I also got > wrong when I said to “accept the defaults”: you need to specify that you > want it to create a “logical” partition rather than “primary” when it > prompts you what type of partition to create. (I believe the prompt is > "Primary/Logical?" where the response needs to be to type the word > "logical" followed by enter.) > > -- > Regards, > The Honeymonster Daniel Llewellyn >
-- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/