Portal Home > Knowledgebase > Articles Database > Problems with creating a new partition


Problems with creating a new partition




Posted by jaseeey, 03-06-2008, 10:43 PM
Hey guys, The server I got from LayeredTech has two hard drives, obviously they set up the first hard drive with Linux etc. The second hard drive is just there, not showing any partitions in 'fdisk' when I checked, so I assume they just leave it blank in every new server for the owner to deal with however they want. I've been looking up guides to create a new partition for the full size of the hard drive and then mount it. However, it hasn't been very successful. Everytime I created the partition in fdisk, I have to set a size, and then when I mount it, it only says that the drive is ~98MB big. Is there a way to partition the drive to its full capacity? And then mount it somewhere on the system? Or anywhere I can go to to find out easily? Any help is appreciated. Cheers.

Posted by tanfwc, 03-07-2008, 01:37 AM
show me the output of your server.

Posted by TheITAdvisory, 03-07-2008, 02:11 AM
Ok It's real late, and I am very dreary, but let me see if I can help you still lol. Do a fdisk -l Find that hard drive, then do; fdisk /dev/drivehere at this point you should be presented with the fdisk interface. Though you don't have to, type p and press enter to view the current partition table. Good to know. Press d and hit the enter key to delete the current info on the drive (make sure there is nothing on this drive you want to save!) Now that the old partition info on this secondary drive is no more, as in good bye, adios, bye-bye, we cant to create a new one, so type the letter n and hit enter. Follow the defaults if indeed you want to make a whole partition out of the whole entire drive. After you do this, and it completes, type p and hit enter again to see the new partition table you just created. If you are satisfied with the results, type w and then it should exit out. Now you can do fdisk -l again, and it should now show up and reflect what you did. To mount, it gets tricky, depending on what file system you used for this secondary drive. Do you have mkfsutils installed? To Mount: mkdir /mnt/newdevice mount -t auto /dev/harddrive /mnt/newdevice cat /etc/mtab cat /etc/mtab should show you that it has correctly mounted. If you have any questions, feel free to ask here, or shoot me a message, I'd be more then happy to help! Best Regards,

Posted by hermetek, 03-07-2008, 02:15 AM
If you follow the above guide, your best (simplest) bet is to format the partition ext3.. which was not explained above. Then you can go ahead and mount it as stated... or add it to fstab. mkfs.ext3 /dev/partition

Posted by TheITAdvisory, 03-07-2008, 02:17 AM
Yeah I didn't mention it because I was asking if he has mkfsutils installed already, as some flavors do not.

Posted by hermetek, 03-07-2008, 02:19 AM
True, but if he has a dedicated box at LT he's most likely using CentOS or a RH derivative, and all of them do even with their minimal installations... Edit: PS, wasn't trying to say you were wrong or offend you... I was just filling in a small gap in your instructions (and yes, I did notice your question about whether mkfsutils was installed..) Last edited by hermetek; 03-07-2008 at 02:23 AM.

Posted by jaseeey, 03-07-2008, 10:36 AM
Edited: Just realised I was making a small name error just after I made this post. I used the mkfs.ext3 command on top of everything else and everything seems to be okay from there. Thank you for your helpful responses!

Posted by TheITAdvisory, 03-07-2008, 12:02 PM
Glad I could help in some way!



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Server uptime (Views: 738)


Language: