Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cfdisk knackered...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
suck_ma_penguin
Apprentice
Apprentice


Joined: 03 May 2004
Posts: 180

PostPosted: Sat Nov 13, 2004 11:51 am    Post subject: cfdisk knackered... Reply with quote

cfdisk is reproting the "ends beyond the final partial cylinder" error, and i think it's because my /dev/hda3 starts before /dev/hda2 (god only knows how), but I just thought I'd get some confirmation, If this is the case, what can I do to sort it out?
Here is the output of fdisk p:
Code:

Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1           4       32098+  83  Linux
/dev/hda2            5100       12515    59565082+   5  Extended
/dev/hda3               5        5099    40925587+  83  Linux
/dev/hda5            5100        7124    16265781   83  Linux
/dev/hda6            7125        7762     5124703+   b  W95 FAT32
/dev/hda7            7763       12226    35857048+  83  Linux
/dev/hda8           12227       12364     1108453+  82  Linux swap
/dev/hda9           12365       12515     1208938+   b  W95 FAT32


Can i save my datain any way ( I am prepared to delete hda,2,5,6,7,8,9) hda1 is /boot and hda3 is /.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32439
Location: 56N 3W

PostPosted: Sat Nov 13, 2004 1:37 pm    Post subject: Reply with quote

suck_ma_penguin,

You have /dev/hda3 physically on the drive before /dev/hda2 but thats OK. If you look at the layout taking that into account, I dont see any partition overlaps.
The error message is really telling you that you you are attempting to access some disk blocks off the end of the drive.

What does
Code:
hdparm -i /dev/hda
have to say about the total number of blocks on the drive and how does that relate to the end of the drive as described by the partition table?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
suck_ma_penguin
Apprentice
Apprentice


Joined: 03 May 2004
Posts: 180

PostPosted: Sat Nov 13, 2004 4:40 pm    Post subject: Reply with quote

Here's the output of hdparm, but I don't really know what I'm looking for in all that...

Code:
/dev/hda:

 Model=IC35L100AVVA07-0, FwRev=VA5OA52A, SerialNo=VNC6R0A6L0YBMA
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=52
 BuffType=DualPortCache, BuffSize=1863kB, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=201045600
 IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
 AdvancedPM=yes: disabled (255) WriteCache=enabled
 Drive conforms to: ATA/ATAPI-5 T13 1321D revision 1:

 * signifies the current active mode
Back to top
View user's profile Send private message
suck_ma_penguin
Apprentice
Apprentice


Joined: 03 May 2004
Posts: 180

PostPosted: Sat Nov 13, 2004 4:42 pm    Post subject: Reply with quote

Also, here is the output from parted (different to fdisk)
Code:

Disk geometry for /dev/hda: 0.000-98166.796 megabytes
Disk label type: msdos
Minor    Start       End     Type      Filesystem  Flags
1          0.031     31.376  primary   ext3        boot
3         31.377  39997.771  primary   ext3       
2      39997.771  98166.796  extended             
5      39997.802  55882.353  logical   ext3       
6      55882.384  60886.977  logical   fat32       
7      60887.008  95903.657  logical   ext3       
8      95903.688  96986.162  logical   linux-swap 
9      96986.193  98166.796  logical
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32439
Location: 56N 3W

PostPosted: Sat Nov 13, 2004 5:41 pm    Post subject: Reply with quote

suck_ma_penguin,

Theres no overlaps there either and both the final partition and the extended partition go right up to the end of the drive.

Can you cut and paste the full text of the cfdisk error and the partition table as cfdisk sees it ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
suck_ma_penguin
Apprentice
Apprentice


Joined: 03 May 2004
Posts: 180

PostPosted: Sat Nov 13, 2004 8:25 pm    Post subject: Reply with quote

Full cfdisk output is:
Code:
FATAL ERROR: Bad primary partition 1: Partition ends in the final partial cylinder
                          Press any key to exit cfdisk


I also get the following errors from gparted:

/dev/hda1
Code:
This ext2 filesystem has a rather strange layout!  Parted can't resize this (yet).


/dev/hda5
Code:
This ext2 filesystem has a rather strange layout!  Parted can't resize this (yet).
Back to top
View user's profile Send private message
suck_ma_penguin
Apprentice
Apprentice


Joined: 03 May 2004
Posts: 180

PostPosted: Sat Nov 13, 2004 8:32 pm    Post subject: Reply with quote

After a bit more sniffing using parted, I think there are gaps between some of my partitions. Could this be confusing things?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32439
Location: 56N 3W

PostPosted: Sat Nov 13, 2004 9:09 pm    Post subject: Reply with quote

suck_ma_penguin,

Did you use cfdisk to format this drive?
I suspect that the problems are caused because the partitions do not start on cylinder boundaries.
The concept of cylinder boundaries is no longer relevant but it confuses some partitioing programs.

Does fdisk flag problems ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
suck_ma_penguin
Apprentice
Apprentice


Joined: 03 May 2004
Posts: 180

PostPosted: Sun Nov 14, 2004 11:34 am    Post subject: Reply with quote

The only thing fdisk says is that my cylinders aren't 1024 long or whatever, which I know doesn't matter. If not having used cfdisk is the reason, why is it confusing parted too?
Can I just delete /dev/hda2 with all the extended data and change my fstab to /dev/hda2 instead of /dev/hda3 and linux will still boot?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32439
Location: 56N 3W

PostPosted: Sun Nov 14, 2004 12:07 pm    Post subject: Reply with quote

suck_ma_penguin,

/dev/hda2 is your extended partition. It contains all the partitions from /dev/hda5 on. If you delete it you delete those partitions too.
You really don't want to do that.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
suck_ma_penguin
Apprentice
Apprentice


Joined: 03 May 2004
Posts: 180

PostPosted: Sun Nov 14, 2004 1:23 pm    Post subject: Reply with quote

Actually, that's exactly what I have been meaning to do for ages, this gave me a kick up the arse; it contained windows and an old linux install. Now I have:
Code:

                                     cfdisk 2.12
                              Disk Drive: /dev/hda
                       Size: 102935347200 bytes, 102.9 GB
             Heads: 255   Sectors per Track: 63   Cylinders: 12514

    Name        Flags      Part Type  FS Type          [Label]        Size (MB)
 ------------------------------------------------------------------------------
    hda1        Boot        Primary   Linux ext3                          32.91
    hda3                    Primary   Linux ext3                       41907.81
                            Pri/Log   Free Space                       59912.94
    hda2                    Primary   Linux swap                        1077.52








     [Bootable]  [ Delete ]  [  Help  ]  [Maximize]  [ Print  ]
     [  Quit  ]  [  Type  ]  [ Units  ]  [ Write  ]

                 Toggle bootable flag of the current partition


I need a way of extending my main partition (some kind of rescue disk with parted?) and also, I need advice on a partitioning scheme:

I have tried separate /home and /mp3 (for my music), but I always run out of space! Any advice welcome.

Thanks a lot for all your help, even if I did just delete everything in the end!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32439
Location: 56N 3W

PostPosted: Sun Nov 14, 2004 2:59 pm    Post subject: Reply with quote

suck_ma_penguin,

Heres what I have by way of partitions
Code:
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda5             7.6G  2.6G  4.7G  36% /
/dev/hda6              16G   11G  3.5G  76% /usr
/dev/hda7             1.9G  954M  879M  53% /usr/local
/dev/hda8             966M  251M  666M  28% /tmp
/dev/hda9              31G  7.9G   21G  28% /var
/dev/hda10             93G   53G   37G  60% /home
none                  507M     0  507M   0% /dev/shm
eccles:/home          1.9G  1.3G  526M  72% /mnt/eccles
/dev/hda1              69M   11M   55M  17% /boot
<swap> is 2Gb
I don't know what to do about resizing, not having done it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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