LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-28-2005, 08:58 PM   #1
linuxzealot
Member
 
Registered: Feb 2005
Distribution: Gentoo
Posts: 57

Rep: Reputation: 15
fdisk error


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)
Anyone know how I can fix this?
 
Old 02-28-2005, 09:18 PM   #2
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,200

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
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
 
Old 02-28-2005, 09:25 PM   #3
linuxzealot
Member
 
Registered: Feb 2005
Distribution: Gentoo
Posts: 57

Original Poster
Rep: Reputation: 15
No, Im not installing a new drive, and it currently has partitions set up, ive used fdisk before, and Ive never ran into this.

Last edited by linuxzealot; 02-28-2005 at 09:26 PM.
 
Old 02-28-2005, 09:39 PM   #4
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
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...
 
Old 02-28-2005, 10:04 PM   #5
linuxzealot
Member
 
Registered: Feb 2005
Distribution: Gentoo
Posts: 57

Original Poster
Rep: Reputation: 15
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 10:07 PM.
 
Old 02-28-2005, 10:47 PM   #6
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
I guess it depends on what is on the drive and whether you want to try to keep it...
 
Old 02-28-2005, 11:05 PM   #7
linuxzealot
Member
 
Registered: Feb 2005
Distribution: Gentoo
Posts: 57

Original Poster
Rep: Reputation: 15
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.
 
Old 02-28-2005, 11:11 PM   #8
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
That seems ofdd... Can you create partitions with partition magic?
 
Old 02-28-2005, 11:16 PM   #9
linuxzealot
Member
 
Registered: Feb 2005
Distribution: Gentoo
Posts: 57

Original Poster
Rep: Reputation: 15
Well I probably could have, partition magic deleted them just fine . I have nothing on there now
 
Old 02-28-2005, 11:45 PM   #10
linuxzealot
Member
 
Registered: Feb 2005
Distribution: Gentoo
Posts: 57

Original Poster
Rep: Reputation: 15
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 11:57 PM.
 
Old 03-01-2005, 12:02 AM   #11
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,200

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
p.s. running fdisk -l will display all partitions on all your drives
also, cat /etc/fstab would have also perhaps saved you alot of trouble
 
Old 03-01-2005, 12:20 AM   #12
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
Sorry. I should have thought of that...
 
Old 03-01-2005, 12:56 AM   #13
linuxzealot
Member
 
Registered: Feb 2005
Distribution: Gentoo
Posts: 57

Original Poster
Rep: Reputation: 15
Quote:
p.s. running fdisk -l will display all partitions on all your drives
also, cat /etc/fstab would have also perhaps saved you alot of trouble
Well, always good for future refrencences I guess
 
  


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
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 10:26 PM
Partition error - Different FDISK and YaST output Jongi SUSE / openSUSE 8 11-26-2005 07:42 PM
busybox fdisk error?Help! whepin Linux - Laptop and Netbook 1 09-05-2005 03:51 PM
busybox fdisk error?Help! whepin Linux - General 0 09-05-2005 10:22 AM
What is this error im getting when running fdisk? Dachy Slackware 4 06-07-2005 02:02 PM


All times are GMT -5. The time now is 08:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration