Linux - NewbieThis 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
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.
When I try to partition my drive with fdisk /dev/hda I get the following error message
Quote:
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF
disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by
w(rite)
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
sure , might i assume you are installing a new drive? type m at the line
Command (m for help):
the o command adds a a partition table, from there, use n to create new partitions, then w to write changes... then quit, and run mkfs -t ext3, etx2, riserfs, or whatever format you want for the new partions
Sounds broken. i had some bug on a win OS client recently that zeroed the drive almost totally - at least the mbr, partition table and several megs of the drive
I did a binary check and it was nothing but freaking zeros... Had to start over...
Maybe I should try and somehow delete the partitions whilst on windows then I could just make new partitions via fdisk, which is basically what your saying?
Last edited by linuxzealot; 02-28-2005 at 09:07 PM.
Well, I deleted all partitions with partition magic, and tried to create new partitions, however I am getting the same error. I did try cfdisk, and it said it couldn't do anything because the drive is read-only. So I guess if I find out how to take off the read-only I will be good to go.
I was playing around and did a "fdisk /dev/hdc" which I thought was the cd-rom drive, but It is picking it up as my HD. weird
edit: figured it out, when they assembled the laptop they swapped the cd-rom and hd connectors around, and the reason I was getting that error on my first post is because a cd-rom drive has no valid partitions
Last edited by linuxzealot; 02-28-2005 at 10:57 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.