MX & MEPIS Community Forum

Linux operating systems based on Debian Stable
View unanswered posts | View unsolved topics | View active topics |



Reply to topic  [ 7 posts ] 
Superblock Issues and fsck log 
Author Message
Forum Regular
Forum Regular

Joined: Sun Dec 09, 2007 4:19 am
Posts: 573
Has thanked: 25 times
Have thanks: 24 times
Post # 292107
Post Superblock Issues and fsck log
About six months ago I had some issues with partition numbering after replacing my motherboard, drives not being recognised or found by fstab, messages about bad magic numbers in superblocks. At the time I could not find a solution. The problem poked its head up again after a scheduled fsck scan at boot, and I started researching again and found a solution. All the disk and partition information is held in a cache /etc/blkid.tab. A line can be inserted into fstab to point directly to the partiton using its UUID or a simple command can be issued
Quote:
# blkid -g

will clear the cache. The tune2fsk command which ties in with this stores all instructions on the drive the details can be recovered with this command
Quote:
#tune2fs -l /dev/sdb1

I have updated Fsck and Fstab in the wiki, I hope this is helpful down the track for someone.


Thu Dec 29, 2011 6:39 am

moksha thanked by: Jerry3904, JimC, lucky9, Utopia
Profile
Forum Guide
Forum Guide
User avatar

Joined: Wed Jul 12, 2006 4:30 pm
Posts: 1458
Location: Flinthills of Kansas, USA
Has thanked: 254 times
Have thanks: 139 times
Post # 292115
Post Re: Superblock Issues and fsck log
moksha, If someone has to do that do the instructions get rebuilt automatically upon a reboot?;..... just curious. :turtle: Jerry

_________________
http://patentabsurdity.com/
AMD 64x2 2.6GHz 4GB ram M-11.9.92 kernel 3.10-3-amd64 kde 4.11.5 mixed/unstable
"beware a frequent flirt with potential disaster"


Thu Dec 29, 2011 12:46 pm
Profile
Forum Veteran
Forum Veteran
User avatar

Joined: Wed Jul 19, 2006 6:13 am
Posts: 10862
Location: Geneva NY
Has thanked: 3281 times
Have thanks: 2090 times
Post # 292116
Post Re: Superblock Issues and fsck log
Quote:
I have updated Fsck and Fstab in the wiki


:heart:

_________________
Production: 32 bit, 3.14-0.bpo.1-686-pae. MX-14.2, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 8 GB DDR3, / and /home on Kingston SSD 120 GB, data on WesternDigital 1TB, Dell SP2309W monitor.


Thu Dec 29, 2011 12:49 pm
Profile
Forum Guide
Forum Guide
User avatar

Joined: Sun Mar 25, 2007 5:49 pm
Posts: 2664
Location: Doncaster UK
Has thanked: 110 times
Have thanks: 738 times
Post # 292119
Post Re: Superblock Issues and fsck log
Using just UUID in Mepis is not a good idea, because if you use the correct command to upgrade, it comes up with, "unrecognized bootloader"
in other words the system has not got a clue as to what the legacy bootloader is, (yes it will boot but for how long) it expects to find Grub2.
Hopefully within the next few hours I will post the correct commands to use UUID but it will mean installing Grub2. so as the system does know what it is doing,

_________________
*Never be afraid to try something new. Remember that a lone amateur built the Ark. A large group of professionals built the Titanic(Windoze)*

Kubuntu KDE 4.11.00 / KDE 4.11.60 / Debian Wheezy KDE 4.10.4 / Plasma Active 3 Tablet


Thu Dec 29, 2011 1:08 pm
Profile
Forum Guide
Forum Guide
User avatar

Joined: Sun Mar 25, 2007 5:49 pm
Posts: 2664
Location: Doncaster UK
Has thanked: 110 times
Have thanks: 738 times
Post # 292128
Post Re: Superblock Issues and fsck log
The main reason for using persistent naming is because the drive name never changes as it does now in Mepis,
the easy way is to run "dpkg-reconfigure linux-base" but that presents a problem, as the system does not recognise the legacy bootloader in Mepis, yes it will run and it will boot, but for how long is anybodys quess.
http://dl.dropbox.com/u/53792173/grub-edit10.png
so you have to install Grub2 first, which you would do like this.
disable the Mepis repo in Synaptic, reload search for grub-common and upgrade it.
In Konsole as root,
apt-get update
rm -rf /boot/grub
apt-get purge grub-gfxboot
apt-get install grub2 os-prober desktop-base

when the above is complete you can now enable persistent naming
dpkg-reconfigure linux-base
reboot and re-enable the Mepis repo

_________________
*Never be afraid to try something new. Remember that a lone amateur built the Ark. A large group of professionals built the Titanic(Windoze)*

Kubuntu KDE 4.11.00 / KDE 4.11.60 / Debian Wheezy KDE 4.10.4 / Plasma Active 3 Tablet


Last edited by Danum on Thu Dec 29, 2011 5:07 pm, edited 1 time in total.



Thu Dec 29, 2011 2:55 pm
Profile
Forum Regular
Forum Regular

Joined: Sun Dec 09, 2007 4:19 am
Posts: 573
Has thanked: 25 times
Have thanks: 24 times
Post # 292138
Post Re: Superblock Issues and fsck log
JBoman wrote:
moksha, If someone has to do that do the instructions get rebuilt automatically upon a reboot?;..... just curious. :turtle: Jerry

If you are talking about tune2fs the instructions 'live' in the drive and can be seen with tune2fs -l, so in a chainloaded boot setup the tune2fs commands are at a hardware level and do not care about reboots simply partition mounts. I believe and I have yet to try it that the tune2fs -c xx /dev/sdx instruction would survive an OS reinstall - linux that is. The instructions are probably in the form of set bits on the partiton, that increment with each boot.
The blkid -g command flushes the /etc/blkid.tab, and creates a backup, this is where the kernel and fstab looks for mount info at boot (not quite sure how that process works yet), so yes it survives rebooting.


Thu Dec 29, 2011 4:06 pm
Profile
Forum Regular
Forum Regular

Joined: Sun Dec 09, 2007 4:19 am
Posts: 573
Has thanked: 25 times
Have thanks: 24 times
Post # 292165
Post Re: Superblock Issues and fsck log
Danum wrote:
Using just UUID in Mepis is not a good idea, because if you use the correct command to upgrade, it comes up with, "unrecognized bootloader"
in other words the system has not got a clue as to what the legacy bootloader is, (yes it will boot but for how long) it expects to find Grub2.
Hopefully within the next few hours I will post the correct commands to use UUID but it will mean installing Grub2. so as the system does know what it is doing,

Just trying to get some clarity here, the UUID is not being used in menu.lst but after in fstab. However as I note in the wiki entry blkid -g may also be used which means a UUID does not need to be used at all. Thank you I will go back and make sure no confusion can arise from what I have written in the wiki.


Fri Dec 30, 2011 4:58 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.