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.
So many grub problems - I don't understand the MBR and is grub installed in /boot of knoppix and where in W98SE. I thought it was located outside the operating systems. It's also difficult to know what these wizards are doing.
The MBR (Master Boot Record) is defined as the first sector of the physical drive. For that drive to be bootable, there must be boot code here.
Instead of saying "outside the OS", I would say "outside the filesystems". The normal configuration of a drive has the first 63 sectors reserved for boot code and other stuff.
Installation of Windows will take the MBR--no options. This is why the conventional wisdom is to always install Windows first.
A "typical" dual-boot setup has grub code in the MBR, and the GRUB config file in the /boot/grub directory of the Linux install.
I am not totally clear on your current configuration. From Knoppix, please open a terminal, su to root, and enter "fdisk -l". Post the results here.
Also post the complete Windows entry in /boot/grub/menu.lst
See the "booting" link in my sig for some more stuff.....
Many Thanks. Here's the information you requested from "fdisk -l":
Disk /dev/hda: 40.0 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1912 15358108+ c W95 FAT32 (LBA)
/dev/hda2 1913 2868 7679070 83 Linux
/dev/hda3 2869 3123 2048287+ 82 Linux swap / Solaris
looking at your notes (thanks for the link), something looks wrong with my setup...
Just a note- I had to do a scan disk in W98SE before doing a defragment as there were disk errors, so I don't know if disk errors may also be causing this problem. A minor thing- the time settings also changed & I had to change them back to GMT/BST.
aus9 - as you can see I copied it out incorrectly the first time and it is correct as in this post.
aus9 - as you can see I copied it out incorrectly the first time and it is correct as in this post.
Actually, no. Here's your original post for w98:
Quote:
rootnoverify hd(0,0)
chainloader +1
The hd need to be in parenthesis also or it won't work like (hd0,0). Also, if there is no space after the rootnoverify, it won't work. Your entry for Knoppix from your earlier post has a similar error. This is what aus9 was trying to point out. This would prevent booting but maybe you just had a typing error in your earlier post??
If you are referring to the GRUB screen at bootup, then you are right---there is no way to save changes there.
menu.lst does indeed have to be edited as root. You can open any installed editor from the terminal after switching to root using "su". Also, see if something like "nano" or "pico" is installed.
Quote:
I also tried using gedit /boot/grub/menu.lst in the root terminal, but that didn't work as well as trying in the normal terminal.
This should have worked---what was the problem
Quote:
From what I can see Knoppix 6 is automatically root at startup. This is installed to my HDD.
Sometimes, liveCD linux will come up as root but--if you installed it, then you should be asked for username and password when logging in.
Its often (usually ?) the case that /boot/grub/menu.lst is a symlink to /boot/grub/grub.conf. Open an xterm and try
ls -l /boot/grub
to check. You should the grub.conf file directly (all this as root user).
Check to see if permissions allow you to write to the file: mine looks like this:
if yours looks like this, but you get an error in the editor like 'unable to write; insufficient permissions', it probably means the partition is mounted read-only, so you can use
I'm not sure if this is what you were expecting? (menu.lst is above). Have taken W98SE off so now it's single boot Knoppix 6. I'm not sure Windows OEM's are always happy having their partitions reduced. I had errors on 98SE (semi booted, safe mode etc). The XP on my other system goes into chkdsk on startup & this is complicated to stop.
Would like to find out if I can pw protect Knoppix like Ubuntu...
saikee - this worked in Ubuntu but not in Knoppix
pixellany - HDD full installs of Knoppix 6 & Puppy don't ask for usernames or passwords, unlike Ubuntu. I think DSL does though.
Basically everything works in Ubuntu - on the other distros it's more problematic.
On the positive side on my other laptop I installed in this order: XP, Puppy, Ubuntu and now have a triple boot which is a first.
For the future though I'm not sure how to find a kernel path, if say, I installed DSL to give it four boot? Do I also need to install GRUB bootloader again when it's offered on an installation wizard (ie. will it pick up on the other partitions?)
Do I also need to install GRUB bootloader again when it's offered on an installation wizard
No, you don't have to.
Quote:
will it pick up on the other partitions?
Maybe, maybe not. Some distributions are better than others at detecting other systems and putting entries in menu.lst for you.
You could decide before installing another DSL which distributions Grub bootloader you will use. If you choose not to use the bootloader of DSL, then you need an entry in the primary distributions menu.lst. The simplest way to get the correct entry for DSL is to mount it on main distro (Ubuntu?) and look at its menu.lst file for the entry (cat menu.lst) as root. Copy the DSL entry from menu.lst to Ubuntu menu.lst
I'm not sure what you mean - surely it would now be better to create a new partition for DSL and then mount it on that partition and not the Ubuntu one.
Unless I have misunderstood something this is relatively straightforward, unlike the next stage which is to (try to) find the kernel path and then copy that into Ubuntu's "sudo gedit /boot/grub/menu.lst"
You have W98 on hda1, Ubuntu on hda2, swap partition on hda3. You can create one more primary partition. If you use that to install DSL, you will not be able to create any more partitions so I would suggest you use that 4th primary partition to create an extended partition and create a logical partition within the extended to install DSL to.
If you install DSL, I believe it will give you the option whether to install Grub to the mbr or the root partition. I'm not sure as I have not installed it for awhile. If you choose to install Grub to the mbr during the DSL installation, it may or may not detect the other OS's. If it does not, you will need to make entries manually in its /boot/grub/menu.lst file.
If you choose not to install Grub to the mbr during the DSL install, you will then be able to continue to use the Ubuntu bootloader and will need to make an entry in the Ubuntu menu.lst file for DSL.
I'm basing this on the fdisk output from five days ago so I'm not sure whata you've done in the interim? I believe you have changed partitions and OS's since then, correct?
Quote:
I'm not sure what you mean - surely it would now be better to create a new partition for DSL and then mount it on that partition and not the Ubuntu one.
What I was referring to in the above quote was how to access DSL boot files since you were unable to boot DSL.
Since it's been several days since your posts, I'm really not sure what your partition setup currently is.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.