Solved

Expand non-lvm Ubuntu Disk

Posted on 2016-09-07
4
18 Views
Last Modified: 2016-09-26
Hello,

I wanted to expand the /dev/sdb1 drive to the new maximum of 500G. Its a VM this is why it now gets 500GB instead of the 400GB.

fdisk -l

Disk /dev/sda: 16 GiB, 17179869184 bytes, 33554432 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
Disklabel type: dos
Disk identifier: 0x4928ed72

Device     Boot    Start      End  Sectors Size Id Type
/dev/sda1  *        2048 25165823 25163776  12G 83 Linux
/dev/sda2       25167870 33552383  8384514   4G  5 Extended
/dev/sda5       25167872 33552383  8384512   4G 82 Linux swap / Solaris

Disk /dev/sdb: 500 GiB, 536870912000 bytes, 1048576000 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
Disklabel type: dos
Disk identifier: 0x0b75651f

Device     Boot Start       End   Sectors  Size Id Type
/dev/sdb1        2048 838860799 838858752  400G 83 Linux

Open in new window


Whats the best and cleanest way?

Thanks in advance
Yves
0
Comment
Question by:Yves Illi
  • 2
4 Comments
 
LVL 87

Accepted Solution

by:
rindi earned 500 total points (awarded by participants)
ID: 41787787
Boot the VM from a GParted Live iso file and just expand the disk with it.
0
 

Author Comment

by:Yves Illi
ID: 41787799
i was searching for a no down time solution? is there something i can do while the system stays up and running
0
 
LVL 87

Expert Comment

by:rindi
ID: 41787822
I don't think that is possible. The partition must be dismounted before you can resize it. But since you are making it larger, it should be a quick process and the down-time minimal.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
In this step by step tutorial with screenshots, we will show you HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 6.5 (ESXi 6.5). This is important if you need to enable SSH remote access for additional troubleshooting of the ESXi hos…
Teach the user how to convert virtaul disk file formats and how to rename virtual machine files on datastores. Open vSphere Web Client: Review VM disk settings: Migrate VM to new datastore with a thick provisioned (lazy zeroed) disk format: Rename a…
Teach the user how to edit .vmx files to add advanced configuration options Open vSphere Web Client: Edit Settings for a VM: Choose VM Options -> Advanced: Add Configuration Parameters:

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now