rcrum003 / rpiwiggle Goto Github PK
View Code? Open in Web Editor NEWThis project forked from dweeber/rpiwiggle
Script which expands a FS to the size of the SDcard minus a bit
License: Other
This project forked from dweeber/rpiwiggle
Script which expands a FS to the size of the SDcard minus a bit
License: Other
#################################################################### # # 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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.