Solved

Expand non-lvm Ubuntu Disk

Posted on 2016-09-07
4
24 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 88

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 88

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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
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:
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

930 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

11 Experts available now in Live!

Get 1:1 Help Now