Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Parted not working properly under 2.6.3
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
barry
Apprentice
Apprentice


Joined: 01 May 2002
Posts: 170
Location: UK

PostPosted: Thu Feb 19, 2004 4:47 pm    Post subject: Parted not working properly under 2.6.3 Reply with quote

Using gentoo-dev-sources-2.6.3, parted gives me the wrong geometry for disks, eg:

Code:
gentoo root # parted /dev/hdb
GNU Parted 1.6.6
...
Using /dev/ide/host0/bus0/target1/lun0/disc
Error: The partition table on /dev/ide/host0/bus0/target1/lun0/disc is inconsistent.  There are many reasons why this might be the case.  However, the most likely reason is that Linux detected the BIOS geometry for /dev/ide/host0/bus0/target1/lun0/disc incorrectly.  GNU Parted suspects the real geometry should be 7299/255/63 (not 116336/16/63).
...


Booting with 2.4.x there's no problem.

Anybody else getting this?
Back to top
View user's profile Send private message
boroshan
l33t
l33t


Joined: 16 Apr 2003
Posts: 730
Location: upside down

PostPosted: Thu Feb 19, 2004 5:00 pm    Post subject: Reply with quote

try toggling the auto detect geometry option in the kernel config. someone reported that they needed it to get past the dreaded "2.6 VFS unable to mount root" kernel panic

Which suggests that it may operate differently from 2.4.
A bit of a shot in the dark, I'll grant you, but worth a try I suspect
_________________
Don't let THEM immanentize the Eschaton!
Back to top
View user's profile Send private message
barry
Apprentice
Apprentice


Joined: 01 May 2002
Posts: 170
Location: UK

PostPosted: Thu Feb 19, 2004 5:05 pm    Post subject: Reply with quote

It looks like it might be a problem with parted interacting with the kernel - fdisk and cfdisk are fine:

Code:
gentoo root # fdisk -l /dev/hdb

Disk /dev/hdb: 60.0 GB, 60040544256 bytes
255 heads, 63 sectors/track, 7299 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Back to top
View user's profile Send private message
boroshan
l33t
l33t


Joined: 16 Apr 2003
Posts: 730
Location: upside down

PostPosted: Thu Feb 19, 2004 6:33 pm    Post subject: Reply with quote

hmmm...
Code:
victor src # parted /dev/hda
GNU Parted 1.6.6
Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
This program is free software, covered by the GNU General Public License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.  See the GNU General Public License for more details.

Using /dev/ide/host0/bus0/target0/lun0/disc
Information: The operating system thinks the geometry on                 
/dev/ide/host0/bus0/target0/lun0/disc is 15017/255/63.  Therefore, cylinder 1024
ends at 8032.499M.
(parted) p                                                               
Disk geometry for /dev/ide/host0/bus0/target0/lun0/disc: 0.000-117800.156 megabytes
Disk label type: msdos
Minor    Start       End     Type      Filesystem  Flags
1          0.031    101.975  primary   ext2       
2        101.975   2102.255  primary   fat16       boot, lba
4       2102.256 109787.958  extended              lba
5       2102.287   2619.975  logical   linux-swap 
6       2620.006   7616.755  logical   linux-swap 
7       7616.786  12613.535  logical   ext3       

Code:
victor src # fdisk -l /dev/hda
Disk /dev/hda: 123.5 GB, 123522416640 bytes
255 heads, 63 sectors/track, 15017 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1          13      104391   83  Linux
/dev/hda2   *          14         268     2048287+   e  W95 FAT16 (LBA)
/dev/hda4             269       13996   110270160    f  W95 Ext'd (LBA)
/dev/hda5             269         334      530113+  82  Linux swap
/dev/hda6             335         971     5116671   83  Linux
/dev/hda7             972        1608     5116671   83  Linux


I noticed this a while back, and got well and truly confused into the bargain. Then I solved the problem that I was trying to address using parted and forgot about it...

that's rather worrying, that it...
_________________
Don't let THEM immanentize the Eschaton!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum