Author Topic: Swap Partition  (Read 4247 times)

Mecit

  • Newbie
  • *
  • Posts: 15
    • View Profile
Swap Partition
« on: September 04, 2006, 06:09:45 am »
i have an sl-c 3200 and i want to make hdd1 a swap partition. i resized it to be 256 mb. i also followed the instructions in http://www.users.on.net/~hluc/myZaurus/ and changed rc.rofilesys. but when i formatted it with mkswap zaurus won't boot. what should i do.

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Swap Partition
« Reply #1 on: September 04, 2006, 07:26:32 am »
Unless you know what you're doing you should just keep hdd1 & hdd2 as they are (they don't use a lot of space), then resize hdd3 (the FAT partition) to make room for more partitions. Eg here's what my partition table looks like:
Code: [Select]
Disk /dev/hdc: 4095 MB, 4095737856 bytes
16 heads, 63 sectors/track, 7936 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdc1               1          20       10048+  83  Linux
/dev/hdc2              21          40       10080   83  Linux
/dev/hdc3              41        4885     2441880    c  W95 FAT32 (LBA)
/dev/hdc4            4886        7936     1537704    5  Extended
/dev/hdc5            4886        7405     1270048+  83  Linux
/dev/hdc6            7406        7936      267592+  82  Linux swap / Solaris

NB if I was to repartition again I would definitely make the FAT partition even smaller (probably 1GB) and give the space to the ext3.

However I've no idea how you can make your system bootable again.
« Last Edit: September 04, 2006, 07:27:19 am by desertrat »
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

Mecit

  • Newbie
  • *
  • Posts: 15
    • View Profile
Swap Partition
« Reply #2 on: September 04, 2006, 09:40:04 am »
i can make it bootable when i format hdd1 with mke2fs -j and put the files frop trisoft.de. But i want to make hdd1 a swap partition. Currently My hdd1 partition is 256 mb linux swap, hdd2 part is 1024 mb linux ext2 and hdd3 is 4.75 gb fat 32.

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Swap Partition
« Reply #3 on: September 05, 2006, 08:30:02 pm »
I had that problem too, I just resized my fat32 partition and set up a /dev/hdx4 for a swap partition(256mb) and added a swapon /dev/{$ide}4 to the end of my rc.rofilesys, also added some fsck to hdd1 and hdd2 so it checks them on a reboot.
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

Mecit

  • Newbie
  • *
  • Posts: 15
    • View Profile
Swap Partition
« Reply #4 on: September 06, 2006, 08:03:33 am »
yes that would work but i just don't understand why doesn't work for /hdd1.
i removed the NotAvailable files formatted using mkswap and changed the rc.rofilesys. but still i get the HDD! ERROR. is there any difference betwen sl-c3100 and 3200 other than the disk size?

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Swap Partition
« Reply #5 on: September 06, 2006, 04:00:26 pm »
Quote
yes that would work but i just don't understand why doesn't work for /hdd1.
It's not worth worrying about how to use the 1st and 2nd partitions. On the 3100 they're only using a measly 20MB out of 4000MB (0.5%) - simply not worth losing sleep over.
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Swap Partition
« Reply #6 on: September 06, 2006, 11:11:42 pm »
actually I increased hdd1 & 2 to 100mb and 1gb for moving stuff like my snes emu/scummvm games along with the apache server and my pine/fetchmail/procmail stuff saved a ton of space, oh yea also a complete set of linux man pages as well.
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder