LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 05-16-2005, 04:34 PM   #1
Eugney
Member
 
Registered: May 2005
Distribution: Slackware 10.1
Posts: 83

Rep: Reputation: 15
Fdisk /MBR


I cant fdisk /mbr whaen i do it says unable to open /MBR how do i do it anyone hel;p
 
Old 05-16-2005, 04:38 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 58
Can you tell us where you are running that and what you are trying to do?
 
Old 05-16-2005, 04:39 PM   #3
Eugney
Member
 
Registered: May 2005
Distribution: Slackware 10.1
Posts: 83

Original Poster
Rep: Reputation: 15
Slackware 10.1 Ever since i installed a few weeks ago lilo doesnt work no matter what i doedit the confg fgile reinstall so i figure somethings up with my mbr cuse i have virus protect off on the mobo and i get lilio error L10 so i want to fdisk my mbr by useing fdisk /MBR but it says unable to open witch it shouldnt
 
Old 05-16-2005, 04:42 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 58
Quote:
Originally posted by Eugney
i want to fdisk my mbr
What do you want to achive by that? Are you running that in linux?

If you want to reinstall lilo then run liloconfig and it will help you install lilo onto the mbr.
 
Old 05-16-2005, 04:44 PM   #5
Eugney
Member
 
Registered: May 2005
Distribution: Slackware 10.1
Posts: 83

Original Poster
Rep: Reputation: 15
I already said i tried to reinstall lilo it does not work so i want to fdisk mbr and i want to redo the whole machine but i can not do the mbr
 
Old 05-16-2005, 04:52 PM   #6
Eugney
Member
 
Registered: May 2005
Distribution: Slackware 10.1
Posts: 83

Original Poster
Rep: Reputation: 15
Seems like i need to have a windows boot disk but i dont have a floppy to do it my floppy drive wire was cut by my little bro so yeah
 
Old 05-16-2005, 04:55 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 58
Ok, so you are trying get the computer to boot a windows bootloader?

Which version of windows are you using?
 
Old 05-16-2005, 04:58 PM   #8
Eugney
Member
 
Registered: May 2005
Distribution: Slackware 10.1
Posts: 83

Original Poster
Rep: Reputation: 15
No you arnt reading what im saying ok here

Im Running Slackware 10.1 I want to format my HDD and also Redo my MBR

Ive goggled mbr and it seems like i can only do fdisk /mbr with a windows boot disk but i dont have a floppy

so i want to know if i can do fdisk /mbr with out a floppy on slackware and if so than ima formate my hdd and fdisk the mbr and hdd and reinstall slackware
 
Old 05-16-2005, 05:07 PM   #9
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 58
Quote:
Originally posted by Eugney
No you arnt reading what im saying ok here
I'm not sure are telling us what we need to know or reading what I'm saying.

Quote:
Originally posted by Eugney
Im Running Slackware 10.1 I want to format my HDD and also Redo my MBR
Redo? What do you want to put on the MBR? You can use mkfs to format the partitions. If you are going to reinstall another operating system then it should put the correct data on the mbr for you.

Quote:
Originally posted by Eugney
Ive goggled mbr and it seems like i can only do fdisk /mbr with a windows boot disk but i dont have a floppy
If you want to install the windows bootloader then yes you can only do it with a windows disk. If you have 2000, xp or 2003 then you don't use fdisk you use fixmbr.

Quote:
Originally posted by Eugney
so i want to know if i can do fdisk /mbr with out a floppy on slackware and if so than ima formate my hdd and fdisk the mbr and hdd and reinstall slackware
You don't need to fdisk /mbr to install slackware. Just reinstall slackware if you like then choose to install lilo onto the mbr.
 
Old 05-16-2005, 05:10 PM   #10
Eugney
Member
 
Registered: May 2005
Distribution: Slackware 10.1
Posts: 83

Original Poster
Rep: Reputation: 15
My MBR is messed up its fooked lol just want to redo it by doing fix mbr or fdisk /mbr but i dont have a floppy to do it so i want toi know is there another way to do it with out a floppy
 
Old 05-16-2005, 05:13 PM   #11
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 58
Can you just forget about fdisk and the mbr for a minute.

Can you confirm that you want slackware linux to be the only OS on this computer?
 
Old 05-16-2005, 05:13 PM   #12
Eugney
Member
 
Registered: May 2005
Distribution: Slackware 10.1
Posts: 83

Original Poster
Rep: Reputation: 15
here ok here ill explain it the best way i can ok

Im on a labtop there is no floppy drive so i cant use it to do fdisk /mbr is there a way to do it with a cd rom
 
Old 05-16-2005, 05:35 PM   #13
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,282

Rep: Reputation: 61
If you want to erase the mbr and the partition table of the disk
boot from a linux cdrom and do (assuming your drive is /dev/hda)
Code:
dd if=/dev/zero of=/dev/hda count=1 bs=512 && sync
Now if you want to keep the partition table, I am not sure but I think
you use the same command exept you replace 512 with 446
 
Old 05-16-2005, 06:09 PM   #14
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
I have a headache.
 
Old 05-16-2005, 06:28 PM   #15
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,718

Rep: Reputation: 48
Quote:
Originally posted by keefaz
If you want to erase the mbr and the partition table of the disk
boot from a linux cdrom and do (assuming your drive is /dev/hda)
Code:
dd if=/dev/zero of=/dev/hda count=1 bs=512 && sync
Now if you want to keep the partition table, I am not sure but I think
you use the same command exept you replace 512 with 446
you're right there:

filling in " 446 " will erase all but the partition table.
filling in " 440 " will also leave the disk-id untouched.

the id might be used by windows to recognise the disk, and if it's erased,
( you'll guess it ) it won't start from that disk.
i think it's optional but it might be default.

egag
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
fdisk /mbr in Linux? wayneinmpls Linux - Newbie 6 12-20-2005 11:27 AM
Grub - fdisk /MBR lucho707 Linux - Software 1 11-30-2005 11:07 PM
fdisk /mbr rharvey@cox Linux - Software 2 02-16-2004 12:19 PM
why won't my mbr fdisk /mbr? jamessp007 Mandriva 13 01-03-2004 01:41 AM
Life after fdisk /mbr amijinx Linux - Hardware 3 10-01-2003 06:34 AM


All times are GMT -5. The time now is 09:45 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
Open Source Consulting | Domain Registration