LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 07: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, 07: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, 07:50 AM   #3
laucian
Member
 
Registered: Oct 2005
Distribution: Ubuntu 9.04
Posts: 124
Blog Entries: 2

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

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
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 08:04 AM.
 
Old 04-10-2008, 08:41 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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, 08:42 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,033

Rep: Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912
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


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 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 12 12-27-2007 10:18 AM
fixing mysql database table without phpmyadmin c0c0deuz Linux - Server 3 12-01-2007 09:17 PM
Need help fixing the partition table odiseo77 Linux - Newbie 2 02-08-2005 02:52 PM
Fixing a bad partition table pen^2 Linux - General 2 07-21-2004 07:25 AM
Fixing An Incorrect Partition Table? Leben Linux - Hardware 6 01-25-2003 02:43 PM


All times are GMT -5. The time now is 10:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration