|
13 years ago -1 |
This is a simple way to remove Windows from dual boot menu. Thw Windows that i try to remove is Windows 7 but it's not imposible to other windows. It just remove Windows from menul list. In other words, windows is hidden. There's not need requirement. It's bvery EASY.
STEP 1
Fisrt,must enter your Linuxmint. Open Terminal and type :
gksudo gedit /boot/grub/grub.cfg
this command will open file grub.cfg. It contains some commands that set dual boot menu. Yes, we can edit it.
STEP 2
Search word "Windows" in this file, and we will find some commands like this.
### BEGIN /etc/grub.d/30_os-prober ###
menuentry “Windows 7 (on /dev/sda1)” {
insmod ntfs
set root=’(hd0,1)’
search –no-floppy –fs-uuid –set 2c72f8d872f8a7aa
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
The Easiest Way is we must delete that commands then save the file. Or the effective ways is just commenting these lines with character '#' (Thanks for suggestions)
STEP 3
To make it works. Update the grub. Type to Terminal :
sudo update-grub
FInally, restart computer.
Done
yes i agreed with you all.it will more flexible if we use commenting these lines.i will revise this tutorial.
Agreed with Alexio, it would probably be unwise to simply delete the lines if there's any chance whatsoever you may have to have them back. Commenting them out is much safer in that regard.
I think you should use ### to hide the commands from step 2 instead of deleting the commands. Maybe you change your mind and the commands are still there...