You are not logged in.

#1 2021-10-11 08:52

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 3,819
Website

Expand the disk, if you have installed via Windows installer

1. First make a backup.

2. Edit file "c:\Linux64\Debian11\install\preseed.cfg" with administrator permissions and modify the line:

wubiapp/disksize1 string <size_in_megabytes>

Change "size_in_megabytes" to a desired value. Make sure disk size doesn't exceed free disk space.

3. Run in Windows terminal:

fsutil file seteof c:\Linux64\Debian11\disks\root.disk <size_in_megabytes*1024*1024>

4. Remove the file "c:\linux64\debian11\install\stp_disk1expanded.stp".

5. Reboot to Linux, the disk will be resized upon boot.

Last edited by q4osteam (2023-05-03 09:11)

Offline

#2 2022-10-09 10:07

bretsim
Member
Registered: 2021-11-21
Posts: 21

Re: Expand the disk, if you have installed via Windows installer

On a phone screen, that fsutil line just shows "size in megabytes". It resized my 20gb root.disk file to a 50k one.

It's only then that I realise the backup I had is actually a year old. Everything is lost, and because it was resized rather than deleted, there's nothing file recovery software can do. 2 years of use, and 1 year of it vanished in a single tap of the Enter key. The most annoying thing is I'm sure all the data is still sitting on the hard drive, but it's impossible to access. Sigh.

Last edited by bretsim (2022-10-09 10:08)

Offline

#3 2022-12-31 11:48

giuliohome
Member
Registered: 2022-12-27
Posts: 5

Re: Expand the disk, if you have installed via Windows installer

In win7 seteof command is not supported so I used trunk instead (see this answer).

(After reboot, resize2fs was extending the inode table as expected: everything went OK, it simply took a long time, since I added 100GB... Because I like Q4OS and Debian GNU/Linux 11 with KDE Plasma very much!)

Last edited by giuliohome (2022-12-31 13:17)

Offline

#4 2023-05-03 03:50

Net_Nuttt
Member
Registered: 2021-12-25
Posts: 6

Re: Expand the disk, if you have installed via Windows installer

I am trying to increase the disk size.
I am running Windows 11.
The file preseed.cfg does not have debian-installer to edit. It has wubiapp/disksize1 string 20167
Is this the line I should edit?
Thanks

Offline

#5 2023-05-03 09:10

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 3,819
Website

Re: Expand the disk, if you have installed via Windows installer

Net_Nuttt wrote:

The file preseed.cfg does not have debian-installer to edit. It has wubiapp/disksize1 string 20167
Is this the line I should edit? ...

Yes, it is. The line has been changed in the recent installer revision, we are going to update the original instructions.

Offline

#6 2023-05-04 02:17

Net_Nuttt
Member
Registered: 2021-12-25
Posts: 6

Re: Expand the disk, if you have installed via Windows installer

Thanks for the update!

Offline

Board footer

Powered by FluxBB