Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
> Partition Problems, Is Drake 9.x broken for large drives?
post Mar 10 2004, 08:22 PM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 3
Joined: 10-March 04
Member No.: 2,556

I'm running Mandrake 9.2 on an AMD K6-450 MoBo with a 1998 Award BIOS, have an Adaptec SCSI running four IBM disks, two 4GB, one 5GB, one 9GB. The two 4GB and the 9GB howl like banshees, so I decided to replace them with a WD 160GB IDE drive (WD1600JB-00EVA0). The system boots off of the 5GB SCSI, so I decided to make the IDE drive one huge volume (160GB, or whatever I coould get to format...) and mount it as /data0.

Hardware installation is just fine. BIOS recognizes it just fine. DiskDrake recognizes it just fine (in command line or in XTerm) (I'm running the KDE XWin desktop).

I format it for 152,625 MB, which is the largest DiskDrake will let me go, FSType is ext3 (type 83), mount point is /data0, I *do not* format it, click on the OK button, have it write to the fstab file, then exit DiskDrake and KDE desktop. Reboot. do a df. df reports that /dev/hda1 is only 7.1M big! I go back into DiskDrake to see what's going on, it says that /data0 in /dev/hda1 is formatted, mounted, and everything is peachy-keen. HUH?

Any ideas?

Steve Egan
Go to the top of the page
+Quote Post
Start new topic
post Mar 10 2004, 09:00 PM
Post #2

Its GNU/

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151

first thing ... no diskdrake...(just say NO to GUI laugh.gif )

open a terminal window and if you are not root, issue the command:

su - root

Now, unmount the drive:

umount /dev/hda1

Now let's load fdisk to partition the drive....

fdisk /dev/hda

You should be at a prompt that looks like this:

Command (m for help):

All commands given should be followed by the Enter Key
type m <--followed by Enter. I won't include the enter key any more)

This will give you a list of all the commands ... it should look similar to this:
Command action
  a   toggle a bootable flag
  b   edit bsd disklabel
  c   toggle the dos compatibility flag
  d   delete a partition
  l   list known partition types
  m   print this menu
  n   add a new partition
  o   create a new empty DOS partition table
  p   print the partition table
  q   quit without saving changes
  s   create a new empty Sun disklabel
  t   change a partition's system id
  u   change display/entry units
  v   verify the partition table
  w   write table to disk and exit
  x   extra functionality (experts only)

First thing we want to do is print the partition table ... so use the command:


next, we want to delete all the partitions on this drive ... it should only be one, using the command:


it will ask for a partition number ... use the number:


Now let's create a partition that uses all the disk space....use the command:


It will ask for the First Cylinder ... use the number 1
It will ask for the Last Cylinder ... the default will be the last cylinder ... take the default by pressing Enter

now let's print the partition table again, use p

if it looks right (hda1, large partition), let's save the table and exit with this command:


Now we are ready to create a file system on the disk:

use the command:

mke2fs -j /dev/hda1

Now let's make the file system not do automatic scans based on number of times mounted or after a period of time with this command:

tune2fs -c 0 -i 0 /dev/hda1

now, check the file /etc/fstab ... make sure the entry for /dev/hda1 has a filesystem type of ext3 ...

issue the command:

mount /dev/hda1

and do a:

df -h

Johnny Hughes
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
+Quote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 21st October 2017 - 05:26 AM