Skip to main content
edited title
Link
αғsнιη
  • 41.9k
  • 17
  • 75
  • 117

How can Ito expand ext4 partition size using command-line?

I was searching for the normal way of how to grow my partition, this link does not help then but you have to click to find out. This should perhaps be already in the header? It is just an idea. No drama, if this edit is not accepted, I am new here.
Source Link
αғsнιη
  • 41.9k
  • 17
  • 75
  • 117

How can I expand ext4 partition size on debian (server without GUI like gparted, just SSH)using command-line?

I have a drive with this configuration:

fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000f1b8b

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        2612    20971520   83  Linux
/dev/sda3           60736       60801      525312   82  Linux swap / Solaris

There is 478GB unallocated space, how would I go about adding this space to /dev/sda1/dev/sda1 without losing the data that is currently on /dev/sda1/dev/sda1? (the filesystem is ext4).

NOTE: it is a server with only SSH, no GUI for running stuff like gparted.

How can I expand ext4 partition size on debian (server without GUI like gparted, just SSH)

I have a drive with this configuration:

fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000f1b8b

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        2612    20971520   83  Linux
/dev/sda3           60736       60801      525312   82  Linux swap / Solaris

There is 478GB unallocated space, how would I go about adding this space to /dev/sda1 without losing the data that is currently on /dev/sda1? (the filesystem is ext4).

NOTE: it is a server with only SSH, no GUI for running stuff like gparted.

How can I expand ext4 partition size using command-line?

I have a drive with this configuration:

fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000f1b8b

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        2612    20971520   83  Linux
/dev/sda3           60736       60801      525312   82  Linux swap / Solaris

There is 478GB unallocated space, how would I go about adding this space to /dev/sda1 without losing the data that is currently on /dev/sda1? (the filesystem is ext4).

NOTE: it is a server with only SSH, no GUI for running stuff like gparted.

I was searching for the normal way of how to grow my partition, this link does not help then but you have to click to find out. This should perhaps be already in the header? It is just an idea. No drama, if this edit is not accepted, I am new here.
Link

How can I expand ext4 partition size on debian (server without GUI like gparted, just SSH)

deleted 42 characters in body
Source Link
tshepang
  • 67.7k
  • 94
  • 226
  • 297
Loading
added 75 characters in body
Source Link
Seb
  • 661
  • 1
  • 5
  • 5
Loading
Source Link
Seb
  • 661
  • 1
  • 5
  • 5
Loading