rjobaan
Posts: 53
Joined: Sun Aug 18, 2013 1:07 pm

Copy img 4gb to 8gb

Thu Mar 10, 2016 9:03 am

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?

fruitoftheloom
Posts: 23334
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Copy img 4gb to 8gb

Thu Mar 10, 2016 9:16 am

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
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

rjobaan
Posts: 53
Joined: Sun Aug 18, 2013 1:07 pm

Re: Copy img 4gb to 8gb

Fri Mar 11, 2016 6:31 pm

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

DirkS
Posts: 10361
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Copy img 4gb to 8gb

Sat Mar 12, 2016 2:16 am

What is actually installed on your card?
OSMC / Raspbmc / Openelec ???
Or maybe just Raspbian? Jessie or Wheezy?
Using Noobs or not?

rjobaan
Posts: 53
Joined: Sun Aug 18, 2013 1:07 pm

Re: Copy img 4gb to 8gb

Sat Mar 12, 2016 9:34 am

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"

DirkS
Posts: 10361
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Copy img 4gb to 8gb

Sat Mar 12, 2016 10:58 am

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?

rjobaan
Posts: 53
Joined: Sun Aug 18, 2013 1:07 pm

Re: Copy img 4gb to 8gb

Sat Mar 12, 2016 11:05 am

I have no idea which I installed three years ago....

I did not use Noobs that is for sure
Last edited by rjobaan on Sat Mar 12, 2016 6:52 pm, edited 1 time in total.

DirkS
Posts: 10361
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Copy img 4gb to 8gb

Sat Mar 12, 2016 1:21 pm

So where did the xbmc come from?

rjobaan
Posts: 53
Joined: Sun Aug 18, 2013 1:07 pm

Re: Copy img 4gb to 8gb

Sat Mar 12, 2016 6:11 pm

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?

DirkS
Posts: 10361
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Copy img 4gb to 8gb

Sat Mar 12, 2016 6:24 pm

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.

rjobaan
Posts: 53
Joined: Sun Aug 18, 2013 1:07 pm

Re: Copy img 4gb to 8gb

Sat Mar 12, 2016 6:41 pm

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

User avatar
GTR2Fan
Posts: 1601
Joined: Sun Feb 23, 2014 9:20 pm
Location: South East UK

Re: Copy img 4gb to 8gb

Sat Mar 12, 2016 6:45 pm

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.
Pi2B Mini-PC/Media Centre: ARM=1GHz (+3), Core=500MHz, v3d=500MHz, h264=333MHz, RAM=DDR2-1200 (+6/+4/+4+schmoo). Sandisk Ultra HC-I 32GB microSD card on '50=100' OCed slot (42MB/s read) running Raspbian/KODI16, Seagate 3.5" 1.5TB HDD mass storage.

rjobaan
Posts: 53
Joined: Sun Aug 18, 2013 1:07 pm

Re: Copy img 4gb to 8gb

Sat Mar 12, 2016 6:54 pm

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?

jahboater
Posts: 5756
Joined: Wed Feb 04, 2015 6:38 pm
Location: West Dorset

Re: Copy img 4gb to 8gb

Sat Mar 12, 2016 7:01 pm

Try

Code: Select all

dpkg -l
Pi4 8GB running PIOS64

rjobaan
Posts: 53
Joined: Sun Aug 18, 2013 1:07 pm

Re: Copy img 4gb to 8gb

Sat Mar 12, 2016 7:05 pm

jahboater wrote:Try

Code: Select all

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

jahboater
Posts: 5756
Joined: Wed Feb 04, 2015 6:38 pm
Location: West Dorset

Re: Copy img 4gb to 8gb

Sat Mar 12, 2016 7:17 pm

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.
Pi4 8GB running PIOS64

DirkS
Posts: 10361
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Copy img 4gb to 8gb

Sat Mar 12, 2016 8:07 pm

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

rjobaan
Posts: 53
Joined: Sun Aug 18, 2013 1:07 pm

Re: Copy img 4gb to 8gb

Sat Mar 12, 2016 8:23 pm

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

DirkS
Posts: 10361
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Copy img 4gb to 8gb

Sat Mar 12, 2016 8:43 pm

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)

rjobaan
Posts: 53
Joined: Sun Aug 18, 2013 1:07 pm

Re: Copy img 4gb to 8gb

Sat Mar 12, 2016 8:50 pm

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

DirkS
Posts: 10361
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Copy img 4gb to 8gb

Sat Mar 12, 2016 11:11 pm

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

Return to “Beginners”