LinuxQuestions.org
Visit Jeremy's Blog.
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-04-2014, 11:09 AM   #1
Bumpalot
LQ Newbie
 
Registered: May 2012
Posts: 8

Rep: Reputation: Disabled
Partition table entries not in disk order


I am a newbie using kubuntu 13.10 & not at all comfortable using fdisk unless I'm given specific instructions. Is it possible to fix the table entries without incuring major surgery on my partitions?
Would appreciate explicit advice.
 
Old 02-04-2014, 11:13 AM   #2
pingwinowiewc
Member
 
Registered: Feb 2014
Location: Europe
Distribution: Debian, Mint, Arch (multiboot)
Posts: 90

Rep: Reputation: Disabled
Dont know much about how this is done in Kubuntu but yes, its possible I have done it many times in Debian.....
First let me ask you - do you use fdisk via graphical interface or via console (textmode)?
 
Old 02-04-2014, 11:44 AM   #3
Bumpalot
LQ Newbie
 
Registered: May 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
I use the Terminal.
 
Old 02-04-2014, 12:15 PM   #4
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 2,117

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
Partition table entries are not required to be in disk order. They work fine if they aren't. Why do you want to "fix" this?

Regardless that you don't need to do this, just be sure to backup your partition table before diddling with it ... that way you can recover if you screw it up.

A simple backup is this (change "/dev/sda" to your actual drive designation):

Code:
dd if=/dev/sda of=mbr.bin bs=512 count=1
WARNING: DO NOT MIX UP THOSE "if" AND "of" SPECIFICATIONS!!! You will trash your MBR if you mix them up.

That will backup your MBR (which includes the partition table). Make sure you copy that "mbr.bin" file somewhere else besides on the hard disk that you are diddling with! And make sure you have a LiveCD to restore it with, should that be necessary.
 
Old 02-04-2014, 02:17 PM   #5
Bumpalot
LQ Newbie
 
Registered: May 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thanks for your excellent answer. Much appreciated.
 
Old 02-04-2014, 03:51 PM   #6
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 2,962

Rep: Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268
Quote:
Originally Posted by haertig View Post
A simple backup is this (change "/dev/sda" to your actual drive designation):

Code:
dd if=/dev/sda of=mbr.bin bs=512 count=1
WARNING: DO NOT MIX UP THOSE "if" AND "of" SPECIFICATIONS!!! You will trash your MBR if you mix them up.

That will backup your MBR (which includes the partition table).
It includes only the primary partition table, and no information at all about the logical partitions within any extended partition.
 
  


Reply

Tags
partition table


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
Copying partition table to new disk sewerurchin Linux - Desktop 4 12-15-2012 07:17 PM
[SOLVED] MBR, GRUB and Partitions messed up : Partition table entries are not in disk order fabien Linux - Laptop and Netbook 6 04-12-2012 02:37 PM
USB flash disk partition disappeared as well as partition table openmind Linux - Newbie 3 02-17-2011 06:20 PM
Disk doesn't contain a valid partition table expatCM Linux - Hardware 9 10-01-2007 03:38 AM
Extract data from disk, without partition table... mandatory Linux - General 1 10-20-2003 07:35 AM


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