[ubuntu-uk] partitioning
David Goldsbrough
daveg at boavon.plus.com
Sun Feb 7 13:35:58 UTC 2016
Many thanks for your responses. I only get the daily digest of ubuntu-uk
so forgive me if there have been some responses that cross in the mail.
Since my original post I have been doing more research. TBH I cannot
recall ticking the LVM option when doing the original install some years
ago.
I followed Jim Price link
<
http://www.howtogeek.com/211937/how-to-use-lvm-on-ubuntu-for-easy-partition-resizing-and-snapshots/
>
I installed the LVM GUI and to be frank it leaves me just as confused as
Gparted.
I even researched some of the command line things for LVM - just as
confusing. Some outputs of some commands though may be useful here:-
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 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
--- Physical volume ---
PV Name /dev/sda5
VG Name ubuntu-vg
PV Size 55.65 GiB / not usable 2.00 MiB
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
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
As yet I have done no more and thought it best to post back these outputs
first.
Does the plan of removing the secondary partition and the extended
partition inside still good? How exactly do I do that - with a Gparted
livecd? Or a Ubuntu livecd?
Do i use a Gparted liveCD to resize afterwards? Or can I use the LVM GUI?
In /dev notation exactly what is the secondary partition and extended
partition?
My understanding, which I accept is likely to be wrong, is that I must keep
and not mess with /dev/sda1 - that is where my MBR and GRUB sits; .dev/sda2
and /dev/sda5 is just confusing me no end. I guess /dev/sda2 is what is
holding all my original stuff from the 60GB disc I cloned so it does not
make sense to me to delete it?
And you guessed right Liam - I do not run in my bare feet! ;)
As always I appreciate your help.
DaveG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-uk/attachments/20160207/3c56188d/attachment.html>
More information about the ubuntu-uk
mailing list