PDA

View Full Version : error when making swap in remastering[solved]



techz_boy
08-31-2005, 07:53 AM
i get error when i type

dd if=/dev/zero of=swapfile bs=1024 count=700k


the error is

dd: writing `swapfile': No space left on device
217009+0 records in
217008+0 records out
222216192 bytes transferred in 79.557125 seconds (2793165 bytes/sec)


my swapfile is only 210 MB

but i want to make 700mb

my hdc5 is already mounted

mount
/dev/root on / type ext2 (rw)
/dev/hdb on /cdrom type iso9660 (ro)
/dev/cloop on /KNOPPIX type iso9660 (ro)
/ramdisk on /ramdisk type tmpfs (rw,size=194112k)
/UNIONFS on /UNIONFS type unionfs (rw,noatime,dirs=/ramdisk=rw:/KNOPPIX=ro)
/dev/pts on /dev/pts type devpts (rw)
/proc/bus/usb on /proc/bus/usb type usbfs (rw,devmode=0666)
automount(pid2055) on /mnt/auto type autofs (rw,fd=4,pgrp=2055,minproto=2,maxproto=4)
/dev/hdc5 on /mnt/hdc5 type ext3 (rw)



u need create partiton not in extended partition

markpreston
08-31-2005, 08:20 AM
What do you get with fdisk -p for /dev/hdc?
You may have to resize other partitions to create a larger swap partition.
Ideally the swap partition should be 2Gb or more for Knoppix remastering.

For example,
root@m:/home/mark# fdisk /dev/hda

The number of cylinders for this disk is set to 4864.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 2 134 1068322+ 84 OS/2 hidden C: drive
/dev/hda2 * 135 2556 19454715 c W95 FAT32 (LBA)
/dev/hda3 2557 4864 18539010 5 Extended
/dev/hda5 2557 2573 136521 83 Linux
/dev/hda6 2574 3012 3526236 83 Linux
/dev/hda7 3730 4040 2498076 82 Linux swap
/dev/hda8 3013 3729 5759271 83 Linux
/dev/hda9 4041 4864 6618748+ 83 Linux

Partition table entries are not in disk order?

techz_boy
08-31-2005, 08:52 AM
fdisk /dev/hdc5
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.


The number of cylinders for this disk is set to 7719.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): p

Disk /dev/hdc5: 3984 MB, 3984228864 bytes
16 heads, 63 sectors/track, 7719 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System

Command (m for help):