formatting an ntfs partition with a boot flag
I have an ubuntu 8.04 distribution, and I have a windows partion (ntfs) that i don't use anymore.
The partitions of my hard disk are as follows:
Disk /dev/sda: 80.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 34.3GB 34.3GB primary ntfs boot
2 34.3GB 80.0GB 45.7GB extended lba
5 34.3GB 36.4GB 2147MB logical linux-swap
6 36.4GB 80.0GB 43.6GB logical ext3
I have saved the mbr and the table partition:
sudo dd if=/dev/sda of=~/Desktop/mbr446.img bs=446 count=1
sudo sfdisk -d /dev/sda > ~/Desktop/sda.out
And I want to format the first partition (/dev/sda1). Then I want to use the formatted partition to enlarge /home and /usr.
Could someone help me to do this?
You can build a filesystem on that partition with the mkfs command. Man mkfs for more information. You also could directly invoke the particular format utility with, for instance, mkfs.ext3 /dev/sda1.
If you wish to use this partition to extend /usr and /home, then pick the portion of /usr that you want to move, and move it to sda1, then symlink to it from the old location. Similarly with /home.
gparted is the answer - personally I prefer the liveCD. Just delete the partition, and use the space as you wish - the tutorial referred to by Duck2006 should give you the idea. The fact that is NTFS, and bootable are both irrelevant to this exercise.
Resize the extended first, then deal with the logical partitions after that.
do not (repeat do not) use those MBR and partition table backups after doing this.
|All times are GMT -5. The time now is 11:44 AM.|