More
referral
Increase your income with Hive. Invite your friends and earn real cryptocurrency!

How to resize a partition on HiveOS?

I have some strange partition /dev/sda2 of 6.5G size on my HiveOS:

root@rig0:/# cat /proc/partitions                                                                                                                                                                                  
major minor  #blocks  name                                                                                                                                                                                         

8        0  117219767 sda                                                                                                                                                                                       
8        1      20480 sda1                                                                                                                                                                                      
8        2    7323648 sda2             

root@rig0:/# df -h                                                                                                                                                                                                 
Filesystem      Size  Used Avail Use% Mounted on                                                                                                                                                                   
udev            1.9G     0  1.9G   0% /dev                                                                                                                                                                         
tmpfs           383M   44M  340M  12% /run                                                                                                                                                                         
/dev/sda2       6.8G  6.5G     0 100% /                                                                                                                                                                            
tmpfs           1.9G     0  1.9G   0% /dev/shm                                                                                                                                                                     
tmpfs           5.0M     0  5.0M   0% /run/lock                                                                                                                                                                    
tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup                                                                                                                                                               
tmpfs           100M   16K  100M   1% /tmp                                                                                                                                                                         
tmpfs           1.9G     0  1.9G   0% /var/tmp                                                                                                                                                                     
tmpfs           1.9G   30M  1.9G   2% /var/log                                                                                                                                                                     
tmpfs           1.9G     0  1.9G   0% /var/log/journal                                                                                                                                                             
tmpfs           1.9G     0  1.9G   0% /var/log/apt                                                                                                                                                                 
/dev/sda1        20M  5.7M   15M  29% /hive-config      

while SSD hard drive is of 120G size.

How to resize it? Is it a right way to follow the steps described in this post?

Should I enter the recovery mode?

I was able to try this, for example:

root@rig0:/# parted -l
Model: ATA KINGSTON SA400S3 (scsi)
Disk /dev/sda: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  22.0MB  21.0MB  primary  ntfs
 2      22.0MB  7521MB  7499MB  primary  ext4         boot

Why is the first partition type NTFS?

Hello,
Partition with FS NTFS is partition which you can see from Windows. On that partition you can edit your hiveOS config files (e.g. rig.conf, network config, x-server conf, open vpn …) for your RIG using windows OS.
It is assumed that you would prepare your hiveOS media for RIG from windows.
By the way NTFS partition is mountable to other NIX systems and MACOS, which allow you to edit config files regardless of OS.
Regards

So finally, what should I do to resize ext4 partition?

If you haven’t already, use the disk-expand command as described [here](https://forum.hiveos.farm/t/resize-filesystem-to-fill-disk/3769/11) or in the post below it.

Your sda1 partition is filesystem ntfs - where your configuration files are. These can be edited in windows before booting hiveOS.

Your sda2 partition is file system ext4, this is the hiveOS system partition.

1 Like

Thanks! Looks like it works. see Resizing a partition on HiveOS | DeveloperNote.com

1 Like

This topic was automatically closed 416 days after the last reply. New replies are no longer allowed.