LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 12-13-2010, 11:41 PM   #1
dmanlikespie
LQ Newbie
 
Registered: Dec 2010
Posts: 14

Rep: Reputation: 0
Uninstalling grub more comlicated than it seems bet you cant figure this out


ok here is what happened i had unetbootin and put unbuntu on a flash drive and i got tired of booting then not having a wireless driver installed every time i would boot so i took that os and used the preset install linux button to install on to an opposing plash drive that way i could save the wireless driver well in that process it wiped the windows mbr and installed grub well it also made it to where i had to have the flash drive even to boot from the hard drive and i am not able to use the whole boot recovery crap because there is no disk drive and im not able to boot windows from a flash drive because grub says "revove all devices o media" or something like that and to make it even better in windows XP os it is a limited account so i can not install windows on a partition and reset the mbr that way either any help or ideas would be greatly apprecieated thank you.
 
Old 12-14-2010, 12:40 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Say what?

Since it's hard to understand your run on sentences with no punctuation, let me assume.

The MBR is just 512 bytes at the start of the disk. So, if your disk is sda, then
Code:
dd if=/dev/zero of=/dev/sda bs=512 count=1
will put zeroes on those first 512 bytes.
 
0 members found this post helpful.
Old 12-14-2010, 07:28 PM   #3
dmanlikespie
LQ Newbie
 
Registered: Dec 2010
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Bruce Hill View Post
Say what?

Since it's hard to understand your run on sentences with no punctuation, let me assume.

The MBR is just 512 bytes at the start of the disk. So, if your disk is sda, then
Code:
dd if=/dev/zero of=/dev/sda bs=512 count=1
will put zeroes on those first 512 bytes.
Sorry i was in a hurry. I am not gifted with Linux at all. on the other hand i am very gifted with windows.so could i have some more explanation please?
I was trying to say that i had unetbootin. I used it to create a boot-able version of Linux. well it worked fine until i found out i needed a wireless driver installed. i got the wireless driver installed and realized that every time i booted Linux the wireless driver was wiped. so on that boo-table version of Linux there was an install option, so i used another flash drive to install to. Well upon that install it erased the windows mbr and put on grub and grub works only when the flash drive is plugged in upon boot. I am not able to just use windows recovery because the computer its on does not have a disk drive, and grub does not recognize the boot-able flash drive of windows.
 
Old 12-14-2010, 07:39 PM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Hey, I'm not a grub type of guy, except when fishing for bream; but, if
you edit your grub menu.lst or grub.conf file such as:
Code:
# The next four lines are only if you dual-boot with a Windows system.
# In this case, Windows is hosted on /dev/sdc1.
title Win7
rootnoverify (hd0,0)
makeactive
chainloader +1
Adjust those values for your Windows location and you should be able to
boot into Windows with grub. Granted, grub is not as intelligent as lilo,
or as easy to use (think /dev/sdc1 in lilo vs. hd0,0 or whatever in grub)
because grub does not read your drives the same as BIOS and Linux.

If you can't get grub to work, and can't install lilo, then you need to
Google for how to fix the MBR from a flash drive.
 
Old 12-14-2010, 07:41 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by Bruce Hill View Post
Say what?

Since it's hard to understand your run on sentences with no punctuation, let me assume.

The MBR is just 512 bytes at the start of the disk. So, if your disk is sda, then
Code:
dd if=/dev/zero of=/dev/sda bs=512 count=1
will put zeroes on those first 512 bytes.

Don't do this, it will destroy your partition table !!!


The correct code is:
Code:
sudo dd if=/dev/zero of=/dev/sdX bs=446 count=1
You have to replace the sdX with the identifier for your harddisk. You can get the identifier with GParted or by typing
Code:
sudo fdisk -l
.

The dd-command will erase the bootloader GRUB from your harddisk, so that you can start from your Windows flash drive and repair your installation.
 
Old 12-14-2010, 07:58 PM   #6
dmanlikespie
LQ Newbie
 
Registered: Dec 2010
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TobiSGD View Post

Don't do this, it will destroy your partition table !!!


The correct code is:
Code:
sudo dd if=/dev/zero of=/dev/sdX bs=446 count=1
You have to replace the sdX with the identifier for your harddisk. You can get the identifier with GParted or by typing
Code:
sudo fdisk -l
.

The dd-command will erase the bootloader GRUB from your harddisk, so that you can start from your Windows flash drive and repair your installation.
I feel so useless not knowing some of this. Are you saying harddisk as the harddrive that windows is installed on or the flash drive that is required for boot that has linux on it?
 
Old 12-14-2010, 08:09 PM   #7
dmanlikespie
LQ Newbie
 
Registered: Dec 2010
Posts: 14

Original Poster
Rep: Reputation: 0
and i can boot into windows just fine because it shows up in grub but i just want windows mbr back.
 
Old 12-14-2010, 08:16 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
To get you MBR back, you have to boot into the Windows recovery console. Most times this is done by booting into a Windows install medium and choose the repair option. If using Windows XP you have to type the command
Code:
fixmbr
into the recovery console, if you use Vista or 7 the the command is
Code:
bootrec /FixMbr
You have stated, that your computer isn't starting from your flash drive with Windows on it. You should be able to change the boot priority in your BIOS, so that your computer tries to boot from USB first.
 
Old 12-14-2010, 08:24 PM   #9
dmanlikespie
LQ Newbie
 
Registered: Dec 2010
Posts: 14

Original Poster
Rep: Reputation: 0
i have tried booting the flash drive many times and changing the boot order but i am not able to get it to boot.
 
Old 12-14-2010, 08:34 PM   #10
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Have you been able to boot that Windows flashdrive anytime in the past? I mean, are you sure that it is bootable?
If so, you should be able to boot from that device. You can try to remove grub with the dd-command, and see if that works to get the usb-drive working, but I doubt so. Be aware that you will not be able to boot Windows at all, if you do that and you nonetheless can't boot from your Windows flashdrive.
 
Old 12-14-2010, 08:44 PM   #11
dmanlikespie
LQ Newbie
 
Registered: Dec 2010
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TobiSGD View Post
Have you been able to boot that Windows flashdrive anytime in the past? I mean, are you sure that it is bootable?
If so, you should be able to boot from that device. You can try to remove grub with the dd-command, and see if that works to get the usb-drive working, but I doubt so. Be aware that you will not be able to boot Windows at all, if you do that and you nonetheless can't boot from your Windows flashdrive.
Well i have just extracted the windows xp .iso file to the root of the flash drive. i belive it is i will try to see if it is on my desktop real quick.
 
Old 12-14-2010, 08:53 PM   #12
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
It will not work to just copy the contents of the disk to the flashdrive. However, I am not sure, if Windows XP is able to run the installer from an USB-disk at all. It may be the best and simplest option to get a USB-CDROM drive, may be you can borrow it somewhere. Or you can try to boot from the .iso-file with Grub4DOS.
 
Old 12-14-2010, 08:56 PM   #13
dmanlikespie
LQ Newbie
 
Registered: Dec 2010
Posts: 14

Original Poster
Rep: Reputation: 0
well i do have vista .iso and 7 .iso
 
Old 12-14-2010, 09:01 PM   #14
dmanlikespie
LQ Newbie
 
Registered: Dec 2010
Posts: 14

Original Poster
Rep: Reputation: 0
well the only thing i ever get is "remove disks or other media. Press any key to restart" and ive thought about getting a usb cd rom drive its my last resort id like to fix it with what i have on hand. If i can not i shurly will.
 
Old 12-14-2010, 09:24 PM   #15
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by dmanlikespie View Post
well the only thing i ever get is "remove disks or other media. Press any key to restart"
That is, as I mentioned before, because of just copying the files to the flash-disk doesn't work. You also need a bootloader on the flash-disk.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't Figure out how to edit the default GRUB boot order in Ubuntu 9.10 64 Bit xzillerationer Linux - Newbie 4 03-25-2010 06:53 PM
uninstalling grub ekamlesh Linux - Newbie 3 11-11-2008 06:33 AM
Trying to figure out what grub options to pass benrose111488 Linux - Software 2 06-20-2007 10:34 PM
uninstalling grub Maverick1182 SUSE / openSUSE 4 02-04-2006 07:14 AM
uninstalling grub on windows xp owan_reeds Linux - Newbie 3 01-01-2004 03:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 09:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration