SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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...
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?
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.
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."
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.