LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 04-14-2009, 07:41 PM   #1
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
How to uninstall grub from my usb??


Did an hd install of dsl to my USB, now having permission/boot problems after trying to remove Grub.
How do I get Grub completely off the usb?
Do I have to dd the MBR?
How?
Thanks
 
Old 04-14-2009, 07:49 PM   #2
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
Did you follow the instructions for a persistent image?

http://www.knoppix.net/forum/viewtopic.php?t=23558

Whatever your main OS version is, use the first disc to do a rescue then just use the BIOS boot selection to use the usb key when necessary.
 
Old 04-14-2009, 08:14 PM   #3
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Original Poster
Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
I asked how to get grub off my usb-not put Knoppix on my usb-
So-how do I get Grub off my USB?
Do I use the dd command? "dd if=/dev/zero of=/dev/sdf1"??
 
Old 04-14-2009, 09:44 PM   #4
hurry_hui
Member
 
Registered: Oct 2008
Location: Near Jakarta
Distribution: Slackware, Arch, Slax, Porteus, Tiny Core, Slitaz
Posts: 355
Blog Entries: 1

Rep: Reputation: 51
I think you need to include block size, bs=512 to remove partition table and bs=446 to remove only MBR. It then like dd if=/dev/zero of=/dev/sdf1 bs=446 count=1. I am not so sure. Someone might correct this.

Last edited by hurry_hui; 04-14-2009 at 09:46 PM.
 
Old 04-15-2009, 07:26 AM   #5
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Original Poster
Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
OK-that didn't work either-
So far I've deleted/formatted the USB and did dd if=/dev/zero of=/dev/sdf1 bs=446 count 1
I also tried /dev/sdf and /dev/null.
Nothing works-when I try to boot off the USB grub is still there!
So-how do I get Grub off my usb mbr?
 
Old 04-15-2009, 07:57 AM   #6
jolphil
Member
 
Registered: May 2002
Location: central florida
Distribution: Linux Mint, ,Mageia,Ubuntu
Posts: 453

Rep: Reputation: 33
Hello,
I have always relied on Ranish Part image for those pesky hard to get rid of partitions..I do not know if it will work on USB though..Maybe someone else has used it there can respond..
Thats all i can think of now..
Goodluck,
jolphil

Edit Later: I just did a test on two of my computers(one older and one newer) and Ranish did not see the USB drive..Thus I am sorry It does not seem to work here..

Last edited by jolphil; 04-15-2009 at 08:21 AM.
 
Old 04-15-2009, 09:08 AM   #7
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Original Poster
Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
So does anyone know why I can't remove grub from my usb mbr?
I have tried almost everything and it's still there-??
 
Old 04-15-2009, 11:39 AM   #8
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Quote:
dd if=/dev/zero of=/dev/xxx bs=446 count=1
is the correct syntax.

Code:
bs=446 => removes MBR
bs=512 => removes the partition table
What is the device from your USB ?
what is the output from
Code:
fdisk -l
 
Old 04-15-2009, 12:32 PM   #9
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Original Poster
Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
I did all that Repo-
I still get a grub prompt at boot with a flashing ">"
I even installed syslinux and nothing-re-formatted.
I'm at a loss here....
 
Old 04-15-2009, 12:40 PM   #10
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Can you please give the command and the output you get when you execute it?
Code:
dd if=/dev/zero of=/dev/sdf bs=512 count 1
Also what is the output from fdisk -l with the usb connected.
 
Old 04-15-2009, 12:48 PM   #11
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Original Poster
Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
Output of fdisk -l

Code:
root@bz-desktop:/home/bz# fdisk -l

Disk /dev/sdf: 4045 MB, 4045930496 bytes
255 heads, 63 sectors/track, 491 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0006a054

   Device Boot      Start         End      Blocks   Id  System
/dev/sdf1   *           1         491     3943926    b  W95 FAT32
output of dd-
Code:
root@bz-desktop:/home/bz# dd if=/dev/zero of=/dev/sdf bs=512 count=1
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.00724268 s, 70.7 kB/s
Now, again I'll try and see if it will boot with no grub ">".
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Grub won't uninstall >< Murtrude Linux - Software 4 06-08-2008 05:28 PM
U7.04 - Uninstall Grub and Install Grub pete_bogg Ubuntu 3 08-08-2007 06:24 PM
trying to uninstall grub nunovski Linux - General 11 05-14-2006 01:48 PM
uninstall grub? yayd Linux - Newbie 17 01-16-2006 11:57 AM
uninstall GRUB Krun Linux - Newbie 3 11-20-2004 12:03 PM


All times are GMT -5. The time now is 11:17 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration