Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-10-2008, 07:51 AM   #1
LQ Newbie
Registered: Nov 2008
Posts: 1

Rep: Reputation: 0
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:
(parted) print

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?
Old 11-10-2008, 10:38 AM   #2
Senior Member
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
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.
Old 11-10-2008, 08:18 PM   #3
Registered: Sep 2006
Distribution: Ubuntu 8.04 Hardy Heron LST
Posts: 346

Rep: Reputation: 33
Old 11-10-2008, 08:53 PM   #4
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,869

Rep: Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
After formatting partition NTFS can't write to ext2 emer_son Ubuntu 3 06-02-2008 11:22 AM
Installing Centos without formatting current Vista NTFS partition jimble Linux - Distributions 1 02-29-2008 02:38 PM
Booting XP resets boot flag to its partition gavinbeatty Linux - General 6 12-26-2006 07:04 PM
Formatting an NTFS partition under FC4? KiLLaWaBBiT Linux - Software 4 07-01-2005 06:45 PM
Problems formatting NTFS partition ElPuello Linux - Hardware 3 11-01-2004 10:45 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:46 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration