LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-14-2005, 05:09 PM   #1
nukey
Member
 
Registered: Dec 2004
Location: Netherlands
Distribution: Slackware
Posts: 173

Rep: Reputation: 30
Partitions in wrong order


Something strange is happening here, i did some repartitioning and ended up with a configuration like this:

(PQMagic in windows)
http://www.nukey.nl/images/pqmagic.jpg


So, in my linux installation i should see someting like this

hda1 NTFS
hda2 Linux
hda3 Linux Swap
hda4 Fat

BUT, with cfdisk i get the following order

hda1 NTFS
hda2 Linux
hda4 Linux Swap
hda3 Fat

fdisk -l says:
Code:
Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         847     6803496    7  HPFS/NTFS
/dev/hda2             848        5178    34788757+  83  Linux
/dev/hda3            5242        9964    37937497+   c  W95 FAT32 (LBA)
/dev/hda4            5179        5241      506047+  82  Linux swap
My main question is, why are they in the wrong order, and should i be affraid that the order wil somehow change for no reason ?
 
Old 05-14-2005, 06:03 PM   #2
tw001_tw
Member
 
Registered: Mar 2003
Location: St. Louis, MO
Distribution: kubuntu-current
Posts: 551
Blog Entries: 4

Rep: Reputation: 31
Quote:
why are they in the wrong order
If I get you right, your concern is why cfdisk places part 4 before part 3?

I think a reboot will resolve the matter of what cfdisk reports. either way,
hda3 is the fat32 & hda4 is the swap, so you shouldn't have any problems.
But double check your /etc/fstab just incase before the reboot.

Quote:
should i be affraid that the order wil somehow change for no reason ?
I'd say - no, you shouldn't. Nothing should change unless you tell it to.

If your still wondering, post what you did when you repartitioned. (what it was
before & what you did)
good luck
-tw
 
Old 05-14-2005, 06:26 PM   #3
nukey
Member
 
Registered: Dec 2004
Location: Netherlands
Distribution: Slackware
Posts: 173

Original Poster
Rep: Reputation: 30
A reboot (even a few) didn't change anything, so it should be pretty "stable" like this. Swap is working and i can acces the fat partition in slack and in windows (that was my goal in this operation). Yes, i call it an operation, here's some background:

First there were 2 harddisks in this machine

hda NTFS 12 GB NTFS 68 GB
hdb LINUX LINUX-SWAP

What i did:
With the program GHOST i made an image of my linux-partition.
I removed the second hard-drive.
resized the 12 GB NTFS partition to 8 GB (didn't know if linux could boot (the 12 GB parition went beyond the 1024))
resized the 68 GB NTFS partition to 30 GB (located at the end of the disk)
Created a 30 GB Linux partition and a 500 MB Linux-swap partition.

I wrote the linux image to the 30 GB Linux partition.
I booted my slackware cdrom, chroot'ed to my linux-partition, adjusted lilo (hdb1 was gone, so i had to change it to hda2), ran lilo, and adjusted my /etc/fstab (same story as with lilo).
 
Old 05-14-2005, 06:37 PM   #4
tw001_tw
Member
 
Registered: Mar 2003
Location: St. Louis, MO
Distribution: kubuntu-current
Posts: 551
Blog Entries: 4

Rep: Reputation: 31
OK - this should be it.

Quote:
Device Boot Start End Blocks Id System
/dev/hda1 * 1 847 6803496 7 HPFS/NTFS
/dev/hda2 848 5178 34788757+ 83 Linux
/dev/hda3 5242 9964 37937497+ c W95 FAT32 (LBA)
/dev/hda4 5179 5241 506047+ 82 Linux swap
from the cfdisk man page:
" The partition table in sector order format will print the partition table ordered by sector
number."

"The partition table in raw format will print the partition table ordered by partition number."

Its just that hda3 sectors are after the sectors used by hda4. Shouldn't be a problem.

-tw
 
Old 05-14-2005, 06:50 PM   #5
nukey
Member
 
Registered: Dec 2004
Location: Netherlands
Distribution: Slackware
Posts: 173

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by tw001_tw
Its just that hda3 sectors are after the sectors used by hda4. [/B]
Yes , i allready saw that it had someting to do with the sectors. But i still don't understand why ?

Why isn't it just calling my Swap-partition hda3. Sectorwize (don't know if that's even english) it comes after hda2.


Ah well, i can live with it, but find it very strange..

If anyone knows, let me know

Thanx,

Gr Robert

EDIT: hmmz, something else is wrong

fdisk -l (says it 30 GB)
Code:
/dev/hda2             848        5178    34788757+  83  Linux
df (says it 6 GB)
Code:
/dev/hda2              5855476   2919996   2935480  50% /
Oh wait... hmmz, the Ghost-image was 6GB, so it kind-of still thinks it's 6 GB (while it's 30).

Or maybe i have 2 different problems here.


I'll check it in the morning

Last edited by nukey; 05-14-2005 at 07:44 PM.
 
Old 05-15-2005, 05:50 AM   #6
nukey
Member
 
Registered: Dec 2004
Location: Netherlands
Distribution: Slackware
Posts: 173

Original Poster
Rep: Reputation: 30
Ok, i just repartitioned again, now it looks like this

NTFS 6 GB
LINUX 6 GB
FAT32 65 GB
LINUX SWAP 500 MB

and fdisk en cfdisk seem to like it

Code:
   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         847     6803496    7  HPFS/NTFS
/dev/hda2             848        1737     7148925   83  Linux
/dev/hda3            1738        9895    65529135    c  W95 FAT32 (LBA)
/dev/hda4            9896        9964      554242+  82  Linux swap
 
  


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
/proc/partitions showing wrong partitions netstv Linux - General 1 07-10-2006 01:11 PM
Filenames are sorted in wrong order Simoncifer Linux - Newbie 4 01-07-2005 12:52 AM
CUPS printing in wrong order boyceman Linux - Software 0 11-05-2004 10:12 AM
Wrong soundcards order Bothkill Slackware 11 07-22-2004 05:10 PM
ALSA Problem: 2 soundcards, wrong order PrivatePanic Linux - Hardware 4 09-04-2003 01:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:36 PM.

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