LinuxQuestions.org
Review your favorite Linux distribution.
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 04-10-2008, 06:01 AM   #1
laucian
Member
 
Registered: Oct 2005
Distribution: Ubuntu 9.04
Posts: 124
Blog Entries: 2

Rep: Reputation: 15
fixing the partition table


hi everyone,
i have a problem with my partition table after i reinstalled my linux system..

it looks like this..

Code:
dhcppc0:/ # fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00061407

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        7753    62267940    7  HPFS/NTFS
/dev/sda2   *        7753        8520     6160896+  83  Linux
/dev/sda3            9671        9729      473917+   5  Extended
/dev/sda4            8520        9670     9245407   83  Linux
/dev/sda5            9671        9729      473886   82  Linux swap / Solaris

Partition table entries are not in disk order
there i have 2 questions:
1) as you can see from sector 1 to 7753 is windows, 7753 - 8520 Linux, 8520 9670 again Linux (i don't what it is) and 9671-9729 linux-swap. sda3 and sda5 have the same sector area but they are somehow different, any way i can fix this?

2)is there anyway that i can enlarge the size of windows partition without formatting or losing my data?

thanks a lot..
 
Old 04-10-2008, 06:48 AM   #2
digvijay.gahlot
Member
 
Registered: Mar 2008
Posts: 53

Rep: Reputation: 15
Firstly they are cylinders not sectors, i guess you might have missed.
The 2 identical ranging cylinder are strange entry.
This should be only identified as swap partition. During the installation there is no option to choose a file system type for swap.
 
Old 04-10-2008, 06:50 AM   #3
laucian
Member
 
Registered: Oct 2005
Distribution: Ubuntu 9.04
Posts: 124

Original Poster
Blog Entries: 2

Rep: Reputation: 15
no i didn't miss..i just didn't know
any idea how to fix it?
 
Old 04-10-2008, 07:02 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,749

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
What you see is normal. sda3 is an extended partition which in a nutshell is a container for logical partitions. Partition IDs >4 are logical partitions. So the start of sda3 and sda5 will be the same and the start/end of all logicals will be within the start/end of the extended partition. Lots of information can be found on extended/logical partitions by searching this website and googling.

The only strange thing is the end of sda1 is the same as the start of sda2

You do not have any unallocated space on this drive so enlarging your windows will mean shrinking/moving all of the linux stuff. Since you just reinstalled the easiest would be to delete the linux partitions, resize windows using gparted liveCD and the install linux again.

Last edited by michaelk; 04-10-2008 at 07:04 AM.
 
Old 04-10-2008, 07:41 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by michaelk View Post
The only strange thing is the end of sda1 is the same as the start of sda2
Perhaps that means that the partitions are not aligned to cylinder boundaries?? (Not a problem)
 
Old 04-10-2008, 07:42 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Quote:
Originally Posted by michaelk View Post
The only strange thing is the end of sda1 is the same as the start of sda2
The cylinder number is the same - sector numbers can be within the same extent. "fdisk -ul" will show it.
Cylinder allocation is the norm these days, but no big deal.
 
  


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
fixing a partition table on new hard drive demerson3 Linux - Newbie 18 12-18-2019 05:14 PM
fixing mysql database table without phpmyadmin c0c0deuz Linux - Server 3 12-01-2007 08:17 PM
Need help fixing the partition table Hungry ghost Linux - Newbie 2 02-08-2005 01:52 PM
Fixing a bad partition table pen^2 Linux - General 2 07-21-2004 06:25 AM
Fixing An Incorrect Partition Table? Leben Linux - Hardware 6 01-25-2003 01:43 PM

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

All times are GMT -5. The time now is 05:31 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