SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i was fetching the new updates from Slackware, using slackpg upgrade-all, then suddenly my laptop turned off due to overheat and interrupted my update, it was in the part where the kernel updates were being fetched.
then after that i rebooted my Slack and after the part where the lilo loads Linux, it reboots..
is there a way to fix my kernel configuration?
or is there a way to access my hard drive files because i need to get some files there before i recompile my Slackware again.
You can try booting using the Slackware install DVD.
It should have instructions on the DVD menu boot page. Once you get into your system just rerun the updater and rerun lilo afterwards and it SHOULD work.
The easiest way would be to use Slackware install media to boot the system as if you were going to install.
After you get to the login then from the cli (command line);
Code:
~#mkdir /slacktemp #temporary mount point
~#mount /dev/your_device /slacktemp #device you installed to
~#chroot /slacktemp #change to yours
~#cd /slacktemp/etc #change to directory with lilo.conf
~#vi lilo.conf #edit lilo.conf, if need be
~#lilo -v -t -b /dev/your_device #sda, hda this will only test
~#lilo -v -b /dev/your_device #this will write to your boot device
You can 'man commands' in the above example to get a full understanding of the commands and options. Once lilo has been updated then reboot.
now there's a problem on mounting my device, i checked if my device is mounted by using fdisk -l and i got
Quote:
/dev/sda1 * 53123512bytes 82 Linux
/dev/sda2 4323235 bytes 83 Linux swap
but when i try to mount it, it says :
Quote:
wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
then i tried using the dmesg | tail command and got :
It would help to know some more about your setup.
Were you using the generic kernel with an initrd prior to attempting the upgrade?
If so, it is possible that you have upgraded the kernel but not the associated kernel modules.
Or, it is possible that you have installed the kernel-modules package but have not built the initrd to suit.
Can you boot from the install disk, get to the login and mount the Slackware partition?
Yikes! This is looking like more than a misconfiguration.
If the disk file system was intact, there should be no problem mounting the ext4 partition using the install disk.
I am wondering about corruption of the partition table.
The sizes in post #4 look wrong. A Slackware install in 50MB with a 4MB swap? I do not think so.
Quote:
i tried to fsck.ext4 to fix my bad superblock ...
Probably just as well that it failed as altering the drive may compromise your ability to recover any files.
I suggest that you do not try anything else. Please wait and see whether someone with more experience than me can offer some advice.
sample output for 'fdisk -l'
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xfdc4297b
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 5125 41164800 7 HPFS/NTFS
/dev/sdb2 5126 5386 2096482+ 82 Linux swap
/dev/sdb3 5387 5781 3172837+ 83 Linux
I believe the OP typed the sample output and transposed the blocks count for 'bytes'. To the OP, notice the disk information at the top of the output for the 'fdisk -l'. Then look at the start & end with the Blocks count.
My suggestion for the OP would be restore from backup. What no backup? If the install is new then possibly gamble and attempt a repair by using the install disk then perform a 'fsck' on the filesystem for '/dev/sda1'.
oh pardon, my hard disk size is 60 gigabytes, i allotted 5gig for my swap..
actually i resolved the conflict, my hard disk was corrupted due to power interruption because of overheat so i red some articles about the ext4 super block backup and restore it.
thanks for the help ..
now my problem is how can i reconfigure or roll back my old kernel?..
because every time i reboot without my install cd.. it just reboots.
i'm booting using my install cd kernel configuration. ( hugemsmp.s root=/dev/sda1 rdinit= ro)..
If you are confident that the hard disk file system is OK, then follow onebuck's instructions in post#3. This should get you to being to able to boot from the hard disk. Then you can rerun slackpkg.
This shouldn't happen, but if it does, it may indicate an attempt to access a disk which is not supported by the BIOS. Definitely check to see if the disk is seen by the BIOS first (and that the BIOS detail is complete).
As noted above, check your BIOS to see if indeed the drive(s) are recognized.
Boot using the Install disk then please post the un-edited output for 'fdisk -l' (lower case l not 1(one).
Also post your 'lilo.conf' file.
thanks for everyone participation, i solved all of the problems.
i solved the 0x01 error by reinstalling my lilo by booting in my install cd and using some commands:
Quote:
mkdir /foo
mount /dev/sda1 /foo
mount --bind /proc /foo/proc
mount --bind /sys /foo/sys
mount --bind /dev /foo/dev
chroot foo
vi lilo.conf
lilo
exit
reboot
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.