acid45
06-27-2006, 04:14 PM
*there is a yes/no question at the bottom*
Okay, I killed it good this time. My guess is trying to upgrade to 2.6 is the problem...
I rebooted the system and got an error and the lilo stack and kernel stack were overlaping...okay. So I took out my ubuntu 5.1 live cd and tried to fix it, without knowing what I'm doing.
You guess it, I ran:
mount /dev/sda /mnt
/mnt/sbin/lilo -C /mnt/etc/lilo.conf
This gave me an error about lilo not knowing what to do with device #HEX#. I figured that I accidentially tried to tell lilo to install the boot loader into my ram, which would be the live distro I guess.
So I decided to read the lilo man page...
man -M /mnt/usr/man lilo
After reading that I found that I needed to sepcify the device I would like to install lilo to the MBR of. So I ran:
/mnt/sbin/lilo -M /dev/sda -C /mnt/etc/lilo.conf
maybe it should have been
/mnt/sbin/lilo -M /mnt/dev/sda -C /mnt/etc/lilo.conf
It siad it did it successfully and there was a backup in /boot/.boot0 or something like that.
This is where I broke it good.
When I boot, it comes back and says there is no bootloader on the partition, I'm guessing the MBR partition.
Now I can't even mount /dev/sda or /dev/sdb, which doesn't make sense. They worked perfect the first and second time. Well I never tried /dev/sdb. It says they are busy or are already mounted but I use find / -name .mp3 to find any files in that filesystem and none are available.
Can I fix it?
okay I lied it's not yes no, it's no / yes and...
If yes
Where can I find a tutorial to mount the drive, if I can just get /dev/sda mounted and move the files I need to /dev/sdb, that would be great!!!
I think this one might help...but I'm not sure
http://www.talug.org/howto/rootboot.html
PS there is one odd thing I noticed. In the live filesystem there are entries for /dev/sda and /dev/sdb but the only places I can find that they might be mounted are at /sys/block/sda etc. But this only contains partition info, drive specs etc. I figured this might be why the device would be labeled as busy but it seems like it's all just data that the sysm wrote to file as it checked the disks.
I think I found something that might help, using a boot disk. But they left me with a bunch of questions...
Are the really important programs (/bin and /sbin stuff) statically or dynamically linked? If they're dynamically linked you can shoot yourself in the foot by messing with libraries. Doesn't matter, I screwed with bootloader, I hope so anyway.
Do you have kernel source in /usr/src from which a new kernel can be compiled? Yes, a 2.6 kernel...I don't think it's in /usr/src though
Do you know how to use LILO to boot a backup kernel image? If I did, I wouldn't be here...but maybe the man page can help.
Do you know your partition layout? If you're using one massive partition have you thought about the pros and cons of doing that? Yup, on massive partition. Nope, I don't expect data corruption of any kind, the partitions SEEM to be in tact, althought they did start acting funny after my last lilo command, not being able to mount either of them for example.
Again, can I fix it? Do I just need a bootdisk and then run lilo for the native filesystem rather than a live filesystem?
"Worse case scenario is you lose all of your data - then we get to point at you and laugh. " -Brian, "http://www.talug.org/howto/rootboot.html"
Okay, I killed it good this time. My guess is trying to upgrade to 2.6 is the problem...
I rebooted the system and got an error and the lilo stack and kernel stack were overlaping...okay. So I took out my ubuntu 5.1 live cd and tried to fix it, without knowing what I'm doing.
You guess it, I ran:
mount /dev/sda /mnt
/mnt/sbin/lilo -C /mnt/etc/lilo.conf
This gave me an error about lilo not knowing what to do with device #HEX#. I figured that I accidentially tried to tell lilo to install the boot loader into my ram, which would be the live distro I guess.
So I decided to read the lilo man page...
man -M /mnt/usr/man lilo
After reading that I found that I needed to sepcify the device I would like to install lilo to the MBR of. So I ran:
/mnt/sbin/lilo -M /dev/sda -C /mnt/etc/lilo.conf
maybe it should have been
/mnt/sbin/lilo -M /mnt/dev/sda -C /mnt/etc/lilo.conf
It siad it did it successfully and there was a backup in /boot/.boot0 or something like that.
This is where I broke it good.
When I boot, it comes back and says there is no bootloader on the partition, I'm guessing the MBR partition.
Now I can't even mount /dev/sda or /dev/sdb, which doesn't make sense. They worked perfect the first and second time. Well I never tried /dev/sdb. It says they are busy or are already mounted but I use find / -name .mp3 to find any files in that filesystem and none are available.
Can I fix it?
okay I lied it's not yes no, it's no / yes and...
If yes
Where can I find a tutorial to mount the drive, if I can just get /dev/sda mounted and move the files I need to /dev/sdb, that would be great!!!
I think this one might help...but I'm not sure
http://www.talug.org/howto/rootboot.html
PS there is one odd thing I noticed. In the live filesystem there are entries for /dev/sda and /dev/sdb but the only places I can find that they might be mounted are at /sys/block/sda etc. But this only contains partition info, drive specs etc. I figured this might be why the device would be labeled as busy but it seems like it's all just data that the sysm wrote to file as it checked the disks.
I think I found something that might help, using a boot disk. But they left me with a bunch of questions...
Are the really important programs (/bin and /sbin stuff) statically or dynamically linked? If they're dynamically linked you can shoot yourself in the foot by messing with libraries. Doesn't matter, I screwed with bootloader, I hope so anyway.
Do you have kernel source in /usr/src from which a new kernel can be compiled? Yes, a 2.6 kernel...I don't think it's in /usr/src though
Do you know how to use LILO to boot a backup kernel image? If I did, I wouldn't be here...but maybe the man page can help.
Do you know your partition layout? If you're using one massive partition have you thought about the pros and cons of doing that? Yup, on massive partition. Nope, I don't expect data corruption of any kind, the partitions SEEM to be in tact, althought they did start acting funny after my last lilo command, not being able to mount either of them for example.
Again, can I fix it? Do I just need a bootdisk and then run lilo for the native filesystem rather than a live filesystem?
"Worse case scenario is you lose all of your data - then we get to point at you and laugh. " -Brian, "http://www.talug.org/howto/rootboot.html"