LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 05-17-2005, 11:18 PM   #31
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52

On a side note, I'd like to mention Disk Wizard if you guys haven't heard of it. Way cool utility. You can download an ISO to make a bootable CD. It's menu driven and allows you to not only zero fill (low-level format) your hard drive but create partitions AND zero fill your MBR... Really slick program.

Your lead to believe it's only for Seagate hard drives, but I've used it with numerous hard drive manufactures with no problems... Check it out...

http://www.seagate.com/support/disc/...s/discwiz.html

It's under the first column "DiscWizard Starter Edition"... Select the "Bootable CD ISO Image" at the bottom...
 
Old 08-22-2011, 11:52 AM   #32
johnywhy
Member
 
Registered: Aug 2011
Posts: 34

Rep: Reputation: Disabled
Quote:
Originally Posted by PTrenholme View Post
On Linux "fdisk /mbr" is a command to run "fdisk" on the device mounted at "/mbr." Since he has no such device, the "Unable to open" error was, in fact, the correct response. Sorry.
no apologies necessary. if you're correct, that's the most cogent explanation i've heard about this issue! can anyone confirm this?

thanks!
 
0 members found this post helpful.
Old 08-22-2011, 02:00 PM   #33
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
necro-post...
"fdisk /mbr" is a DOS command. However, this is not exactly right either:
"command to run fdisk on the device mounted at /mbr"
On linux, it would be the command to run fdisk on the device /mbr -which of course doesn't exist. fdiak is not run on a mount point, but instead on a 'device' which should have a 'special device file' usually under /dev. There is a linux program called 'ms-sys', IIRC, which does the equivalent of the DOS command.
 
Old 08-22-2011, 03:49 PM   #34
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Well, fdisk is not restricted to just devices. For example, here's fdisk running on an image file:
Code:
$ fdisk -l /var/lib/libvirt/images/Ubuntu.img 

Disk /var/lib/libvirt/images/Ubuntu.img: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders, total 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00069412

                             Device Boot      Start         End      Blocks   Id  System
/var/lib/libvirt/images/Ubuntu.img1   *        2048    33554431    16776192   83  Linux
/var/lib/libvirt/images/Ubuntu.img2        33556478    41940991     4192257    5  Extended
/var/lib/libvirt/images/Ubuntu.img5        33556480    41940991     4192256   82  Linux swap / Solaris
Such usage is, in fact, quite useful when you've got an image of a damaged disk you're trying to fix. (Several partitioning and recovery tools are quite happy working on images.)

In 2005 I was relatively new to Linux, and, if I had a "do-over," I should have said "the file located at /mbr" not "the device mounted at /mbr."
 
Old 08-22-2011, 09:42 PM   #35
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,317
Blog Entries: 28

Rep: Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140
What keefaz said.

fdisk /mbr is a DOS command.
 
Old 08-23-2011, 12:16 AM   #36
psionl0
Member
 
Registered: Jan 2011
Distribution: slackware_64 14.1
Posts: 722
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
Checkout the bios setup. I once had a similar problem with an old laptop. It turned out that the MBR was write protected.
 
Old 08-23-2011, 12:39 AM   #37
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
no offense to the OP but you really aren't gonna get much help here at this rate

first)
even windows XP doesn't use fdisk /mbr, probably windows 2000 and NT as well, they use fixmbr and/or fixboot at the recovery console, only Win9x/ME and prior and dos uses fdisk /mbr

as mentioned fdisk /mbr is inapropriate syntax for a Linux system, a / is not used as a flag in linux command syntax, only - and -- for the most part since / is the directory separator.

second)
you really havn't said much other than 'it doesn't work' but havn't really told us any more detals such as error messages, or other symptoms/circumstances that make you think it's broken

third)
every time someone makes a suggestion you just for the most part keep re-iterating the same thing in different fassions, which was vague to begin with and even being told what you are trying is inappropriate for the situation.

nobody is gonna be able to provide a satisfactory answer until you can clarify your problem with more details.
 
Old 08-23-2011, 12:45 AM   #38
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Please be aware that this thread was started in 2005..
 
Old 08-23-2011, 08:15 AM   #39
SeRi@lDiE
Member
 
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 547
Blog Entries: 7

Rep: Reputation: 55
Looks like somebody hit the hot tub time machine!
LOL
 
Old 08-23-2011, 09:30 AM   #40
SavoTU
Member
 
Registered: Apr 2005
Distribution: Slackware64 Current
Posts: 199

Rep: Reputation: 40
Sorry just realised the age of the thread!

Last edited by SavoTU; 08-23-2011 at 09:31 AM.
 
  


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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

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