<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div>Well something happened if not what was desired! But no twisted knickers!<br><br></div><div>I booted from a Ubuntu liveCD and then CTRL-ALT-F1 to get to command prompt and ran all commands as sudo.<br></div><div><br></div>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.<br></div>STEP 1<br></div>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:-<br></div>The partition table has been changed.<br></div>Calling ioctl() to re-read partition table.<br></div>WARNING: Re-reading the partition table failed with error 16: Device or resource busy.<br></div>The kernal still uses the old table.<br></div>The new table will be used at the next re-boot or after you run partprobe(8) or kpartx(8)<br></div>Syncing disks.<br><br></div>After step 2 the following was displayed:-<br></div>Physical Volume "/dev/sda5" changed<br></div>1 physical volume(s) resized/0 physical volume(s) not resized<br><br></div>After step 3 the following was displayed:-<br></div>New size (13736 extents) matches existing size (137?6 extents)<br><br></div>After step 4 the following was displayed:-<br></div>The file system is ???????? 14065664 blocks long or nothing to do!<br><br></div>The fsck command seemed ok and just reported 387877/3522560 file<br></div>4976509/14065664 blocks<br><br></div>I re-booted - seemed OK - but see the following outputs of fdisk -l , pvdisplay and parted -l<br><br>
<p style="margin-bottom:0cm;line-height:100%">sudo fdisk -l
</p>
<p style="margin-bottom:0cm;line-height:100%">
</p>
<p style="margin-bottom:0cm;line-height:100%">
</p>
<p style="margin-bottom:0cm;line-height:100%">Disk /dev/sda: 120.0
GB, 120034123776 bytes
</p>
<p style="margin-bottom:0cm;line-height:100%">255 heads, 63
sectors/track, 14593 cylinders, total 234441648 sectors
</p>
<p style="margin-bottom:0cm;line-height:100%">Units = sectors of 1
* 512 = 512 bytes
</p>
<p style="margin-bottom:0cm;line-height:100%">Sector size
(logical/physical): 512 bytes / 512 bytes
</p>
<p style="margin-bottom:0cm;line-height:100%">I/O size
(minimum/optimal): 512 bytes / 512 bytes
</p>
<p style="margin-bottom:0cm;line-height:100%">Disk identifier:
0x0003df66
</p>
<p style="margin-bottom:0cm;line-height:100%">
</p>
<p style="margin-bottom:0cm;line-height:100%"> Device Boot
Start End Blocks Id System
</p>
<p style="margin-bottom:0cm;line-height:100%">/dev/sda1 *
2048 499711 248832 83 Linux
</p>
<p style="margin-bottom:0cm;line-height:100%">/dev/sda2
501758 234440703 116969473 5 Extended
</p>
<p style="margin-bottom:0cm;line-height:100%">/dev/sda3
499712 501757 1023 8e Linux LVM
</p>
<p style="margin-bottom:0cm;line-height:100%">/dev/sda5
501760 117209087 58353664 8e Linux LVM
</p>
<p style="margin-bottom:0cm;line-height:100%">
</p>
<p style="margin-bottom:0cm;line-height:100%">Partition table
entries are not in disk order
</p>
<p style="margin-bottom:0cm;line-height:100%">
</p>
<p style="margin-bottom:0cm;line-height:100%">Disk
/dev/mapper/ubuntu--vg-root: 57.6 GB, 57612959744 bytes
</p>
<p style="margin-bottom:0cm;line-height:100%">255 heads, 63
sectors/track, 7004 cylinders, total 112525312 sectors
</p>
<p style="margin-bottom:0cm;line-height:100%">Units = sectors of 1
* 512 = 512 bytes
</p>
<p style="margin-bottom:0cm;line-height:100%">Sector size
(logical/physical): 512 bytes / 512 bytes
</p>
<p style="margin-bottom:0cm;line-height:100%">I/O size
(minimum/optimal): 512 bytes / 512 bytes
</p>
<p style="margin-bottom:0cm;line-height:100%">Disk identifier:
0x00000000
</p>
<p style="margin-bottom:0cm;line-height:100%">
</p>
<p style="margin-bottom:0cm;line-height:100%">Disk
/dev/mapper/ubuntu--vg-root doesn't contain a valid partition table
</p>
<p style="margin-bottom:0cm;line-height:100%">
</p>
<p style="margin-bottom:0cm;line-height:100%">Disk
/dev/mapper/ubuntu--vg-swap_1: 2139 MB, 2139095040 bytes
</p>
<p style="margin-bottom:0cm;line-height:100%">255 heads, 63
sectors/track, 260 cylinders, total 4177920 sectors
</p>
<p style="margin-bottom:0cm;line-height:100%">Units = sectors of 1
* 512 = 512 bytes
</p>
<p style="margin-bottom:0cm;line-height:100%">Sector size
(logical/physical): 512 bytes / 512 bytes
</p>
<p style="margin-bottom:0cm;line-height:100%">I/O size
(minimum/optimal): 512 bytes / 512 bytes
</p>
<p style="margin-bottom:0cm;line-height:100%">Disk identifier:
0x00000000
</p>
<p style="margin-bottom:0cm;line-height:100%">
</p>
<p style="margin-bottom:0cm;line-height:100%">Disk
/dev/mapper/ubuntu--vg-swap_1 doesn't contain a valid partition
table
</p>
<p style="margin-bottom:0cm;line-height:100%"><br>
</p>
<p style="margin-bottom:0cm;line-height:100%">sudo pvdisplay
</p>
<p style="margin-bottom:0cm;line-height:100%"> --- Physical
volume ---
</p>
<p style="margin-bottom:0cm;line-height:100%"> PV Name
/dev/sda5
</p>
<p style="margin-bottom:0cm;line-height:100%"> VG Name
ubuntu-vg
</p>
<p style="margin-bottom:0cm;line-height:100%"> PV Size
55.65 GiB / not usable 0
</p>
<p style="margin-bottom:0cm;line-height:100%"> Allocatable
yes (but full)
</p>
<p style="margin-bottom:0cm;line-height:100%"> PE Size
4.00 MiB
</p>
<p style="margin-bottom:0cm;line-height:100%"> Total PE
14246
</p>
<p style="margin-bottom:0cm;line-height:100%"> Free PE
0
</p>
<p style="margin-bottom:0cm;line-height:100%"> Allocated PE
14246
</p>
<p style="margin-bottom:0cm;line-height:100%"> PV UUID
tXWgOP-Ams3-ks9R-4UdZ-Q0C2-sr2r-krRnaR
</p>
<p style="margin-bottom:0cm;line-height:100%"><br>
</p>
<p style="margin-bottom:0cm;line-height:100%">$ sudo parted -l
</p>
<p style="margin-bottom:0cm;line-height:100%">Model: ATA TOSHIBA
MK1255GS (scsi)
</p>
<p style="margin-bottom:0cm;line-height:100%">Disk /dev/sda:
120GB
</p>
<p style="margin-bottom:0cm;line-height:100%">Sector size
(logical/physical): 512B/512B
</p>
<p style="margin-bottom:0cm;line-height:100%">Partition Table:
msdos
</p>
<p style="margin-bottom:0cm;line-height:100%">
</p>
<p style="margin-bottom:0cm;line-height:100%">Number Start End
Size Type File system Flags
</p>
<p style="margin-bottom:0cm;line-height:100%"> 1 1049kB
256MB 255MB primary ext2 boot
</p>
<p style="margin-bottom:0cm;line-height:100%"> 3 256MB
257MB 1048kB primary lvm
</p>
<p style="margin-bottom:0cm;line-height:100%"> 2 257MB
120GB 120GB extended
</p>
<p style="margin-bottom:0cm;line-height:100%"> 5 257MB
60.0GB 59.8GB logical lvm
</p>
<p style="margin-bottom:0cm;line-height:100%">
</p>
<p style="margin-bottom:0cm;line-height:100%">
</p>
<p style="margin-bottom:0cm;line-height:100%">Model: Linux
device-mapper (linear) (dm)
</p>
<p style="margin-bottom:0cm;line-height:100%">Disk
/dev/mapper/ubuntu--vg-swap_1: 2139MB
</p>
<p style="margin-bottom:0cm;line-height:100%">Sector size
(logical/physical): 512B/512B
</p>
<p style="margin-bottom:0cm;line-height:100%">Partition Table:
loop
</p>
<p style="margin-bottom:0cm;line-height:100%">
</p>
<p style="margin-bottom:0cm;line-height:100%">Number Start End
Size File system Flags
</p>
<p style="margin-bottom:0cm;line-height:100%"> 1 0.00B
2139MB 2139MB linux-swap(v1)
</p>
<p style="margin-bottom:0cm;line-height:100%">
</p>
<p style="margin-bottom:0cm;line-height:100%">
</p>
<p style="margin-bottom:0cm;line-height:100%">Model: Linux
device-mapper (linear) (dm)
</p>
<p style="margin-bottom:0cm;line-height:100%">Disk
/dev/mapper/ubuntu--vg-root: 57.6GB
</p>
<p style="margin-bottom:0cm;line-height:100%">Sector size
(logical/physical): 512B/512B
</p>
<p style="margin-bottom:0cm;line-height:100%">Partition Table:
loop
</p>
<p style="margin-bottom:0cm;line-height:100%">
</p>
<p style="margin-bottom:0cm;line-height:100%">Number Start End
Size File system Flags
</p>
<p style="margin-bottom:0cm;line-height:100%"> 1 0.00B
57.6GB 57.6GB ext4
</p>
<br><br></div>I seem to have gained another LVM partition :)<br></div>/dev/sda3 and note the 8e ID<br><br><br></div>The pvdisplay output now shows against PV size "not usable 0" Before it said "not usable 2.00 MiB<br><br></div>The output from parted -l differs insofar as the additional partition 3 is shown.<br><br></div>sorry, for this lengthy post but I thought it best to be as comprehensive as possible.<br><br></div>Would be very grateful if you could plot a way ahead for me.<br></div>Thanks<br></div>DaveG<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 7 February 2016 at 17:07, Daniel Llewellyn <span dir="ltr"><<a href="mailto:diddledan@gmail.com" target="_blank">diddledan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On 7 February 2016 at 16:59, David Goldsbrough <span dir="ltr"><<a href="mailto:daveg@boavon.plus.com" target="_blank">daveg@boavon.plus.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>That sounds brilliant Daniel!<br></div>Excuse the noob questions:-<br></div><div>I guess I need to boot from a live CD to do this?<br></div><div> Will those steps destroy my data? I appreciate a backup is always wise - its the restore that scares me!<br></div>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<br></div>Thanks DaveG</div>
</blockquote></div><div class="gmail_extra"><br></div></div></div>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)</div><span class="HOEnZb"><font color="#888888"><div class="gmail_extra"><div><br></div>-- <br><div>Regards,<br> The Honeymonster Daniel Llewellyn</div>
</div></font></span></div>
</blockquote></div><br></div>