LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 01-02-2004, 01:45 PM   #1
5oh
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Rep: Reputation: 0
you will not be able to write the partition table


How can I partition my new hard drive on redhat 8?

When I enter the command fdisk /dev/hdb, I get the above message.
I can create the partitions, but when I try to write them to the drive it tells me unable to write to /dev/hdb.

The drive originally was formatted with NTFS, but I used MSDOS fdisk to delete the old partitions.
 
Old 01-02-2004, 04:12 PM   #2
mrhyde
Member
 
Registered: Jul 2003
Location: Europe
Posts: 198

Rep: Reputation: 30
What does "fdisk -l" show?
 
Old 01-02-2004, 08:42 PM   #3
Lost Penguin
Member
 
Registered: Feb 2003
Location: Orlando, FL
Distribution: 2.6.1-1.131smp on Fedora Core 1
Posts: 31

Rep: Reputation: 15
Quote:
How can I partition my new hard drive on redhat 8?

When I enter the command fdisk /dev/hdb, I get the above message.
I can create the partitions, but when I try to write them to the drive it tells me unable to write to /dev/hdb.

The drive originally was formatted with NTFS, but I used MSDOS fdisk to delete the old partitions.
I hate to sound stupid, but how did you get to this point?
Did you boot the installation CD?
Did you boot another drive? (hda maybe?)
The default install will wipe all partitions from the drive if you allow it.
BTW: how did you delete NTFS partitions under DOS, normally MSDOS will not modify NTFS partitions.
I would use an old IBM DOS boot disk (PCDOS 7) to zap NTFS under DOS.
Why is Linux complaining about not zapping away NTFS?

If you want to make a dual boot machine: (Win 2k and Linux?)
Install Windows (partition drive in half during Windows install)
Install Windows to first partition
Install Redhat next in the free space. (other half of drive)
Let Redhat install grub to master boot sector.
Enjoy
 
Old 01-05-2004, 10:04 AM   #4
5oh
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by mrhyde
What does "fdisk -l" show?
With respect to this drive,

Disk /dev/hdc: 255 heads, 63 sectors, 7297 cylinders
Units = cylinders of 16065 * 512 bytes
-----Device Boot--------Start-----End-------Blocks------Id-----System
------/dev/hdc1-----------1-------7296---58605088+--- 7---HPFS/NTFS

[QUOTE]Originally posted by Lost Penguin
I hate to sound stupid, but how did you get to this point?
Did you boot the installation CD?
Did you boot another drive? (hda maybe?)
The default install will wipe all partitions from the drive if you allow it.
BTW: how did you delete NTFS partitions under DOS, normally MSDOS will not modify NTFS partitions.
I would use an old IBM DOS boot disk (PCDOS 7) to zap NTFS under DOS.
Why is Linux complaining about not zapping away NTFS?


This machine has been running for a while. I'm trying to add an additional harddrive to my system. I really don't want to reinstall the OS to add another drive.

The system boots to hda.

I used a Windows XP disk to delete the partition on the drive.
 
Old 01-05-2004, 10:26 AM   #5
mrhyde
Member
 
Registered: Jul 2003
Location: Europe
Posts: 198

Rep: Reputation: 30
Linux can see the disk, but can't mount it. Try this out when Linux is loaded. "mount -t ntfs /dev/hdc1 /mnt/ntfs" I've called your mount point "/mnt/ntfs" you may use any directory name you wish. NTFS partitions are read only by the latest stable kernel, so be careful working on that partition. To make a linux partition, unmount the drive and use command "mke2fs -j /dev/hdc" but will erase all existing data. ( the -j opyion is for journaling).

Last edited by mrhyde; 01-05-2004 at 10:35 AM.
 
Old 01-05-2004, 11:43 AM   #6
5oh
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by mrhyde
To make a linux partition, unmount the drive and use command "mke2fs -j /dev/hdc" but will erase all existing data. ( the -j opyion is for journaling).
I tried this and it still shows it being an ntfs partition. when I do fdisk-l
 
Old 01-05-2004, 11:49 AM   #7
Lost Penguin
Member
 
Registered: Feb 2003
Location: Orlando, FL
Distribution: 2.6.1-1.131smp on Fedora Core 1
Posts: 31

Rep: Reputation: 15
Nuke it .....

Quote:
Originally posted by 5oh
I tried this and it still shows it being an ntfs partition. when I do fdisk-l
When all else fails:
Go to the drive makers website and download a drive tools bootdisk.
Wipe the puppy back to factory blank specs.
After this boot the Linux CD and install.
 
Old 01-05-2004, 11:50 AM   #8
5oh
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for your help Mr hyde.

I was leaving the filesystem type out of the mount command.
 
Old 01-05-2004, 12:25 PM   #9
mrhyde
Member
 
Registered: Jul 2003
Location: Europe
Posts: 198

Rep: Reputation: 30
fdisk should be able to remove that partition, as you know you need to create partitions first in order to run the "mke2fs" command( I should have made this point earlier). fdisk runs in text mode on RHL so it's a pain, but maybe you've missed something on the list. When you ran "fdisk -l" it's listing the disk info, could you have asked fdisk to create a partition on the disk but used the "q"(quit without saving) option rather than the "w" (write table to disk and exit) option. I've made this mistake myself in the past. Do you want me to take you through the steps from the begining to make sure we're clear on everything.

Last edited by mrhyde; 01-05-2004 at 12:28 PM.
 
Old 01-05-2004, 01:16 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,252

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
BTW you were trying fdisk /dev/hdb in the original post but from your second post looking at fdisk -l the drive device is actually /dev/hdc.

Have you tried?
fdisk /dev/hdc

And if you wiped out the existing partitions then why does it still show the NTFS partition?

Last edited by michaelk; 01-05-2004 at 01:17 PM.
 
  


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
"No partition table or unknown signature on partition table" 10.1 install madcow007 Slackware 4 02-09-2009 12:04 PM
Slack 10: S-ATA = "No partition table or unknown signature on partition table"? dissolved soul Slackware - Installation 11 08-05-2004 03:12 PM
Booting from an extended partition - need a partition table editor Ouch_Taser Linux - General 2 02-10-2004 07:22 PM
cant write partition table brandonloserkid Slackware - Installation 1 01-19-2004 02:04 AM
strange partition table - boot partition empty etanter Linux - General 0 12-23-2003 10:46 AM


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