I have allocated 30G disk spcace at the new installation of FC8. however, I want to setup oracle database on it and create a several large size of datafiles. I need a large / file system because the disk has 4 main partition, ( 1 NTFS partition, 1 windows extention partition, 1 ext3 partition, 1 swap partition) and with about 40G free space disk that not belong any partition.
Neither I think I re-create the / partition nor format the / filesystem or waste 2 hour to install a lots packages of FC8. Also I don't have any business partition tool.
How can I do?
[@more@]Here is the disk partition table
# fdisk -l /dev/sda
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x8a941a0f
Device Boot Start End Id System
/dev/sda1 * 1 2432 7 HPFS/NTFS
/dev/sda2 2433 29203 f W95 Ext'd (LBA)
/dev/sda3 29204 33027 83 Linux
/dev/sda4 38128 38913 83 Linux
/dev/sda5 2433 10081 7 HPFS/NTFS
/dev/sda6 10082 16455 7 HPFS/NTFS
/dev/sda7 16456 22829 7 HPFS/NTFS
/dev/sda8 22830 29203 7 HPFS/NTFS
Free 33028 38127
Now, modify the partition table for /dev/sda3 first thing. Careful. the command is very dangours. maybe lead to miss all you data in harddisk.
#fdisk /dev/sda //enter the fdisk command module
(command) d //delete a partition
partition number (1-8):3 // reference the partition list. make sure input the number
command (m or help): n // create a new partition
l logic (5 or over)
p primary partition (1-4)
p //create a new primary partition
selected partition 3
First Cylinder( 29024 - 38913, default, 29204 ): //enter directly. use the default cylinder, encoutner error if input any number
Last cyliner or size or sizeM or sizeK (29204-38127, default 38127): // enter directly.
command (m or help): w //write the partition table.
I'm stopping here for 10 minutes about. Can the partition table is correct after I re-create the main partition? willing missing my data?
I saw these message from the fdisk tool.
*******************************
The partition table has been altered!
call ioctl() to re-read partition table,
WARNING, re-reading the partition table failed with error 16, device or resource busy.
The kernel still use the old table. the new table will be used at the next reboot.
Syncing disks
*******************************
ohh, my gold! write partition table failed? but there is not choice other else. just reboot my FC8 box
reboot successfully!
list the partition, I found the partition table is modified. the /dev/sda3 has more cylineders than befores'
Now, extend the / filesystem.
# resize2fs /dev/sda3 69999M
Magic & Magic. the command format the new blocks. Have not format the old / filesystem.
I check the files, no one missed.
At the end. 2.6 kernel can expand the file system while the file system is mounted. ext3 file system can be formated part by part. great! It's an excellent file system and the new kernel feature!
[end]
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/46332/viewspace-1006544/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/46332/viewspace-1006544/