Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Resizing HDD
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
cowboy0629
Tux's lil' helper
Tux's lil' helper


Joined: 11 May 2016
Posts: 105
Location: Kawartha Lakes, Ontario

PostPosted: Mon Jun 17, 2019 12:18 pm    Post subject: [SOLVED] Resizing HDD Reply with quote

Hello All

just a quick question I have resized my root partition from 200G to 500Gig everything seems to be working and I have not lost any files and everything seems to be booting properly

do I have to run mkfs.ext4 on /dev/sda3 to claim the new space to the file system or is the automatic after the install and I can use this space without worrying now..

thanks
Mike


Last edited by cowboy0629 on Sat Jun 29, 2019 11:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 2127
Location: Frankfurt, Germany

PostPosted: Mon Jun 17, 2019 12:57 pm    Post subject: Reply with quote

You are probably looking for
Code:
resize2fs /dev/sda3

Please read
Code:
man resize2fs
Back to top
View user's profile Send private message
fturco
Veteran
Veteran


Joined: 08 Dec 2010
Posts: 1053
Location: Italy

PostPosted: Mon Jun 17, 2019 3:44 pm    Post subject: Reply with quote

@cowboy0629 What's your partition layout? Is the root filesystem on /dev/sda3? If you run mkfs.ext4 on your root partition you will lose all system files and then it won't boot anymore.

Edit: fixed typo.


Last edited by fturco on Wed Jun 19, 2019 10:01 am; edited 1 time in total
Back to top
View user's profile Send private message
cowboy0629
Tux's lil' helper
Tux's lil' helper


Joined: 11 May 2016
Posts: 105
Location: Kawartha Lakes, Ontario

PostPosted: Wed Jun 19, 2019 1:34 am    Post subject: Reply with quote

fturco wrote:
@cowboy0629 What's your partition layout? Is the root filesystem on /dev/sda3? If you run mkfs.ext4 on your root partition you will lose all system files and the it won't boot anymore.


yes..

sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 2M 0 part
├─sda2 8:2 0 128M 0 part /boot
├─sda3 8:3 0 432G 0 part /
└─sda4 8:4 0 32G 0 part [SWAP]

i started out with sda3 191gig and resized it with cfdisk but want to be able to use entire space of my ssd

programs are only seeing this partition as 191 but lsblk sees it as 432.. Im trying to do this without having to restart my entire install but if thats the only way i would like to do it sooner then later

thanks
Mike
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15334

PostPosted: Wed Jun 19, 2019 4:27 am    Post subject: Reply with quote

Putting everything into / is a bit questionable, but this looks like it should work. Did the advice from mike155 not help?
Back to top
View user's profile Send private message
cowboy0629
Tux's lil' helper
Tux's lil' helper


Joined: 11 May 2016
Posts: 105
Location: Kawartha Lakes, Ontario

PostPosted: Sat Jun 29, 2019 11:21 pm    Post subject: Reply with quote

Thank-you for the help everyone, the advice mike155 gave me worked, sorry it took so long for me to update been on some new medications have not felt like looking at a computer

Mike
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum