-
Senior Member
registered user
RE: resizing knoppix-data.img
I do not know that article and the forum's search functions does not seem to work.
If the persistent image file is unencrypted then one can make use of the e2fs utilities. My method is to boot the live CD since a filesystem to be resized may not be mounted, to find the persistent image knoppix-data.img, to check the filesystem inside the container, to enlarge the container by adding some bytes to it and to resize the filesystem.
1. Open a root terminal.
2. Mount the drive with the persistent image
3. Change to the directory with that persistent image
4. Make a backup of the persistent image.
5. Check the ext2 filesystem and allow corrections
Code:
e2fsck -fy knoppix-data.img
6. Add 100 MB to the container
Code:
dd if=/dev/zero bs=1M count=100 >> knoppix-data.img
Remember that the maximum filesize of the FAT32 filesystem is 4 GB. Therefore the filesize of the persistent image may not be made larger than the maximum filesize of the underlying filesystem. Be careful, use ">>" instead of ">"!
7. Resize the filesystem.
Code:
resize2fs knoppix-data.img
8. Shutdown the system and boot Knoppix the usual way.
But if the persistent image is encrypted I think the only way to get a larger persistent image is to create a new persistent image and copy the data from the old filesystem to the new one.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
BUNDLE Apple MacBook Air 13 inch CORE i7 8GB RAM 256GB SSD + EXTRAS
$295.00
Dell 9020 Optiplex Micro-Intel Core i5 - 1TB SSD 8GB RAM Window 11
$119.49
HP Z420 Workstation Xeon E5-2690 v2 3ghz 10-Cores 64gb 240gb SSD 1TB Win10
$199.99
HP Z2 Mini G5 i7-10700 8-Core 32GB 512GB SSD Win 11 Pro Wifi AC Adapter
$449.00
24" APPLE iMAC M1 4.5K RETINA 1TB SSD 16GB RAM 8-CORE 8-CORE GPU YELLOW TOUCH ID
$1595.00
NEW OEM Tray AMD Ryzen 7 5700X 8-Core 16-Thread 3.4GHz Socket AM4 CPU Processor
$149.00
Intel - Core i5-13600K 13th Gen 14 cores 6 P-cores + 8 E-cores 24M Cache, 3.5...
$283.99
INTEL XEON E-2288G 8-CORE 3.7GHZ 16Threads 16MB 8 GT/S 95W LGA-1151 SOCKET H4
$599.99
HP TP01-3037C Desktop Intel Core i5-12400 Intel UHD 730, 8GB RAM 512GB SSD W11H
$319.00
Dell OptiPlex 3060 MT Core i5 8th Gen 32GB Ram 1TB SSD Windows 11 Computer
$299.00