-
Notifications
You must be signed in to change notification settings - Fork 21
Script which expands a FS to the size of the SDcard minus a bit
License
dweeber/rpiwiggle
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
#################################################################### # # A Project of TNET Services, Inc # # Title: rpi-wiggle # Author: Kevin Reed (Dweeber) # [email protected] # Project: Raspberry Pi Stuff # # Credits: jojopi on Raspberry Pi Forum who provided sample code # MrEngman on Raspberry Pi Forum for testing # Examples from http://github.com/asb/raspi-config # # Copyright: Copyright (c) 2012 Kevin Reed <[email protected]> # https://github.com/dweeber/rpiwiggle # # Status: RELEASED # #################################################################### PURPOSE: The purpose of this script is to expand the current FS to the full size of the SDCard but to make sure that it is small enough so that if you make an image of it (like using Win32 Disk Imager), you can be assured that it will fit on a new SDCard of the same size. The expand function included in the raspi-config uses the full extent of the SDCard which many times makes an image that cannot be loaded on another SDcard even if it is the same size. Many times it is simply 1 or 2 blocks too large. USAGE: As root, you run rpi-wiggle and it calculates the max size of the current SDCard by GB and then backs off a bit to ensure that it will load on most SDcards of that same size. It then using fdisk to setup the parameters. The script then needs to reboot the system and then finish the process by doing the command: resize2fs /dev/mmcblk0p2 The script should then remove the temp script and allow the user to the login prompt. When done, you will have used the full SDCard but be a little shorter thus allowing an image to be made and successful transfer to other like sized SDcards. HISTORY: 2012-09-24 1.1 Increased reduction from 1024 to 1536 2012-09-15 1.0 Initial Release 2012-09-15 0.1 Changed Default run levels in resize2fs_once script 2012-09-14 0.1 Released to a few for testing and feedback 2012-09-14 0.1 Added remaining sections of script. Ready to test 2012-09-10 0.1 Updated Readme file 2012-09-09 0.1 Setup Repository and basic script KNOWN ISSUES: Reported ========== ======================================================= 2012-09-15 If run on original Debian squeezy, the script will fail with an error like: The filesystem is already XX blocks long. Nothing to do! This is because there is physical swap partion after the root partition which gets in the say of the expansion. Script was designed for use with Debian Wheezy so this should not be an issue if used as intended. WHY THE NAME WIGGLE? Expands to the size of the SDcard but has some wiggle room left so that if you make an image, it can be saved to a like sized SDCard without worrying about it fitting. Couldn't think of anything else to call it.
About
Script which expands a FS to the size of the SDcard minus a bit
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published