?
Solved

Expand non-lvm Ubuntu Disk

Posted on 2016-09-07
4
Medium Priority
?
45 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 88

Accepted Solution

by:
rindi earned 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
Advanced tutorial on how to run the esxtop command to capture a batch file in csv format in order to export the file and use it for performance analysis. He demonstrates how to download the file using a vSphere web client (or vSphere client) and exp…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

752 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