LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-24-2008, 03:33 PM   #1
Nishtya
Member
 
Registered: Feb 2004
Distribution: Mint Cinnamon, Debian sid KDE, PCLOS Cinnamon, Manjaro XFCE
Posts: 280

Rep: Reputation: 32
repartitioning assistance - making one partitioning from two with gparted


I am repartitioning for the first time my linux disk (secondary harddisk in my system). I always keep two linux installs on this disk, one is my main everyday linux and the other whatever I am experimenting with. At some point, I let one of the distros split 20 gig into two, a reiser for root and ext3 for /home. That distro I will now like to replace and I called up gparted to delete the two partitions it took and make one ext3 partition for a new install of something to play with. I was asked whether to make this new partition a primary or extended and got stumped. Called off operations and did fdisk -l to see what I have and now am more confused than ever as fdisk is listing both of those partitions as type 83 (but one of them is reiser). Output of fdisk -l for my secondary disk:

Disk /dev/sdb: 40.0 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00029c6f

Device Boot Start End Blocks Id System
/dev/sdb1 1 76 610438+ 82 Linux swap / Solaris
/dev/sdb2 77 2626 20482875 83 Linux
/dev/sdb3 * 2627 3786 9317700 83 Linux
/dev/sdb4 3787 4870 8707230 83 Linux

sdb3 and sdb4 are the two I want to combine into one ext3 partition. Some guidance is appreciated. I know enough not to mess with main install on sdb2 but I still feel queasy about making the new one a "primary".
 
Old 02-24-2008, 03:45 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by Nishtya View Post
I am repartitioning for the first time my linux disk (secondary harddisk in my system). I always keep two linux installs on this disk, one is my main everyday linux and the other whatever I am experimenting with. At some point, I let one of the distros split 20 gig into two, a reiser for root and ext3 for /home. That distro I will now like to replace and I called up gparted to delete the two partitions it took and make one ext3 partition for a new install of something to play with. I was asked whether to make this new partition a primary or extended and got stumped. Called off operations and did fdisk -l to see what I have and now am more confused than ever as fdisk is listing both of those partitions as type 83 (but one of them is reiser). Output of fdisk -l for my secondary disk:

Disk /dev/sdb: 40.0 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00029c6f

Device Boot Start End Blocks Id System
/dev/sdb1 1 76 610438+ 82 Linux swap / Solaris
/dev/sdb2 77 2626 20482875 83 Linux
/dev/sdb3 * 2627 3786 9317700 83 Linux
/dev/sdb4 3787 4870 8707230 83 Linux

sdb3 and sdb4 are the two I want to combine into one ext3 partition. Some guidance is appreciated. I know enough not to mess with main install on sdb2 but I still feel queasy about making the new one a "primary".
You can only have 4 primary partitions. If you have extended partitions then you need to use one of your primary partition table slots to create the partition table entries for the extended partitions. Thus if you want more than four partitions then you can only have 3 primary partitions and use the fourth primary partition table slot to hold up to four extended partition entries.

I recommend that you combine partitions 3 and 4 into a primary partition, /dev/sdb3. In the future you can decide whether you will use the fourth partition slot to describe a primary partition or use that slot to describe up to 4 extended partitions.

-------------------------
Steve Stites
 
Old 02-24-2008, 06:00 PM   #3
Nishtya
Member
 
Registered: Feb 2004
Distribution: Mint Cinnamon, Debian sid KDE, PCLOS Cinnamon, Manjaro XFCE
Posts: 280

Original Poster
Rep: Reputation: 32
That was what I was going to do, thanks for telling me it is okay to make another primary! I was just afraid I would leave my main linux (sdb2) unbootable if I made something after it "primary"...doesn't hurt to ask
Speaking of bootable, I am not sure where that flag came from on my linux disk since only windows needs it...probably the mfr utility when I originally installed the disk itself.

The only stumper I have left is why fdisk says the file type of the reiser partition sdb3 is 83 when I thought that was only ext2 (or 2?) but since I am deleting it doesn't really matter.

I have been running linux for years and using the same partitioning scheme since like forever. Although I have installed different distros to play with, I never resized anything - original partitioning was done with mfr's utilities when the disks themselves were installed and only the file format changed through this time. Though I did make that split and switch from ext3 to reiser at some point some distro's wizard must have guided me through it.
 
Old 02-24-2008, 06:54 PM   #4
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
Type 0x83 is (generic) for "Linux" - the filesystem is irrelevant.
Remove the boot flag when you feel the urge - won't hurt anything.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Partitioning with GParted LXer Syndicated Linux News 0 08-07-2006 11:03 AM
repartitioning metalsam Linux - Software 5 07-02-2006 05:39 PM
Repartitioning King4lex Linux - Newbie 4 09-02-2004 06:15 PM
planning hard disk partitioning and making file systems sadiboyz Linux - Networking 7 08-14-2003 11:04 PM
help with repartitioning JunLitsu Linux - Software 6 06-24-2003 05:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:21 AM.

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