|
Page 1 of 1
|
[ 7 posts ] |
|
Superblock Issues and fsck log
| Author |
Message |
|
moksha
MEPIS is cool!
Joined: Sun Dec 09, 2007 4:19 am Posts: 573 Has thanked: 25 times Have thanks: 24 times
|
Post # 292107
 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 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 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 |
|
 |
|
JBoman
MEPIS Guide
Joined: Wed Jul 12, 2006 4:30 pm Posts: 1243 Location: Flinthills of Kansas, USA Has thanked: 183 times Have thanks: 112 times
|
Post # 292115
 Re: Superblock Issues and fsck log
moksha, If someone has to do that do the instructions get rebuilt automatically upon a reboot?;..... just curious.  Jerry
_________________ http://patentabsurdity.com/ Toshiba Tecra M-6 Laptop 1.6Ghz core duo, 1.5g ram, 12M wlan "beware a frequent flirt with potential disaster"
|
| Thu Dec 29, 2011 12:46 pm |
|
 |
|
Jerry3904
MEPIS Enthusiast
Joined: Wed Jul 19, 2006 6:13 am Posts: 6444 Location: Geneva NY Has thanked: 1382 times Have thanks: 1032 times
|
Post # 292116
 Re: Superblock Issues and fsck log
_________________ A Wiki only works when many eyes are on it.
32bit, 2.6.36-1-mepis-pae, KDE 4.6.5, AMD Phenom 9650 Quad-Core, Dell SP2309W with integrated webcam, Nvidia GeForce 6150SE, 4 GB DDR2
|
| Thu Dec 29, 2011 12:49 pm |
|
 |
|
Danum
MEPIS Guide
Joined: Sun Mar 25, 2007 5:49 pm Posts: 2452 Location: Doncaster UK Has thanked: 99 times Have thanks: 612 times
|
Post # 292119
 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.10.2 / Debian Wheezy-Experimental KDE 4.10.2 / Plasma Active 3 Tablet
|
| Thu Dec 29, 2011 1:08 pm |
|
 |
|
Danum
MEPIS Guide
Joined: Sun Mar 25, 2007 5:49 pm Posts: 2452 Location: Doncaster UK Has thanked: 99 times Have thanks: 612 times
|
Post # 292128
 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.pngso 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.10.2 / Debian Wheezy-Experimental KDE 4.10.2 / 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 |
|
 |
|
moksha
MEPIS is cool!
Joined: Sun Dec 09, 2007 4:19 am Posts: 573 Has thanked: 25 times Have thanks: 24 times
|
Post # 292138
 Re: Superblock Issues and fsck log
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 |
|
 |
|
moksha
MEPIS is cool!
Joined: Sun Dec 09, 2007 4:19 am Posts: 573 Has thanked: 25 times Have thanks: 24 times
|
Post # 292165
 Re: Superblock Issues and fsck log
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 |
|
|
|
Page 1 of 1
|
[ 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
|
|