PDA

View Full Version : Fedora 9 - adding a new partition issue



inspleak
2nd August 2008, 05:48 PM
Hey all,

So here is the situation, I had a fedora3 box for years now, and everything was great. However it was a bit behind the times, and I wanted to upgrade. So I imaged the fedora3 disk (80GB) to a (120GB) disk. Ran the fedora 9 upgrade, updated the various config files and life was good.

The issue now of course is that I have 40GB of disk not being used. So I figured I could just make a new partition and add that to the disk pool, and things would be good.

So I did some looking around and I found another post here that touched on it a bit, and the information that was needed to get help is listed below.

The thing that concerns me is that I don't know what this means when I run fdisk:


[root@monkey ~]# fdisk /dev/sda2
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x96f2ba41.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.


The number of cylinders for this disk is set to 9713.
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)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help):


Sooo I'm a bit stuck. While, I could go back to the FC3 disk, and re-do it all, I would really rather not, or I guess, I could go buy another disk, image this over to it, and be able to go back if really needed, but I would much rather just fix it here :)

Just so we are all on the same page, I haven't done anything yet, I would just like to know what my next steps might be. :)

So if anyone knows what might be going on, and what might happen if I just press
(w)rite in fdisk, I would really appreciate any advise.

Thanks much for the help!!

----------------------------------------------------------------------------------
[root@monkey ~]# df --si
Filesystem Size Used Avail Use% Mounted on
/dev/dm-0 78G 41G 34G 55% /
/dev/sda1 104M 13M 86M 14% /boot
none 231M 0 231M 0% /dev/shm
/var/www/html/dlme 78G 41G 34G 55% /home/inspleak/dlme
/var/www/html/quantum
78G 41G 34G 55% /home/quantum
/var/www/html/gamedesign/html
78G 41G 34G 55% /home/kim/gdg
/var/www/html/taylor 78G 41G 34G 55% /home/taylor/web
/var/www/html/itgm 78G 41G 34G 55% /home/kim/itgm
/var/www/html/gamedesign/html
78G 41G 34G 55% /home/cliff/web
/var/www/html/gamedesign/html/gam130
78G 41G 34G 55% /home/kim/gam130

---------------------------------------------------------------------------

[root@monkey ~]# fdisk -l

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 9726 78019672+ 8e Linux LVM

Disk /dev/dm-0: 78.8 GB, 78886469632 bytes
255 heads, 63 sectors/track, 9590 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 939 MB, 939524096 bytes
255 heads, 63 sectors/track, 114 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-1 doesn't contain a valid partition table
---------------------------------------------------------------------------
[root@monkey ~]# lvs
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
LogVol00 VolGroup00 -wi-ao 73.47G
LogVol01 VolGroup00 -wi-ao 896.00M
[root@monkey ~]#

--------------------------------------------------------------------------

tho.mei
2nd August 2008, 07:38 PM
Hallo inspleak

you shouldn't run fdisk not on a partition! /dev/sda2 is the second partition of the /dev/sda disk. It would fdisk can add a partition table to a partition. But it is useless and it would destroy the /dev/sda2 partition. So tray fdisk without the "2" at the end.

Press "m" in fdisk to see all commands.

You sound like a not unexperienced user. So the following link will help you:
http://fedoranews.org/mediawiki/index.php/Expanding_Linux_Partitions_with_LVM

If the are some questions left, ask again.

inspleak
3rd August 2008, 01:46 AM
Ahh, that link helped a ton... everything is working now. Thanks very much for the help!

The only thing I had to do differently was use "resize2fs" as opposed to "ext2online".

Thanks again so much for your time!