swap partition format problemForum: HD Install Topic: swap partition format problem started by: avenger Posted by avenger on Aug. 27 2005,18:46
I used cfdisk to partition my hard drive, hda1 (partion with the dsl image), hda2 (home) hda5 (swap) I formated hda1 and hda2 no problem ,hda5 I got root@tty1(/1#mkswap /dev/hda5 swapon/dev/hda5 BusyBox v1:00-prc 10 (2004 .06. 12-14:15+oooo)multicall binary us age:mk swap9(-c) (-vol-v1)device (block-count)preparea disk partion to be used as a swap partion Options: -c check for read ability -vo make version 0 swap (max 128 megs) v-1 Posted by avenger on Aug. 27 2005,18:54
hit the enter button by mistakev1make version 1 swap (big!) (default for kernels) block-count Number of block to use (2.1.117) (default the entire partion) I does anyone know what to do with this? I can't continue with the install until I can format the hda5 partion thank-you Posted by avenger on Aug. 28 2005,03:54
Another problem I entered the install the system will not recognize my hda1 dsl image partition as a linux partition.It says maybe I have to reboot or create a newpartition table in cfdisk. Any one have any ideas? I don't know what I'm doing wrong
Posted by stoneguy on Aug. 28 2005,13:29
Did you format /dev/hda1 after you allocated it? Boot DSLLive using dsl 2 which takes you to a command line. Then enter these commands sudo mk2fs /dev/hda1 sudo mk2fs /dev/hda2 to set filetype and format / and /home. Reboot with shutdown -r now after making these sort of changes. As for swap, I think you're there but you don't realize it. The steps to readying a swap partition are 1. allocate the partition (with cfdisk or fdisk) 2. format it (with mkswap) 3. mark it available (with swapon) Depending on what you do and how much RAM your box has, you might be able to live without swap. Check out < DSL Documentation Project > section 2.b Posted by avenger on Aug. 28 2005,18:39
Thanks for the reply, I did boot dsl 2 went to cfdisk created my partitions , hda1 primary, wrote it hda2 home primary, wrote it,hda5 swap logical wrote it , then I clicked on quit, then I formated the partitions after the command line it looked like it worked. Then I did the shutdown _r now. It could be I didn't restart properly. When I did the command ,it gives the kill command remove cd from cd drive close door press enter then the computer shuts down and restarts Iput the cd back in the drive so it will boot, I type in dsl2 and it boots it says something about the hd being partitioned and the swap partition is listed as needing a file system which I thought I did in cfdisk maybe I used the wrong # 82?. I also didn't use sudo befor the format command
Posted by mikshaw on Aug. 28 2005,21:34
82 is a partition type, not a file system. cfdisk will partition only, not format.As far as I know, you should restart after partitioning and then format the partitions. I could be wrong, of course. Posted by stoneguy on Aug. 29 2005,01:49
Waaait a minute. How'd you get hda1, hda2, hda5 as your partitions using cfdisk?It looks like you want to use the entire drive for DSL. Cool. Then take down ALL the partitions with cfdisk. Then reallocate hda1 and hda2 as ext2 (type 83) and put swap (type 82) on hda3. Then mk2fs hda1 and hda2, and mkswap and swapon hda3. You won't be able to add any MS OS's to that drive once you're set up this way, though. If you have any more trouble, post the output of the p command in cfdisk. That ought to make it obvious what's going on. Posted by avenger on Aug. 29 2005,02:37
Thanks for the replies, I did allocate hda1 and hda2 as type 83 I both are primary partitions then I allocated the next partition as type 82 logical partition I didn't namethe partition hda5 cfdisk did, as soon as I clicked on 82. I tried rebooting after I created the partitions the first time the partitions were recognized but not as hda 1,2&5 but as sev 1,2&5 I didn't think that looked right so I deleted the partitions in cfdisk and recreated them and formated before I rebooted. Maybe that was my problem?
|