Jonno.Johnson.UK
Posts: 19
Joined: Sun Oct 19, 2014 5:23 pm
Location: Northamptonshire

Differences between boot sector and its backup

Thu Oct 30, 2014 2:06 am

Whilst booting Raspbian I noticed an error so I checked /var/log/syslog and found

Oct 30 01:22:11 raspberrypi kernel: [ 11.899027] EXT4-fs (mmcblk0p6): re-mounted. Opts: (null)
Oct 30 01:22:11 raspberrypi kernel: [ 12.491103] EXT4-fs (mmcblk0p6): re-mounted. Opts: (null)
Oct 30 01:22:11 raspberrypi kernel: [ 19.176409] FAT-fs (mmcblk0p5): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

I figured out that I needed to execute
sudo fsck -p /dev/mmcblk0p5 and it returned

fsck from util-linux 2.20.1
dosfsck 3.0.13, 30 Jun 2012, FAT32, LFN
There are differences between boot sector and its backup.
Differences: (offset:original/backup)
65:01/00
Not automatically fixing this.
/dev/mmcblk0p5: 15 files, 19616/120958 clusters


Advice please - Do I need to fix this manually? If so, how?
1st RPi = B+, Oct 2014. Running Raspbian or OpenElec at the moment.
I'm a 58 year old kid with a new toy! I know enough to be dangerous, but not enough to be useful! :-D

Jonno.Johnson.UK
Posts: 19
Joined: Sun Oct 19, 2014 5:23 pm
Location: Northamptonshire

Re: Differences between boot sector and its backup

Thu Oct 30, 2014 2:21 am

Well, it appears that I was wrong.

I unmounted the device and ran fsck then did a shutdown thinking it would clear the error, but I am still seeing it on boot up.

Advice please.

I know enough to do harm, but not enough to do good, it would seem!
1st RPi = B+, Oct 2014. Running Raspbian or OpenElec at the moment.
I'm a 58 year old kid with a new toy! I know enough to be dangerous, but not enough to be useful! :-D

knute
Posts: 550
Joined: Thu Oct 23, 2014 12:14 am
Location: Texas
Contact: Website

Re: Differences between boot sector and its backup

Thu Oct 30, 2014 3:35 am

I have the same problem, I caused it by unplugging my jump drive while the computer was running. I got the same errors and did the same fix, which cleared up the error when I run fsck but not when I boot.

If you find a solution for this I would love to know. I'm also really curious how the boot sector and its backup are configured.

User avatar
DougieLawson
Posts: 38882
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Differences between boot sector and its backup

Thu Oct 30, 2014 8:36 am

Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Jonno.Johnson.UK
Posts: 19
Joined: Sun Oct 19, 2014 5:23 pm
Location: Northamptonshire

Re: Differences between boot sector and its backup

Fri Oct 31, 2014 12:23 am

Thanks for the pointer Dougie.

That worked for me.

knute...
sudo umount /boot
sudo git clone http://daniel-baumann.ch/git/software/dosfstools.git
cd dosfstools
sudo make
sudo make install
sudo ./fsck.fat -V /dev/mmcblk0p1 ...p5 in my case and I told it to remove the dirty bit
sudo ./fsck.fat -a /dev/mmcblk0p1 ...p5 again
sudo mount /boot

I then did a sudo reboot and the error was gone.
1st RPi = B+, Oct 2014. Running Raspbian or OpenElec at the moment.
I'm a 58 year old kid with a new toy! I know enough to be dangerous, but not enough to be useful! :-D

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: Differences between boot sector and its backup

Fri Oct 31, 2014 1:13 am

I then did a sudo reboot and the error was gone.
Don't you mean that it was sudo gone?

(Hint: Most of those sudo's are unnecessary - and potentially dangerous)
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

knute
Posts: 550
Joined: Thu Oct 23, 2014 12:14 am
Location: Texas
Contact: Website

Re: Differences between boot sector and its backup

Fri Oct 31, 2014 2:56 am

Hey thanks. I tried both your suggestion and the other fellow's about using the jessie repo. Both work just fine but adding the additional repo makes apt-get update take twice as long, so I took it out.

User avatar
rpdom
Posts: 17029
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Differences between boot sector and its backup

Fri Oct 31, 2014 7:32 am

Joe Schmoe wrote:(Hint: Most of those sudo's are unnecessary - and potentially dangerous)
Well, two of them at least. make doesn't need sudo, nor does git (unless you're running in a directory where you shouldn't be). The rest probably do need sudo in this case.

Jonno.Johnson.UK
Posts: 19
Joined: Sun Oct 19, 2014 5:23 pm
Location: Northamptonshire

Re: Differences between boot sector and its backup

Sat Nov 15, 2014 1:14 am

rpdom wrote:
Joe Schmoe wrote:(Hint: Most of those sudo's are unnecessary - and potentially dangerous)
Well, two of them at least. make doesn't need sudo, nor does git (unless you're running in a directory where you shouldn't be). The rest probably do need sudo in this case.
I only know enough to be dangerous :-)

I don't know enough to know when I sudo need one or not :-D
1st RPi = B+, Oct 2014. Running Raspbian or OpenElec at the moment.
I'm a 58 year old kid with a new toy! I know enough to be dangerous, but not enough to be useful! :-D

Return to “Beginners”