Page 1 of 1

Copy img 4gb to 8gb

Posted: Thu Mar 10, 2016 9:03 am
by rjobaan
Hi I created an img of my 4gb Sd card and after that I restored the Image on a new 8GB sd card

When I try to start up my xmbc, its keeps rebooting. So I thought maybe it has to due that raspi don't uses the whole 8gb.
So I tried to expand my filesystem with

Code: Select all

sudo raspi_config
but I got error sudo: raspi-config: command not found

So I tried to

Code: Select all

sudo apt-get install rpi-update
then I got error E: Unable to locate package rpi-update

After that I run
sudo apt-get update
sudo apt-get upgrade
sudo apt-get clean
sudo reboot
that went fine..
I have no idea what to do else...please help

My next step will be to reinstall but that wil take me much time because I have all kind of files and settings set up...

I still have the 4Gb SD card. I will also check if that SD card is still working.
Did I start off correctly to make a image and restore that on the 8Gb?

Re: Copy img 4gb to 8gb

Posted: Thu Mar 10, 2016 9:16 am
by fruitoftheloom
rjobaan wrote:Hi I created an img of my 4gb Sd card and after that I restored the Image on a new 8GB sd card

When I try to start up my xmbc, its keeps rebooting. So I thought maybe it has to due that raspi don't uses the whole 8gb.
So I tried to expand my filesystem with

Code: Select all

sudo raspi_config
but I got error sudo: raspi-config: command not found

So I tried to

Code: Select all

sudo apt-get install rpi-update
then I got error E: Unable to locate package rpi-update

After that I run
sudo apt-get update
sudo apt-get upgrade
sudo apt-get clean
sudo reboot
that went fine..
I have no idea what to do else...please help

My next step will be to reinstall but that wil take me much time because I have all kind of files and settings set up...

I still have the 4Gb SD card. I will also check if that SD card is still working.
Did I start off correctly to make a image and restore that on the 8Gb?
As you still have your 4GB SD Card, use a USB Card Reader and rpi-clone on your RPi:

https://github.com/billw2/rpi-clone

Re: Copy img 4gb to 8gb

Posted: Fri Mar 11, 2016 6:31 pm
by rjobaan
I replaced my 4gb sd card, but I have same issue with that....So what can I do next? besides reinstalling.
Otherwise I need to find out what I have changes pasted months

I tried wget https://github.com/Hexxeh/rpi-update/ra ... rpi-update

now I get Cannot write to `rpi-update' (No space left on device).???

if I run

Code: Select all

sudo rpi-update
You appear to be trying to update firmware on an incompatible distribution. To force update, run the following:
sudo -E RPI_UPDATE_UNSUPPORTED=0 ./rpi-update

then I get error
sudo -E RPI_UPDATE_UNSUPPORTED=0 ./rpi-update
sudo: ./rpi-update: command not found

How is this possible.. I really don't get it what is going on

Re: Copy img 4gb to 8gb

Posted: Sat Mar 12, 2016 2:16 am
by DirkS
What is actually installed on your card?
OSMC / Raspbmc / Openelec ???
Or maybe just Raspbian? Jessie or Wheezy?
Using Noobs or not?

Re: Copy img 4gb to 8gb

Posted: Sat Mar 12, 2016 9:34 am
by rjobaan

Code: Select all

cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 7 (wheezy)"
NAME="Raspbian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
ID=raspbian
ID_LIKE=debian
ANSI_COLOR="1;31"

Re: Copy img 4gb to 8gb

Posted: Sat Mar 12, 2016 10:58 am
by DirkS
rjobaan wrote:

Code: Select all

cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 7 (wheezy)"
NAME="Raspbian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
ID=raspbian
ID_LIKE=debian
ANSI_COLOR="1;31"
So you installed xbmc on top of Raspbian Wheezy?
And are you using Noobs?

Re: Copy img 4gb to 8gb

Posted: Sat Mar 12, 2016 11:05 am
by rjobaan
I have no idea which I installed three years ago....

I did not use Noobs that is for sure

Re: Copy img 4gb to 8gb

Posted: Sat Mar 12, 2016 1:21 pm
by DirkS
So where did the xbmc come from?

Re: Copy img 4gb to 8gb

Posted: Sat Mar 12, 2016 6:11 pm
by rjobaan
could question I have no idea how I did that
can I figure that out or not?

if I install noobs and from there XMBC is everything gone what I setup during time? or not

Can I figure out which files are changed or added during time?

Re: Copy img 4gb to 8gb

Posted: Sat Mar 12, 2016 6:24 pm
by DirkS
Sorry, but I cannot get a clear picture of your setup.
I can't see how you can have a standard RPF image installed that does not have raspi-config pre-installed...

Try the following:

Code: Select all

sudo apt-get update
sudo apt-get install raspi-config
Then run

Code: Select all

sudo raspi-config
and expand the file system.

Re: Copy img 4gb to 8gb

Posted: Sat Mar 12, 2016 6:41 pm
by rjobaan
That the whole problem (see begin of my post)
I can run that command but I get message that but I got error sudo: raspi-config: command not found

Re: Copy img 4gb to 8gb

Posted: Sat Mar 12, 2016 6:45 pm
by GTR2Fan
rjobaan wrote:That the whole problem (see begin of my post)
I think the biggest problem is that you won't tell us exactly what was installed on the card in the first place. Without knowing that, it's almost impossible to help you.

Re: Copy img 4gb to 8gb

Posted: Sat Mar 12, 2016 6:54 pm
by rjobaan
You guys already are great to help me out here. Belivee me if I know what I did three years ago I told you right away
I think I just need to start all over again. Is there is no code I can use to find out what is installed?

Re: Copy img 4gb to 8gb

Posted: Sat Mar 12, 2016 7:01 pm
by jahboater
Try

Code: Select all

dpkg -l

Re: Copy img 4gb to 8gb

Posted: Sat Mar 12, 2016 7:05 pm
by rjobaan
jahboater wrote:Try

Code: Select all

dpkg -l
I can not find out which xmbc is installed by that code right?

Re: Copy img 4gb to 8gb

Posted: Sat Mar 12, 2016 7:17 pm
by jahboater
It lists all the packages installed, their version number, and a brief description.
Try it and see if it does what you want!

In particular try: "dpkg -l | grep xmbc" to just detail the package of interest.

Re: Copy img 4gb to 8gb

Posted: Sat Mar 12, 2016 8:07 pm
by DirkS
rjobaan wrote:That the whole problem (see begin of my post)
I can run that command but I get message that but I got error sudo: raspi-config: command not found
You wrote you had a problem running 'raspi-config' and then tried to install 'rpi-update'.
That's why I suggested to install 'raspi-config'.

Re: Copy img 4gb to 8gb

Posted: Sat Mar 12, 2016 8:23 pm
by rjobaan
oh sorry, silly me. I need to start to read better
I will try that

sudo apt-get install raspi-config
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package raspi-config

Re: Copy img 4gb to 8gb

Posted: Sat Mar 12, 2016 8:43 pm
by DirkS
Can you post the contents of all your sources.list files.
That would normally be /etc/apt/sources.list and /etc/apt/sources.list.d/raspi.list (and any other list files in directory /etc/apt/sources.list.d)

Re: Copy img 4gb to 8gb

Posted: Sat Mar 12, 2016 8:50 pm
by rjobaan
DirkS wrote:Can you post the contents of all your sources.list files.
That would normally be /etc/apt/sources.list and /etc/apt/sources.list.d/raspi.list (and any other list files in directory /etc/apt/sources.list.d)
/etc/apt/sources.list
deb http://archive.raspbian.org/raspbian wheezy main contrib non-free
deb-src http://archive.raspbian.org/raspbian wheezy main contrib non-free rpi

Re: Copy img 4gb to 8gb

Posted: Sat Mar 12, 2016 11:11 pm
by DirkS
If that's the only sources file then it would explain why you can't install RPF specific software.
You can add the RPF repository, but it may break things (unlikely, but possible)

Code: Select all

wget http://archive.raspberrypi.org/debian/raspberrypi.gpg.key
sudo apt-key add raspberrypi.gpg.key
echo "deb http://archive.raspberrypi.org/debian/ wheezy main ui staging" | sudo tee /etc/apt/sources.list.d/raspi.list
sudo apt-get update
sudo apt-get install raspi-config