segmentation fault

Discussion in 'Installation/Configuration' started by Daisy, Apr 11, 2007.

  1. Daisy

    Daisy New Member

    I took the hdd out of the external case and connected to the PC's IDE controller. it recognizes it but still same problem. It copies over about 4 gigs and then says I'm out of space. Suggestions?
  2. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    df -h
  3. Daisy

    Daisy New Member

    Filesystem	Size	Used	Avail	Use%	Mounted on
    /dev/root	3.4M	28K	3.4M	1% 	/
    /ramdisk	198M	5.0M	193M	3%	/ramdisk
    /UNIONFS	198M	5.0M	193M	3%	/UNIONFS
    /dev/hdc	697M	697M	0	100%	/cdrom
    /dev/cloop	2.0G	2.0G	0	100%	/KNOPPIX
    		286G	55G	217G	21%	/mnt/data
    /dev/hda1	37G	48M	35G	1%	/mnt/forty
  4. falko

    falko Super Moderator ISPConfig Developer

    Is that the output with your external HDD mounted?
  5. Daisy

    Daisy New Member

    yes. I pulled the hdd out of the case and hooked direct to the IDE controller on the mother board. It's hda1 partition.
  6. Daisy

    Daisy New Member

    I removed the 40GB drive and added a USB 160GB drive. I formatted and mounted it and this is what it shows:

    fdisk shows
    Disk /dev/sdc: 160.0 GB
    /dev/sdc1 1 19452 156248158+ 83 Linux

    df -h shows
    /dev/sdc1 99M 5.6M 89M 6% /mnt/backup

    any idea what I'm doing wrong?
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    How do you format the harddisk? EXT3?
  8. Daisy

    Daisy New Member

    mkfs -t ext3 /dev/sdc1
  9. falko

    falko Super Moderator ISPConfig Developer

    That's for creating the filesystem in the partition. But how did you create the partition? With fdisk? Did you specify that the partition should use the whole space on the HDD?
  10. Daisy

    Daisy New Member

    I followed the tutorial here:

    At the command prompt, type "fdisk /dev/sdc" replacing the "sdc" with the letters for your drive. Upon opening, fdisk may give you a couple of warnings, all of which can be ignored. It then gives you a prompt that looks like this: Command (m for help):

    Enter "p" to see the partition table of the drive. The first line of output from the "p" command will also tell you size of the drive. This is a good way to double check that you are working with the correct drive.

    If there are any partitions already on the drive they will be listed as the last lines of the "p" command. On our example, this looks like "/dev/sdc1" followed by some information about the partition's size and file system.

    To delete any existing partitions, press "d" then enter. It will ask you which partition number you wish to delete. The number of the partition is the number that follows sdc, so on our example system we enter 1. If there are multiple partitions repeat the "d" command for each one. You can always view the partition table again with the "p" command.

    Once you have deleted all existing partitions on the drive you are ready to make a new one. Type "n" and hit enter. Then press "p" to create a primary partition. It asks you for a partition number, enter "1." Now you are asked which cylinder the partition should start at, the beginning of the drive is the default, so just hit Enter. Then you are asked for the last cylinder, the end of the drive is default so you can just press Enter again.

    Now you are back at fdisk's command prompt. Use the "p" command to check the partition table. You should now see your new partition at the bottom of the output. In the example it lists "/dev/sdc1."

    You now need to set the filesystem type for your new partition with the "t" command. You are asked for the Hex code of the filesystem you wish to use. We wll use the standard Linux ext2 filesystem which is "83." If you are doing something special and know of a particular filesystem that you need to use, you can press "L" to see all the codes, which are one or two characters made up of the numbers 0-9 and the letters a-f.

    Now just issue the "w" command to write your new partition table and exit fdisk.
  11. falko

    falko Super Moderator ISPConfig Developer

    That sounds correct, but still something seems to be wrong with your HDD...
  12. Daisy

    Daisy New Member

    I've tried it with a 40GB PATA and a 160GB SATA. Same problem on both. The 160 had a copy of fedora installed successfully on it with the full 160GB available before I repartitioned and formatted.
  13. Daisy

    Daisy New Member

    I went and bought a NEW 300GB hdd and am having the same problem. This is in a totally different machine too.

Share This Page