fdisk
I'm using Dell Dimension PIV 2.0 with 40GB harddisk. When I try to use fdisk to repartition my harddisk, I got this error.
[begin]
# fdisk /dev/hda
Command (m for help): p
Disk /dev/hda: 255 heads, 63 sectors, 2491 cylinders Units = cylinders of 16065 * 512 bytes
8 partitions:
# start end size fstype [fsize bsize cpg]
a: 1 7* 6* 4.2BSD 1024 8192 16 b: 7* 40* 32* swap c: 1 2492* 2491* unused 0 0 e: 40* 42* 2* 4.2BSD 1024 8192 16 f: 42* 2492* 2449* 4.2BSD 1024 8192 16
Command (m for help): n
Segmentation fault
#
[end]
any idea why this happens and how to partition it using fdisk?
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
A segfault occurs when a program attempts to access memory that the kernel has not allocated to it. In practice, a segfault error message usually means one of two things:
1. A bug in the application being run. A common one is trying to
read past the end of an array; C does not have a built-in check for this, and programmers too often forget to do range checking.
2. A hardware problem, typically flaky RAM (which can trash an
address pointer).
Without more information about your setup, I can't really tell you more about the error.
On the hardware side, how much RAM does the system have? Does the system segfault on other occasions?
On the software side, what Linux distribution and version? What version of fdisk (your -p printout is very different from mine, and I'm quite curious as to why it says it has 8 partitions but only lists 5)? Why is your Linux system using only BSD partitions ... or are they partitions from a prior OS that you are trying to replace? And where are you running fdisk from (the installer floppy or CD of your Linux distro, or what)?
Also, I may be reading it wrong (as I said, my fdisk has a different format), but it appears that even if fdisk were working, you couldn't add a new partition to that disk, since the 4 usable partitions (that is, excluding the extended partition shown in your list as C: and, presumably incorrectly, labeled "unused") already use all 2491 cylinders, leaving no space for new partitions. Assuming the BSD partitions are from a prior installation of an OS you are replacing, I'd suggest you first try deleting one or more of them to provide some room for Linux partitions.
Quoted 21 lines · azie
I'm using Dell Dimension PIV 2.0 with 40GB harddisk. When I try to use fdisk to repartition my harddisk, I got this error.
[begin]
# fdisk /dev/hdaCommand (m for help): p
Disk
/dev/hda: 255 heads, 63 sectors, 2491 cylinders Units = cylinders of 16065 * 512 bytes8 partitions:
# start end size fstype [fsize bsize cpg]a: 1 7* 6* 4.2BSD 1024 8192 16 b: 7* 40* 32* swap c: 1 2492* 2491* unused 0 0 e: 40* 42* 2* 4.2BSD 1024 8192 16 f: 42* 2492* 2449* 4.2BSD 1024 8192 16
Quoted 8 lines
Command (m for help): n
Segmentation fault#
[end]
any idea why this happens and how to partition it using fdisk?
--
-----------------------------------------------"Never tell me the odds!"--------------
Ray Olszewski -- Han Solo
Palo Alto, California, USA [email protected]
-------------------------------------------------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 10 lines · azie
8 partitions:
# start end size fstype [fsize bsize cpg]a: 1 7* 6* 4.2BSD 1024 8192 16 b: 7* 40* 32* swap c: 1 2492* 2491* unused 0 0 e: 40* 42* 2* 4.2BSD 1024 8192 16 f: 42* 2492* 2449* 4.2BSD 1024 8192 16Command (m for help): n
Segmentation fault
If you had installed *BSD before in this disk, it is possible that fdisk can understand slices and partitions and thus it segfaults.
It is an fdisk bug for sure. Whatever the case is with your disk, it must not segfault.
Elias
Signature · 6 lines
http://gnewtellium.sourceforge.net MP3 is not a crime. - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
Is libsafe being pre-loaded in /etc/ld.so.preload ?
I had problems with fsck, fdisk, and mkfs.ext2 when libsafe was being preloaded.
If the partition table is in some weird format, and you don't care about the data on the disk. You could just wipe the disk clean before you fdisk it. 'dd if=/dev/zero of=/dev/hda'
Quoted 34 lines · azie
I'm using Dell Dimension PIV 2.0 with 40GB harddisk. When I try to use fdisk to repartition my harddisk, I got this error.
[begin]
# fdisk /dev/hdaCommand (m for help): p
Disk
/dev/hda: 255 heads, 63 sectors, 2491 cylinders Units = cylinders of 16065 * 512 bytes8 partitions:
# start end size fstype [fsize bsize cpg]a: 1 7* 6* 4.2BSD 1024 8192 16 b: 7* 40* 32* swap c: 1 2492* 2491* unused 0 0 e: 40* 42* 2* 4.2BSD 1024 8192 16 f: 42* 2492* 2449* 4.2BSD 1024 8192 16Command (m for help): n
Segmentation fault#
[end]
any idea why this happens and how to partition it using fdisk?
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Signature · 10 lines
Bryan Whitehead SysAdmin - JPL - Interferometry Systems and Technology Phone: 818 354 2903 [email protected] - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
i don't have libsafe in /etc/ld.so.conf . The problem only occurs in /dev/hda. My /dev/hdb shows normal fdisk printout & can performs all fdisk commands :
Disk /dev/hdb: 255 heads, 63 sectors, 4863 cylinders Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System /dev/hdb1 1 392 3148708+ b Win95 FAT32
The hda harddisk is the original harddisk that comes with Dell PC and previously preloaded with Windows XP. I wipe out everything during RedHat 7.3 installation. The only way for me to partition & format the hda is during RH installation. Just wondering what exactly wrong with the harddisk. :)
Quoted 45 lines · Bryan Whitehead
Is libsafe being pre-loaded in
/etc/ld.so.preload?I had problems with fsck, fdisk, and mkfs.ext2 when libsafe was being preloaded.
If the partition table is in some weird format, and you don't care about the data on the disk. You could just wipe the disk clean before you fdisk it. 'dd if=/dev/zero of=/dev/hda'
Quoted 35 lines · azie
I'm using Dell Dimension PIV 2.0 with 40GB harddisk. When I try to use fdisk to repartition my harddisk, I got this error.
[begin]
# fdisk /dev/hdaCommand (m for help): p
Disk
/dev/hda: 255 heads, 63 sectors, 2491 cylinders Units = cylinders of 16065 * 512 bytes8 partitions:
# start end size fstype [fsize bsize cpg]a: 1 7* 6* 4.2BSD 1024 8192 16 b: 7* 40* 32* swap c: 1 2492* 2491* unused 0 0 e: 40* 42* 2* 4.2BSD 1024 8192 16 f: 42* 2492* 2449* 4.2BSD 1024 8192 16Command (m for help): n
Segmentation fault#
[end]
any idea why this happens and how to partition it using fdisk?
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs