Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with 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 have added a FAT32 partition in place of the free space, the next day I booted Linux and it seems it can't find Reiserfs on /dev/hda8, what causes kernel panic.
I have immediately deleted the newly added partition, but the problem persists and my Mandriva 2006 won't boot.
How to solve this? How to tell the system which partition it should boot from?
Boot Mandriva into rescue mode (CD in need), or use something like Knoppix
Code:
fdisk -l
cat /etc/fstab
For the fdisk, that's a lower case ell, and for the fstab you may need extra pathing - say /media/etc/fstab (or somesuch); we need to see your (hard disk) original version.
I have edited my previous post so now it's correct. It seems that the partition names are shifted by one to what was before: the system tries to read /dev/hda7 as swap, /dev/hda8 as the system etc, should be /dev/hda8 and /dev/hda9 accordingly.
Where is the system information stored so I can edit it right now? I don't mind playing with system settings myself.
what does every line do? I need to be sure nothing's going to be screwed up. And the paths are slightly different in my distro, I suppose.
Will it work if I boot from a liveCD?
And how to chroot into the installation :|?
These are the commands you would do from a livecd terminal.
The part that says /media/hda9 should go to wherever your root partition is.
and the stuff I typed was how to chroot.
mount -o bind /dev /media/hda9/dev mounts the /dev/ section of the liveCD to your hard drive, so that you can access your devices.
mount -t proc none /media/hda9/proc mounts /proc/ which is used for kernel processing.
chroot /media/hda9 /bin/bash chroots you into your installation, and runs the Bourne Again SHell.
env-update and source /etc/profile reconfigures things to the settings in your chroot.
IF YOU ARE NOT RUNNING OFF OF A LIVECD, JUST TYPE LILO INTO A COMMAND PROMPT. This stuff is for chrooting. If you are already in your installation, you don't have to chroot.
nothing gets overwritten. I can't remember, but I think it is because neither of those directories have anything in them because proc gets written when the kernel boots and dev is populated by udev. But, it's been a long time before I checked, and my memory is pathetic, so I'm probably wrong.
After succesful running of previous commands, this happened:
[root@pawelc /]# env-update && source /etc/profile
bash: env-update: command not found
I've run lilo anyways and I'm going to check if this worked.
EDIT:
It didn't work and now I'm not sure what to do. It says that the Reiserfs superblock is corrupted on /dev/hda8 after checking root filesystem and puts me into maintenance mode (in which I can see properly mounted root partition, but other partitions are not mounted at all)
The problem is resolved - I used the old config file, but deleted the unnecessary partition between /home and swap. It was added after few months of Linux usage, so it was previously called hda9.
WARNING!
It seems that Windows rearranges the partition names - after that, their names suit their location on the drive (hda1 hda3 hda2 would be rearranged to hda1 hda2 hda3).
I'd recommend using a LiveCD or anything other based on Linux for playing with partitions to prevent damage.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.