![]() Swapon: /dev/sda5: found swap signature: version 1, page-size 4, same byte order Setting up swapspace version 1, size = 8384508 KiB New UUID and turn the swap on sudo mkswap /dev/sda5 Turned out you need to run mkswap, adjust /etc/fstab to the Slight catch: After rebooting the swap space wasn’tĪctive. The filesystem on /dev/sda1 is now 63439359 blocks df -h Old_desc_blocks = 6, new_desc_blocks = 16 None 100M 16K 100M 1% sudo resize2fs /dev/sda1įilesystem at /dev/sda1 is mounted on / on-line resizing required df -hįilesystem Size Used Avail Use% Mounted on You can do this with resize2fs online on a mounted partition. I noticed afterwards that I didn’t set the bootable flagīut apparently you don’t really need it. ![]() The next reboot or after you run partprobe(8) or kpartx(8) WARNING: Re-reading the partition table failed with error 16: Device or resource busy. I/O size (minimum/optimal): 512 bytes / 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes ![]() Simply used for swap, so I could easily move it without losing anyĬreate a new primary partition starting at the same sector as the original one just with a bigger size (leave some for swap)Ĭreate a new extended partition with a logical partition in it to hold the swap space sudo fdisk /dev/sdaĭisk /dev/sda: 268.4 GB, 268435456000 bytesĢ55 heads, 63 sectors/track, 32635 cylinders, total 524288000 sectors You can use fdisk to change the partition table while running.Ĭreated 3 partitions: one primary (sda1), one extended (sda2) with a Now you have a bigger hardĭrive but you still need to a) increase the partition size and b) In ESXi this is simple, just increase the size of the virtual disk. If you lose your data because you didn’t perform a backup I was doing this on a VM which I backed up Refer to Live resizing of an ext4 filesytem on LinuxĬan easily screw your data if you make a mistake. ![]() You can use fdisk to change your partition table while running. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |