Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fdisk & cfdisk unable to write partitions [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
uiliewuilie
n00b
n00b


Joined: 23 Jan 2005
Posts: 19

PostPosted: Wed Jan 26, 2005 8:45 pm    Post subject: fdisk & cfdisk unable to write partitions [Solved] Reply with quote

I'm making a dual boot system with Win XP on the first drive (already installed), and gentoo linux on the second.
The second harddrive, where I'm going to install linux is a WD 80 GB UDMA100 7200RPM 2MB Cache, Parallel ATA (IDE).
I'm trying to get the following partitions on my 2nd harddrive:

Partition Filesystem Size Description
/dev/hdb1 ext2 32MB Boot Partition
/dev/hdb2 (swap) 512MB Swap partition
/dev/hdb3 ext3 10GB Root partition
/dev/hdb4 fat32 Rest of disk Data partiton for Linux &
Win XP

When I use fdisk (from gentoo live cd), i get the following "error" message, at startup:

You will not be able to write the partition table.
Note: sector size is 2048 (not 512)
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel. Building a new DOS disklabel.
Changes will remain in memmory only, until you decide write them.
After that, of cource, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4. Will be corrected by W(rite)

When I use cfdisk, I get the message: "opened disk read-only -you have no permission to write"

When I try to make partitions with SystemRescueCd's qparted, I succeed in making partitions, according to qparted. But when I start fdisk or cfdisk, there are no partitions. But the fat 32 partition made with qparted appears in Win XP.

I'm still a beginner but I hope someone can help me out.

Thanks


Last edited by uiliewuilie on Fri Jan 28, 2005 3:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44898
Location: 56N 3W

PostPosted: Wed Jan 26, 2005 9:07 pm    Post subject: Reply with quote

uiliewuilie,

/dev/hdb is your primary slave. It looks like fdisk has foound a CD-ROM there, not a hard drive, hence the 2048 byte sector sice and other complaints. It would be read only too.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Apewall
Apprentice
Apprentice


Joined: 01 Dec 2004
Posts: 248
Location: USA

PostPosted: Wed Jan 26, 2005 9:09 pm    Post subject: Reply with quote

Yes, what is your harddrive setup. Are you trying to partition a second IDE drive?
_________________
Posting for dummies
Back to top
View user's profile Send private message
lookinin
Guru
Guru


Joined: 21 Jan 2005
Posts: 486

PostPosted: Wed Jan 26, 2005 9:11 pm    Post subject: Reply with quote

It sounds like your drive may be jumpered incorrectly or write-protected. Have you checked the obvious? Make sure it's master or slave as you intended, make sure it actually is hdb and not hdc or something, make sure it's set up in bios correctly (autodetect? does it report the correct drive size?). Is it a brand new drive? Or did you get it used? Did you get a Maxtor utility disk with it that you might use to turn on/off write protection?
Back to top
View user's profile Send private message
uiliewuilie
n00b
n00b


Joined: 23 Jan 2005
Posts: 19

PostPosted: Thu Jan 27, 2005 8:57 pm    Post subject: Solved! Reply with quote

The problem was that I tried to partition hdb. But that is a cd-rom drive.
The actual 2nd harddrive is mounted at hdc.

Thanks for your help :D
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2915
Location: Singapore

PostPosted: Thu Jan 27, 2005 11:35 pm    Post subject: Re: Solved! Reply with quote

uiliewuilie wrote:
Thanks for your help :D

Please edit the title of your first post in this topic, and insert [SOLVED] into the title.
_________________
Murphy's Law of Gentoo installation: If a compile can fail, it will.

MacGillicuddy's Corollary: At the most inopportune time.

Please search and read the FAQs before posting.
Back to top
View user's profile Send private message
zentuin
n00b
n00b


Joined: 19 Jan 2005
Posts: 9

PostPosted: Mon Feb 28, 2005 11:02 am    Post subject: Re: fdisk & cfdisk unable to write partitions [Solved] ( Reply with quote

[quote="uiliewuilie"]I'm making a dual boot system with Win XP on the first drive (already installed), and gentoo linux on the second.
The second harddrive, where I'm going to install linux is a WD 80 GB UDMA100 7200RPM 2MB Cache, Parallel ATA (IDE).
I'm trying to get the following partitions on my 2nd harddrive:

Partition Filesystem Size Description
/dev/hdb1 ext2 32MB Boot Partition
/dev/hdb2 (swap) 512MB Swap partition
/dev/hdb3 ext3 10GB Root partition
/dev/hdb4 fat32 Rest of disk Data partiton for Linux &
Win XP

When I use fdisk (from gentoo live cd), i get the following "error" message, at startup:

You will not be able to write the partition table.
Note: sector size is 2048 (not 512)
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel. Building a new DOS disklabel.
Changes will remain in memmory only, until you decide write them.
After that, of cource, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4. Will be corrected by W(rite)

When I use cfdisk, I get the message: "opened disk read-only -you have no permission to write"

When I try to make partitions with SystemRescueCd's qparted, I succeed in making partitions, according to qparted. But when I start fdisk or cfdisk, there are no partitions. But the fat 32 partition made with qparted appears in Win XP.

I'm still a beginner but I hope someone can help me out.

Thanks[/quote]

I have the same problem, but with a different setup.

I have one harddisk, with winXP and SuSE linux installed.

I want to replace SuSE with Gentoo, but I want to keep the partitions as they are.

After booting from the live cd, with the standard gentoo kernel, I get the same error message as TS:

You will not be able to write the partition table.
Note: sector size is 2048 (not 512)
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel. Building a new DOS disklabel.
Changes will remain in memmory only, until you decide write them.
After that, of cource, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4. Will be corrected by W(rite)

What happens here? I cannot start fdisk on /dev/hdb or /hdc either...
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2915
Location: Singapore

PostPosted: Mon Feb 28, 2005 11:14 am    Post subject: Re: fdisk & cfdisk unable to write partitions [Solved] ( Reply with quote

zentuin wrote:
What happens here? I cannot start fdisk on /dev/hdb or /hdc either...

PLEASE TURN ON BBCODE IN YOUR POSTS! It is very hard to tell your own post from the text you have quoted.

Are you sure that your hard disk is on /dev/hda? Have you looked through the possible solutions in the previous posts yet?

Use fdisk -l to view a list of all hard disks detected, as well as their partitions.
_________________
Murphy's Law of Gentoo installation: If a compile can fail, it will.

MacGillicuddy's Corollary: At the most inopportune time.

Please search and read the FAQs before posting.
Back to top
View user's profile Send private message
zentuin
n00b
n00b


Joined: 19 Jan 2005
Posts: 9

PostPosted: Mon Feb 28, 2005 11:30 am    Post subject: Reply with quote

sorry for the codes...

I just found out that (stuuuupid, sorry) I have to install on [i]/dev/sdb1[/i] instead of [i]/hda1[/i] :-)

Of course, since I have a SATA HD... Thanks for all the info.
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Wed Nov 02, 2005 8:12 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Duplicate Threads.
See here
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum