LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 02-11-2005, 04:41 PM   #1
dc2447
Member
 
Registered: Sep 2002
Posts: 43

Rep: Reputation: 15
Dumb hard disk question


I have added a second hard disk to a FC3 server - a 200Gb maxtor. It was used before for windows (I think) - anyways I fdisk'd - deleted all partitions - made an acive partition then did

mkfs.ext3 -L /data /dev/hdd1

but the disk is now showing up as 130Gb - whatere did I go wrong?

Quote:
linux2>fdisk -l

Disk /dev/hda: 20.4 GB, 20490559488 bytes
255 heads, 63 sectors/track, 2491 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 2491 19904535 8e Linux LVM

Disk /dev/hdd: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdd1 * 1 16708 134206978+ 7 HPFS/NTFS
linux2>df -h /data
Filesystem Size Used Avail Use% Mounted on
/dev/hdd1 126G 93M 120G 1% /data
When I try and delete the exiting partition and create a new one: - I get this

Quote:
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-16707, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-16707, default 16707):
Using default value 16707

Command (m for help): w
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.

Last edited by dc2447; 02-11-2005 at 04:43 PM.
 
Old 02-11-2005, 05:13 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,985

Rep: Reputation: 753Reputation: 753Reputation: 753Reputation: 753Reputation: 753Reputation: 753Reputation: 753
Change the partition ID from NTFS to linux i.e. 7 to 83. fdisk t menu option.

Reboot the PC. To reread the partition table.

Format the drive:
mke2fs -j /dev/hdd1

Look at the output of the df command. There should be 5% difference between total disk space and available. This is normal.
 
Old 02-13-2005, 01:06 PM   #3
dc2447
Member
 
Registered: Sep 2002
Posts: 43

Original Poster
Rep: Reputation: 15
Thanks - I changed the IP to linux and formatted the file system but it is still missing space


Quote:
linux2>fdisk /dev/hdd1

The number of cylinders for this disk is set to 16707.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/hdd1: 137.4 GB, 137427945984 bytes
255 heads, 63 sectors/track, 16707 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdd1p1 1 16707 134198946 83 Linux

Command (m for help):
Quote:
linux2>df -k /data
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hdd1 132101092 94272 125296472 1% /data
Wierd!
 
Old 02-16-2005, 09:55 AM   #4
dc2447
Member
 
Registered: Sep 2002
Posts: 43

Original Poster
Rep: Reputation: 15
No matter what I do the disk shows up as label NTFS and only 130GB

Anyone got any thoughts?
 
Old 02-16-2005, 10:04 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,985

Rep: Reputation: 753Reputation: 753Reputation: 753Reputation: 753Reputation: 753Reputation: 753Reputation: 753
How old is this PC? It could be a motherboard BIOS limitation.
 
Old 02-16-2005, 10:25 AM   #6
dc2447
Member
 
Registered: Sep 2002
Posts: 43

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by michaelk
How old is this PC? It could be a motherboard BIOS limitation.
Quite old MOBO - I think you could be right!

I'm not sure what the model is but it's an old MSI one from '99

130GB seems a strange figure though?
 
Old 02-17-2005, 02:06 AM   #7
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
No, its not a BIOS problem. Its kernel problem. Go to
http://www.linuxquestions.org/questi...ht=kernel+00+G

If that does not work, then you need to update fdisk and mkfs to a version that supports 48-bit LBA.
 
  


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
160G Hard Disk Question. rvijay Linux - Hardware 5 02-21-2005 03:25 PM
new hard disk and proftpd question coldy Linux - Software 1 11-11-2004 07:05 PM
Really dumb boot disk question kemplej Linux - Software 2 10-29-2004 04:33 PM
Hard Disk question - Making a big hard disk MrAnonym Linux - General 2 09-15-2003 06:08 PM
question about hard disk??? redship Linux - Hardware 2 04-13-2003 03:37 PM


All times are GMT -5. The time now is 01:26 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration