LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-06-2010, 01:16 AM   #1
x111
Member
 
Registered: Jul 2010
Distribution: Slackware
Posts: 49

Rep: Reputation: 7
Safe to format Extended partition?


My new Debian box is running well and stable enough for me to decide to swipe out WindowsXP altogether. I have a 40GB HDD, which has the following partition scheme (after Windows was removed and hda1 was converted to Linux native type)

Code:
   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        1762    13313159+  83  Linux
/dev/hda2            1762        5168    25756889    f  W95 Ext'd (LBA)
/dev/hda5            1762        3985    16813408+   b  W95 FAT32
/dev/hda6   *        3986        5018     7809448+  83  Linux
/dev/hda7            5019        5168     1133968+  82  Linux swap / Solaris
As you can see, my Linux is in the 2nd logical partition hda6 which contained in the extended hda2. The 1st logical partion hda5 is the one I want to erase the data and convert to Linux filesystem in order to have more space. (Yes I can mount it ntfs-3g and use it without any problem, but I just want to say farewell to as many things Microsoft as possible) . What I'm worried about is whether it's safe to do that, without damaging the extented partition which contains the root file system for Debian.

Thanks for all your help and suggestion.
 
Old 08-06-2010, 02:19 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Safe to format Extended partition?
No - you *really* don't want to do that.
Re-formatting sda5 is safe. It would be best (for your sanity later on) to also change to partition type at the same time.
 
1 members found this post helpful.
Old 08-06-2010, 02:30 AM   #3
tommyttt
Member
 
Registered: Oct 2009
Location: Federal Way, WA
Distribution: openSUSE 11.4 x86_64, openSuSE 12.1, Fedora 15
Posts: 207

Rep: Reputation: 34
Quote:
Originally Posted by x111 View Post
My new Debian box is running well and stable enough for me to decide to swipe out WindowsXP altogether. I have a 40GB HDD, which has the following partition scheme (after Windows was removed and hda1 was converted to Linux native type)

Code:
   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        1762    13313159+  83  Linux
/dev/hda2            1762        5168    25756889    f  W95 Ext'd (LBA)
/dev/hda5            1762        3985    16813408+   b  W95 FAT32
/dev/hda6   *        3986        5018     7809448+  83  Linux
/dev/hda7            5019        5168     1133968+  82  Linux swap / Solaris
As you can see, my Linux is in the 2nd logical partition hda6 which contained in the extended hda2. The 1st logical partion hda5 is the one I want to erase the data and convert to Linux filesystem in order to have more space. (Yes I can mount it ntfs-3g and use it without any problem, but I just want to say farewell to as many things Microsoft as possible) . What I'm worried about is whether it's safe to do that, without damaging the extented partition which contains the root file system for Debian.

Thanks for all your help and suggestion.
It is safe if done properly. First BACKUP everything on the linux partition (hda6). Then use a program such as PartedMagic (free d/l from http://www.partedmagic.com. Burn it to CD and boot from it. Open the Partition Manager (Gparted), delete hda5, and resize hda6 which becomes the new hda5. Save the changes and while still in PartedMagic, edit /etc/fstab. That is an assumption since you didn't specify which linux distro you're using (looking back I see you did say Debian. Change the boot device names from hda6 to hda5 if that's the format Debian uses.

Tom
 
1 members found this post helpful.
Old 08-06-2010, 05:13 AM   #4
x111
Member
 
Registered: Jul 2010
Distribution: Slackware
Posts: 49

Original Poster
Rep: Reputation: 7
Thank you for your replies tommyttt, syg00. I'll go for that this weekend. As my CD drive no longer works and I have no flash drive at hand to boot into GParted, I think I'll just format it ext3 and leave it there until I can find a way to merge it with hda6.

(I was confused Extended with 1st logical partition - thank you syg00)
 
  


Reply



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
extended sata partition shrunk at 15 partition limit, how to re-enlarge Siljrath Linux - General 3 06-02-2010 10:33 PM
Increasing the size of an extended partition to allow the creation of a new partition chakkerz Linux - Server 4 05-18-2010 10:18 PM
Partitioning; safe to add a primary when already having primary and extended/logical? Wim Sturkenboom Linux - General 2 08-16-2009 12:10 PM
[SOLVED] Safety: Primary Partition and Extended (Logical) Partition MBA Whore Linux - Security 11 01-03-2007 02:05 PM
Booting from an extended partition - need a partition table editor Ouch_Taser Linux - General 2 02-10-2004 06:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:02 PM.

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