You are not logged in.
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
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
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
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
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
Thanks for the update!
Offline