$ parted hda.img
(parted) print
...
dd if=hda.img of=hda3.img bs=512 skip=2313360 count=17719695
- skip = start from parted / 512
- count = size from parted / 4
- http://www.andremiller.net/content/mounting-hard-disk-image-including-partitions-using-linux
$ file ~/qemu_vms/2013-02-09-wheezy-raspbian.img
From the output of the file command, take the partition 2 'startsector' value an multiply by 512, and use this figure as the offset value in the mount command below.
$ sudo mount ~/qemu_vms/2013-02-09-wheezy-raspbian.img -o offset=62914560 /mnt
$ sudo nano /mnt/etc/ld.so.preload
Comment out the line in the file (use a # as the first character of the line) and save the file (CTRL+X, then "Y" for yes).
$ sudo umount ~/qemu_vms/2013-02-09-wheezy-raspbian.img /mnt
$ cd ~/qemu_vms/
$ qemu-system-arm -kernel kernel-qemu -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append "root=/dev/sda2 panic=1" -hda ~/qemu_vms/2013-02-09-wheezy-raspbian.img -redir tcp:5022::22
Qemu gives you a root shell, run:
$ fsck /dev/sda2
$ shutdown -r now
(I need sid because of libzmq3-dev package)
Class 6 SD card of 2GB or greater capacity. Note: for optimal performance, a Class 10 SD card is recommended. If you are storing Thumbnails on your device an 8GB capacity or greater is recommended.
Take the SD card out, salvage whatever you want/can off it using another computer, then umount it there but leave it plugged in and try:
e2fsck -y -c /dev/[sdXN]
Where 'sdXN' is the second partition. That might fix things. If not, give up and replace the image on it -- it's wrecked.
After you replace the image, run the same slow fsck (with -c to check for bad blocks) on the 2nd partition while the card is in another computer. This is to make sure the card is not faulty or worn out.
- http://blagg.tadkom.net/2012/07/08/building-a-home-automation-system-part-1-intro/
- http://blagg.tadkom.net/2012/09/24/building-a-home-automation-system-the-broker-and-sensors-part-2/
- http://blagg.tadkom.net/2012/10/20/building-a-home-automation-system-power-control-part-3/
apt-get install xbmc-eventclients-xbmc-send
- http://www.raspberrypi.org/phpBB3/viewtopic.php?f=35&t=13689
- http://wiki.xbmc.org/index.php?title=JSON-RPC_API/v6#Player.Open
- http://www.raspberrypi.org/phpBB3/viewtopic.php?f=38&t=8042
- http://www.raspberrypi.org/phpBB3/viewtopic.php?f=35&t=13689
- http://wiki.xbmc.org/index.php?title=List_of_built-in_functions
- http://raspberrypi.stackexchange.com/questions/7257/raspberry-pi-does-not-play-the-videos-in-ascending-order
- http://raspberrypi.stackexchange.com/questions/165/emulation-on-a-linux-pc
- http://xecdesign.com/qemu-emulating-raspberry-pi-the-easy-way/
- http://www.v13.gr/blog/?p=276
sudo update-rc.d -f nginx defaults
sudo update-rc.d -f nginx remove
- http://www.cyberciti.biz/faq/debian-linux-wpa-wpa2-wireless-wifi-networking/
- http://www.raspberrypi.org/phpBB3/viewtopic.php?f=26&t=29752
- http://askubuntu.com/questions/104755/how-to-check-internet-speed-via-terminal
- http://spin.atomicobject.com/2013/04/22/raspberry-pi-wireless-communication/
- https://wiki.archlinux.org/index.php/Ad-hoc_networking
- http://learn.adafruit.com/setting-up-a-raspberry-pi-as-a-wifi-access-point/overview
- http://qcktech.blogspot.cz/2012/08/raspberry-pi-as-router.html
- http://itsacleanmachine.blogspot.cz/2013/02/wifi-access-point-with-raspberry-pi.html
Driver for TP-LINK TL-WN725N v.2.0:
- http://www.cryptofest.cz/2003/slajdy/sshtunel/ssh.html
- http://www.revsys.com/writings/quicktips/ssh-tunnel.html
- http://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/temperature/
- http://www.raspberrypi-spy.co.uk/2013/03/raspberry-pi-1-wire-digital-thermometer-sensor/
- http://www.raspberrypi-spy.co.uk/wp-content/uploads/2013/03/DS18B20-Temperature-Sensor_bb.png
libjpeg: http://arcoleo.org/dsawiki/Wiki.jsp?page=How%20to%20Install%20Libjpeg%20on%20Mac
$ curl -O http://www.ijg.org/files/jpegsrc.v8c.tar.gz
$ tar zxvf jpegsrc.v8c.tar.gz
$ cd jpeg-8c/
$ ./configure
$ make
$ sudo make install
epeg: https://github.com/mattes/epeg
git clone https://github.com/mattes/epeg.git
cd epeg && ./configure && make && sudo make install
troubleshoot:
ldconfig