LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-09-2005, 01:28 AM   #1
Rojahon
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Rep: Reputation: 0
reorder partition lables


Sorry if this has been discussed before but I didn't know what to search for. Basically I want the partition lables (e.g. hda1, hda2) to reflect their actual order. For example:

|---------------------------|
| hda2 | hda3 | hda 1 |
|---------------------------|

That's not my actual setup but what I would like to do is make it

|---------------------------|
| hda1 | hda2 | hda 3 |
|---------------------------|

It doesn't really effect anything, it just bugs me. Is there an easy way to do this?

Thx
 
Old 07-09-2005, 05:56 PM   #2
scott_R
Member
 
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748

Rep: Reputation: 31
Not sure what you mean, because I've never seen them listed backwards like that. My guess is it's a quirk of the application you're using, not the arrangement on the drive itself. Check it by going into the console, and typing 'df' or 'fdisk -l' as root.

For what it's worth, I can understand the annoyance, but from a hardware/kernel standpoint, naming is not inverted like that, so it's probably some preference outlined by someone with too much time on their hands. It might be easy to invert that order, even for novice programmers, if you're willing to check the source of that application.

----
edit:

You might find it beneficial to (over time) learn some of the "lower level" applications, such as those listed above. They are not that easy, or intuitive, perhaps, but as you can see, neither are higher level ones. In addition to acquiring a concise understanding of how your system works, you avoid being confused by "helpful" attempts at isolating you from the intricasies of computing. Just an idea, for what it's worth.

Last edited by scott_R; 07-09-2005 at 06:01 PM.
 
Old 07-09-2005, 06:29 PM   #3
Rojahon
LQ Newbie
 
Registered: Jul 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Well what happened is I deleted a partition in the middle of the drive, that made the partitions that came after that space shift their lables down ("hda4"->"hda3"). Then I created a new partition where the old one used to be. Instead of shifting the lables of the partitions that came after back up, it gave the new partition a lable that was higher than the rest.

This happened when I was using QTparted. QTparted shows the lables in ascending order, but when I'm mounting partitions the lables are different. In Morphix's Partition Morpher, and fdisk it shows the lables the way they really are, which is messed up.

I read somewhere one time about a way to fix this but at the time I didn't have the problem so I didn't pay much attention. (Oops)

Here is the output of fdisk -l:
Code:
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        2040    16386268+   7  HPFS/NTFS
/dev/hda2            2041        9729    61761892+   f  W95 Ext'd (LBA)
/dev/hda5            2041        4651    20972794+   c  W95 FAT32 (LBA)
/dev/hda6            4652        4659       64228+  83  Linux
/dev/hda7            4660        4722      506016   82  Linux swap / Solaris
/dev/hda8            7209        9729    20249901   83  Linux
/dev/hda9            4723        5965     9984366   83  Linux
/dev/hda10           5966        7208     9984366   83  Linux

Partition table entries are not in disk order
 
  


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
How to capture & reorder the packets between two PC's Janarthanan Linux - Networking 2 09-04-2005 02:25 AM
Simple sh script: rand reorder Sinope Programming 2 09-11-2004 05:24 PM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 12:55 PM
software for printing cd lables after burning tatwell Linux - Software 3 03-27-2004 06:30 PM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 08:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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