[{"data":1,"prerenderedAt":280},["ShallowReactive",2],{"Categories":3,"NavIndexCategoriesCountFooter":203,"content-\u002F2005\u002F12\u002F29\u002Fresizing-boot-root-partition\u002F":204},[4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,68,70,71,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202],{"category":5},"System Administration",{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},"Software Development",{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":27},{"category":27},{"category":67},"Drones & RC",{"category":69},"DIY Projects",{"category":67},{"category":72},"Photography",{"category":69},{"category":69},{"category":69},{"category":67},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":67},{"category":69},{"category":69},{"category":67},{"category":67},{"category":72},{"category":72},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":5},{"category":5},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":5},{"category":67},{"category":67},{"category":72},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":72},{"category":67},{"category":138},"3D Printing - Laser Cutting - CNC",{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":5},{"category":138},{"category":27},{"category":27},{"category":138},{"category":138},{"category":72},{"category":158},"Photography,3D Printing - Laser Cutting - CNC",{"category":27},{"category":27},{"category":69},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":67},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":27},{"category":69},{"category":27},{"category":27},{"category":27},{"category":27},{"category":181},"Home Assistant",{"category":181},{"category":72},{"category":27},{"category":27},{"category":72},{"category":138},{"category":5},{"category":72},{"category":72},{"category":138},{"category":27},{"category":181},{"category":181},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},191,{"id":205,"title":206,"body":207,"category":268,"date":269,"description":213,"embedImage":268,"extension":270,"image":268,"intro":268,"meta":271,"navigation":272,"path":273,"seo":274,"series":268,"sitemap":275,"stem":276,"tags":277,"__hash__":279},"content\u002F2005\u002F12\u002F29\u002Fresizing-boot-root-partition.md","Resizing boot\u002Froot partition",{"type":208,"value":209,"toc":264},"minimark",[210,214,217,220,261],[211,212,213],"p",{},"Background: A debian machine (unstable) with a 100Mb root\u002Fboot ext3 partition (hda1), a 500Mb swap space (hda2) and the rest of the disk under lvm2 (hda3).",[211,215,216],{},"Problem: I use a custom kernel (needs the EVMS block device kernel patch). And not enough space to build or install the next kernel - 100Mb is simply too small.",[211,218,219],{},"Solution",[221,222,223,231,237,240,243,246,249,252,255,258],"ol",{},[224,225,226,227],"li",{},"Create a 256Mb swap space under the lvm2 area ",[228,229,230],"span",{},"mkswap",[224,232,233,234],{},"Remove the old swap space (remove partition) and create a new one using only half the space (leaving space after hda1) ",[228,235,236],{},"fdisk, mkswap",[224,238,239],{},"Configure both swap disks in fstab (use pri=nn option to use hda2 first)",[224,241,242],{},"Boot into knoppix (I used the 4.0.2 CD)",[224,244,245],{},"In fdisk note the start cylinder of hda1 then delete hda1",[224,247,248],{},"Create a new hda1 - make sure it uses the same start cylinder but now fills all the space up to hda2",[224,250,251],{},"Commit the partition table (I needed to reboot knoppix for the kernel to update its view)",[224,253,254],{},"Run e2fsck -f \u002Fdev\u002Fhda1",[224,256,257],{},"Run resize2fs -p \u002Fdev\u002Fhda1",[224,259,260],{},"Reboot from disk - all done",[211,262,263],{},"Notes - I use grub - I assume that lilo will also tackle this - but - no guarantees.",{"title":265,"searchDepth":266,"depth":266,"links":267},"",2,[],null,"2005-12-29 17:14:25 +0100","md",{},true,"\u002F2005\u002F12\u002F29\u002Fresizing-boot-root-partition",{"title":206,"description":213},{"loc":273},"2005\u002F12\u002F29\u002Fresizing-boot-root-partition",[278],"debian","JFGdVlZ-lHWLsxJUxFn0dennrjBoDFZQw4xCiS8Doww",1775293016773]