LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 07: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, 08: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,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
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, 08: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 08:26 PM.
 
Old 02-28-2005, 08: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, 09: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 09:07 PM.
 
Old 02-28-2005, 09: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, 10: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, 10: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, 10: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, 10: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 10:57 PM.
 
Old 02-28-2005, 11:02 PM   #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,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
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 02-28-2005, 11:20 PM   #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 02-28-2005, 11:56 PM   #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



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 09:26 PM
Partition error - Different FDISK and YaST output Jongi SUSE / openSUSE 8 11-26-2005 06:42 PM
busybox fdisk error?Help! whepin Linux - Laptop and Netbook 1 09-05-2005 02:51 PM
busybox fdisk error?Help! whepin Linux - General 0 09-05-2005 09:22 AM
What is this error im getting when running fdisk? Dachy Slackware 4 06-07-2005 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:03 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