hiding windows OS when dual boot
Moderator: General Moderators
hiding windows OS when dual boot
hi there...i was just wondering if it is possible to hide the windows OS when my pc is in dual boot...to make my it clear, here's the idea...i have a windows xp installed in my system, then i made it dual boot to linux...when you turn on the computer, there are selections to where you will be booting, windows or linux...then select the OS you want to boot from...now, will it be possible that i can hide the windows choice from the selection??or rename the windows xp selection to something else(let's say, another linux flavor)?
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Which bootloader? Grub or Lilo (or even windows - that's still possible to do).
Yes it's possible but we need to know which bootloader you use.
If it's grub then:
Then find the line which starts with something like:
Delete all the stuff that's under that line (there will be a few chainloader + 1 etc etc...) until the next title (if there's more opertaing systems). To get into linux you'll need at least a root definition, a device location and some kernel params e.g.
With grub at least, you will not have to rewrite the MBR but with Lilo I believe you will.
Yes it's possible but we need to know which bootloader you use.
If it's grub then:
Code: Select all
nano -w /boot/grub/grub.confCode: Select all
title=Windows XPCode: Select all
root (hd0,0)
title=My Linux
kernel (hd0,0)/boot/kernel-2.6.12-r10 root=/dev/hda1thanks d11wtq for the info...i really have no idea what is the boot loader of my linux...my flavor is xandros desktop...all i can see in my boot directory are files namely: boot.0300, boot.0303, config-2.6.11-x1, initrd-2.6.11-x1.gz, map, splash.lilo, System.map-2.6.11-x1, System.map, vmlinuz-2.6.11-x1, xandros.splash.b
by the way, when i tried to do nano, the console prompts me "command not found"...thanks again d11...
by the way, when i tried to do nano, the console prompts me "command not found"...thanks again d11...
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
OK it looks fairly simple. To do with lilo.
Find the line that starts with "other=" and delete that line along with the label for it (probably directly underneath). Type CTRL+O then ENTER to save the file then CTRL+X to close it.
Now you need to write lilo back to the MBR.
You should get some messages saying what it's done 
You'll need to do all this as the root user by the way (probably can use the command "su" to swicth to the root user).
Code: Select all
pico -w /etc/lilo.confNow you need to write lilo back to the MBR.
Code: Select all
/sbin/liloYou'll need to do all this as the root user by the way (probably can use the command "su" to swicth to the root user).
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
that's great...but wait...how will i do the code below??
d11wtq wrote:OK it looks fairly simple. To do with lilo.
Now you need to write lilo back to the MBR.
You should get some messages saying what it's doneCode: Select all
/sbin/lilo![]()
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Once you've edited and saved lilo.conf simply type (in a console window) "/sbin/lilo" then hit enter. It should just work. Then you'll need to type "reboot" or "shutdown -r now" to reboot 
Note: Editting lilo.conf will not do anything until you rewrite lilo to the MBR by issuing the command /sbin/lilo
Note: Editting lilo.conf will not do anything until you rewrite lilo to the MBR by issuing the command /sbin/lilo
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
well, im not realy sure how can i let you browse my system, but anyway, regarding to the question about the reason to hide windows?well, i am very much comfortable with windows, but my brother won't let me use it, he's an advocate of open system...by the way, he's older than me and he owns the computer i'm using in the house...hehehe...i just like windows for my games, and using linux for games gives me like a hell of a job figuring out how i can play it there, considering that i tried some emulator, my favorite games doesn't seem to work...i jaust like that when my brother used the computer, he cannot browse the windows partition in my system...hehehe...but anyway, in the office, i am using a linux box, and i don't intend to install windows there, for i have no rights(admin privileges) to install it...d11wtq wrote:Well I could check what block devices you have and then mount them so I can browse the files. It would be pretty easy to work out yes. Any reason why you want to hide windows?
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia