Coder Social home page Coder Social logo

rpiwiggle's Introduction

####################################################################
#
# 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.

rpiwiggle's People

Contributors

dweeber avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.