fdisk paritioning help
Hi folks,
I'm running ubuntu drake and kinda messed up the partitioning of a second hard drive when recently installing ubuntu. Rather than reinstalling the system I'm trying to figure out how to do it using fdisk, any help would be great. The drive is 40G in size and is at /dev/hdb. I'm not even sure how to about installing fdisk (does it come preinstalled) and the command I would need to run, though I dont think it would be difficult, I'm looking for a simple 'ext3' single primary drive mounted to say..... /media/home Thanks for any help |
Well, fdisk should already be installed. Run "whereis fdisk" to make sure (it will probably be in /sbin or similar). I'm not exactly sure what you are trying to do though. So you have two hard drives: /dev/hda for Ubuntu that is already installed and /dev/hdb that you want to make a single ext3 partition? Is that right?
|
Yeah so when I install ubuntu I installed it on hda but had a second hard drive which I messed up and patitioned as an 'extended partition' and so cant get to it within ubuntu, so I want to repartition it as a primary drive mounted at /media/home
|
Okay, thats no problem. As long as your hard drive is connected correctly you should be able to run
Code:
fdisk /dev/hdb Code:
root@marXubuntu:~# fdisk /dev/hda Once the partition is in place you will need to use mke2fs to format the partiton. Run Code:
mke2fs -j /dev/hdb1 Code:
/dev/hdb1 /media/home ext3 defaults,errors=remount-ro 0 1 ~Justin |
this was very helpful, i tried to dd an image of mac os to a spare hard drive to try to get it to work, but it failed misrably (i had a .iso instead of a .img) i have a hard drive with mandriva and xp, a hard drive with just data, and that spare hard drive, i wanted to install slack on the spare but the slack installation wasn't seeing the hard drive, now that i formatted it into a linux partition, it worked, thanks
|
All times are GMT -5. The time now is 01:09 PM. |