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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-11-2005, 05:41 PM
|
#1
|
Member
Registered: Sep 2002
Posts: 43
Rep:
|
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 05:43 PM.
|
|
|
02-11-2005, 06:13 PM
|
#2
|
Moderator
Registered: Aug 2002
Posts: 26,512
|
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.
|
|
|
02-13-2005, 02:06 PM
|
#3
|
Member
Registered: Sep 2002
Posts: 43
Original Poster
Rep:
|
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!
|
|
|
02-16-2005, 10:55 AM
|
#4
|
Member
Registered: Sep 2002
Posts: 43
Original Poster
Rep:
|
No matter what I do the disk shows up as label NTFS and only 130GB
Anyone got any thoughts?
|
|
|
02-16-2005, 11:04 AM
|
#5
|
Moderator
Registered: Aug 2002
Posts: 26,512
|
How old is this PC? It could be a motherboard BIOS limitation.
|
|
|
02-16-2005, 11:25 AM
|
#6
|
Member
Registered: Sep 2002
Posts: 43
Original Poster
Rep:
|
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?
|
|
|
02-17-2005, 03:06 AM
|
#7
|
LQ Guru
Registered: Jan 2002
Posts: 6,042
Rep: 
|
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.
|
|
|
All times are GMT -5. The time now is 07:57 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|