I have an old eeePc which has a 2Gb SSD. I have a minimal Ubuntu installation on it and it works OK.
However there seems to be some 'missing' disk space.
fdisk seems to return what one would expect:-
root@eeepc:~# fdisk -l
Disk /dev/sda: 2000 MB, 2000388096 bytes 255 heads, 63 sectors/track, 243 cylinders, total 3907008 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: 0x000312c5
Device Boot Start End Blocks Id System /dev/sda1 * 2048 499711 248832 83 Linux /dev/sda2 501758 3905535 1701889 5 Extended /dev/sda5 501760 3905535 1701888 8e Linux LVM
Disk /dev/mapper/eeepc--vg-root: 1170 MB, 1170210816 bytes 255 heads, 63 sectors/track, 142 cylinders, total 2285568 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/eeepc--vg-root doesn't contain a valid partition table
Disk /dev/mapper/eeepc--vg-swap_1: 524 MB, 524288000 bytes 255 heads, 63 sectors/track, 63 cylinders, total 1024000 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/eeepc--vg-swap_1 doesn't contain a valid partition table
BUT why does that /dev/mapper/eeepc--vg-root partition show as only 1.1Gb, there's 1.7Gb or so for it to use in /dev/sda5. In fact what is all that /dev/mapper/eeepc--vg-root stuff about? I don't have anything like it on my other machines.
On Thu, Aug 14, 2014 at 10:10:27PM +0100, Chris Green wrote:
I have an old eeePc which has a 2Gb SSD. I have a minimal Ubuntu installation on it and it works OK.
However there seems to be some 'missing' disk space.
fdisk seems to return what one would expect:-
root@eeepc:~# fdisk -l
Disk /dev/sda: 2000 MB, 2000388096 bytes 255 heads, 63 sectors/track, 243 cylinders, total 3907008 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: 0x000312c5 Device Boot Start End Blocks Id System /dev/sda1 * 2048 499711 248832 83 Linux /dev/sda2 501758 3905535 1701889 5 Extended /dev/sda5 501760 3905535 1701888 8e Linux LVM Disk /dev/mapper/eeepc--vg-root: 1170 MB, 1170210816 bytes 255 heads, 63 sectors/track, 142 cylinders, total 2285568 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/eeepc--vg-root doesn't contain a valid partition table Disk /dev/mapper/eeepc--vg-swap_1: 524 MB, 524288000 bytes 255 heads, 63 sectors/track, 63 cylinders, total 1024000 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/eeepc--vg-swap_1 doesn't contain a valid partition table
BUT why does that /dev/mapper/eeepc--vg-root partition show as only 1.1Gb, there's 1.7Gb or so for it to use in /dev/sda5. In fact what is all that /dev/mapper/eeepc--vg-root stuff about? I don't have anything like it on my other machines.
Urk, I've just realised what's happened. *Both* of those logical volumes (root and swap) are on the 1.6Gb /dev/sda5 and just the /boot partition is on /dev/sda1.
I need to reduce the size of the boot partition and probably the swap partition too.
On Thu, Aug 14, 2014 at 10:35:33PM +0100, Chris Green wrote:
On Thu, Aug 14, 2014 at 10:10:27PM +0100, Chris Green wrote:
BUT why does that /dev/mapper/eeepc--vg-root partition show as only 1.1Gb, there's 1.7Gb or so for it to use in /dev/sda5. In fact what is all that /dev/mapper/eeepc--vg-root stuff about? I don't have anything like it on my other machines.
Urk, I've just realised what's happened. *Both* of those logical volumes (root and swap) are on the 1.6Gb /dev/sda5 and just the /boot partition is on /dev/sda1.
I need to reduce the size of the boot partition and probably the swap partition too.
OK, I'll continue talking to myself! :-)
I've resized the underlying partitions OK using gparted. I've also resized the logical volumes using lvreduce/lvresize. Finally I resized the filesystem on the root partition using resize2fs.
Is that it? There isn't an equivalent of resize2fs required for the swap partition is there?
On 14/08/14 23:07, Chris Green wrote:
OK, I'll continue talking to myself! :-)
I'm listening :-)
I've resized the underlying partitions OK using gparted. I've also resized the logical volumes using lvreduce/lvresize. Finally I resized the filesystem on the root partition using resize2fs. Is that it? There isn't an equivalent of resize2fs required for the swap partition is there?
I don't think any data is held in swap partition when the computer is off (unless you're hibernating?), so if you've booted from a boot disk, you can resize and reformat the swap partition without worrying about data loss.
Steve