LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-02-2004, 02:35 PM   #1
brynjarh
Member
 
Registered: May 2004
Location: Iceland
Distribution: Ubuntu Dapper Drake
Posts: 172

Rep: Reputation: 30
How do I format my other hd?


I have installed cfdisk and now I want to delete the partition on hdb which is ntfs and create a new linux partition (I will be using the hd for storage).

When I got o /sbin/ and write ./cfdisk I just get

FATAL ERROR: Bad primary partition
Press any key to exit fdisk

Help?
 
Old 06-02-2004, 02:44 PM   #2
brynjarh
Member
 
Registered: May 2004
Location: Iceland
Distribution: Ubuntu Dapper Drake
Posts: 172

Original Poster
Rep: Reputation: 30
Okay I have gotten cfdisk to run by writin ./cfdisk /dev/hdb
Now I want to create a new partition but it says free space is 128512.16 , hdb is supos to be about 78gb.

???
 
Old 06-02-2004, 03:00 PM   #3
Alex Cavnar
Member
 
Registered: Jun 2003
Location: Nashville, TN
Distribution: FreeBSD, Slack, and DebianPPC
Posts: 60

Rep: Reputation: 15
try running fdisk, not cfdisk. cfdisk tends to choke on invalid partition tables. fdisk, on the other hand, will allow you to create a new partition, no questions asked.
 
Old 06-02-2004, 03:09 PM   #4
brynjarh
Member
 
Registered: May 2004
Location: Iceland
Distribution: Ubuntu Dapper Drake
Posts: 172

Original Poster
Rep: Reputation: 30
These programs don't do shit I tell them to do..
If I delete a partition and create a new one and write it I get:

The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.

I reboot, mount the drive and I still have all my old files on an NTFS partition, they also have incorrect size of my hd, it's not 134.7 GB , the fdisk program for windows is way better, you just delete the partition, create a new one and your done..

Apears to be very hard to do this simple operation in Linux.

I just want a clean, formated, linux partition on my drive..

Last edited by brynjarh; 06-02-2004 at 03:12 PM.
 
Old 06-02-2004, 03:29 PM   #5
brynjarh
Member
 
Registered: May 2004
Location: Iceland
Distribution: Ubuntu Dapper Drake
Posts: 172

Original Poster
Rep: Reputation: 30
I think I got rid of the old partition now but when I try to mount the drive I get 'mount: you must specify the filesystem type'

The filesystem type is set to 83 (Linux) , both fdisk and cfdisk say so.. so what could be the problem?


log thingy:
Jun 2 19:34:54 localhost kernel: FAT: bogus number of reserved sectors
Jun 2 19:34:54 localhost kernel: VFS: Can't find a valid FAT filesystem on dev hdb1.

Last edited by brynjarh; 06-02-2004 at 03:31 PM.
 
Old 06-02-2004, 07:42 PM   #6
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 24, 25, RHL 5.2
Posts: 560

Rep: Reputation: 56
Have you run mkfs to format the file system on the new partition (see man mkfs)? fdisk only sets up the partitions, it doesn't format them. If you used mkfs, would you show us what you used for a mount command?

Bill
 
  


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
format a hard drive (/dev/hda1) in Reiser fs format Linh Linux - General 7 06-17-2009 07:30 AM
Converting wma format to mp3 format. fakie_flip Linux - General 6 10-02-2005 08:49 PM
replace empty function from the old format to the new format powah Programming 4 07-12-2005 09:07 PM
use vi to convert linux format to windows format intolinux Linux - Software 2 12-10-2003 11:20 PM
Format Problems Saving Star Office Docs in Word Format kkempter Linux - Software 4 08-27-2003 05:23 PM

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

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