Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
When changing the lilo.conf file I copy the tutorial exactly but when I go to run lilo -v, I get a
"Fatal: First sector of /dev/sda1 doesn't have a recognizable boot."
Hopefully, someone can help me out with this, I'm running on a T61 Lenovo, Vista Ultimate OS, trying to use Backtrack 2.
other = /dev/sda1
label = Windows
table = /dev/sda
Now i tried re mounting my /boot/ from a previous post on the forum, and apparently this doesn't help because now I get a
"warning:
/proc/partitions' does not exist, disk scan bypasses
Fatal: creat /boot/map~: No such file or directory"
fdisk shows the partitions in order and correct System
When I use the command 'mount' the output is
tmpfs on / type tmpfs (rw)
proc on / proc type proc (rw)
sysfs on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw,devgid=10,devmode=0666)
/dev/sda4 on /mnt/sda4 type reiserfs (rw,noatime)
/dev/sda2 on /mnt/backtrack/boot type ext2 (rw)
when I try command "chroot /mnt/backtrack/ /bin/bash/"
output is:
chroot: cannot run command '/bin/bash/' : No such file or directory
First, let me say I greatly appreciate your help and very quick response. My only hope is I can learn Linux to a high enough extent I could help people in my shoes one day. When I run fdisk -l, I get:
cannot open /proc/partitions
when I do nano /etc/fstab, the output is:
/dev/sda4 / auto defaults 1 1 (WHICH IS In the Nano Reader)
I did run lilo -v when I edited lilo.conf the first time. I might also add that when I first tried to edit it and run lilo -v, I did see that linux was added it stated :
Linux added*
But it hung up on the windows part stating the fatal error.
First, let me say I greatly appreciate your help and very quick response. My only hope is I can learn Linux to a high enough extent I could help people in my shoes one day. When I run fdisk -l, I get:
cannot open /proc/partitions
when I do nano /etc/fstab, the output is:
/dev/sda4 / auto defaults 1 1 (WHICH IS In the Nano Reader)
I did run lilo -v when I edited lilo.conf the first time. I might also add that when I first tried to edit it and run lilo -v, I did see that linux was added it stated :
Linux added*
But it hung up on the windows part stating the fatal error.
Thank you in advance,
Sean
If that is all you got in the '/etc/fstab' then you should create a proper one.
This is going to sound most likely to be very simple, but that code regarding the fstab, I'm not sure how to use that correctly for my partitions? I'm not quite sure what the 0, and 1's mean at the end and I don't want to make another terrible mistake. If there's anyway you could clarify that for me, it would be very helpful.
now when i test booting up the /dev/sda2, it seems to be working now,
it says *added linux
but when i do this to the windows partition I get an error, I haven't yet run " Lilo -v" I wont want to write to the MBR. Hope this can help someone in figuring out what mistake I have made.
I believe my windows partition is set to active boot, but I don't know how to check this.
now when i test booting up the /dev/sda2, it seems to be working now,
it says *added linux
but when i do this to the windows partition I get an error, I haven't yet run " Lilo -v" I wont want to write to the MBR. Hope this can help someone in figuring out what mistake I have made.
I believe my windows partition is set to active boot, but I don't know how to check this.
Much appreciated
If you use fdisk, then you can see the partition(s) information.
How are you booting your system? What's the problem with writing to the MBR? The 'lilo -v';
Quote:
excerpt 'man lilo'
-v Increase verbosity. Giving one to five -v options will make lilo
more verbose, or use, -v n (n=1..5) to set verbosity level 'n'.
I would suggest that you look at the 'man lilo' and 'man lilo.conf' to get some good background.
Thanks for the links, and for the man lilo, didn't know that existed. Those have given me a lot to read, I understand a lot more about lilo now but still not sure where I am making the mistake. My active partition which is flagged is my sda2 which is my linux boot, fdisk still sees all my partitions perfectly. And I did write to the MBR, when I run lilo I get:
Reading Boot sector from /dev/sda
Warning: 'proc/partitions' does not exist, disk scan bypassed
Using MENU secondary loader
calling map_insert_data
Boot image: /boot/vmlinuz
Added Backtrack*
Boot Other: /dev/sda1 on /dev/sda, loader chain
Fatal: First sector of /dev/sda1 doesn't have a valid boot signature
Thanks for the links, and for the man lilo, didn't know that existed. Those have given me a lot to read, I understand a lot more about lilo now but still not sure where I am making the mistake. My active partition which is flagged is my sda2 which is my linux boot, fdisk still sees all my partitions perfectly. And I did write to the MBR, when I run lilo I get:
Reading Boot sector from /dev/sda
Warning: 'proc/partitions' does not exist, disk scan bypassed
Using MENU secondary loader
calling map_insert_data
Boot image: /boot/vmlinuz
Added Backtrack*
Boot Other: /dev/sda1 on /dev/sda, loader chain
Fatal: First sector of /dev/sda1 doesn't have a valid boot signature
Any Advice??
Make the active partition on sda1. Re-run your lilo as shown before.
Ignoring entry 'boot'
reading boot sector from dev/sda
Warning: 'proc/partitions' does not exist, disk scan bypassed
Using MENU secondary loader
Calling map_insert_data
Boot image: /boot/vmlinuz
Added Backtrack *
Boot other: /dev/sda1, on /dev/sda, Loader CHAIN
Fatal: First sector of /dev/sda1 doesn't have a valid boot signature
Ignoring entry 'boot'
reading boot sector from dev/sda
Warning: 'proc/partitions' does not exist, disk scan bypassed
Using MENU secondary loader
Calling map_insert_data
Boot image: /boot/vmlinuz
Added Backtrack *
Boot other: /dev/sda1, on /dev/sda, Loader CHAIN
Fatal: First sector of /dev/sda1 doesn't have a valid boot signature
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.