Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Expand non-lvm Ubuntu Disk

Posted on 2016-09-07
4
Medium Priority
?
51 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

610 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