Re: can't activate swap
dont know what else to suggest other then wiping the whole drive out,
rebooting, adding a swap partition, rebooting again, format the partition
and try to mount it. ive gotten that error and the above has always fixed
it(if you've tried it try again- delete ALL the partitions on the
drive). to be safe make sure the swap partition
is less then 128MB (you mentioned 24MB for your setup? - newer kernels can
support larger swap partitions but just incase..keep it to 128MB or
less) make sure its the right type(82 "linux swap"). here is a couple of
examples of 2 machines i got running:
Disk /dev/hda: 255 heads, 63 sectors, 1108 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 15 120456 82 Linux swap
/dev/hda2 * 16 197 1461915 83 Linux
/dev/hda3 198 1108 7317607+ 5 Extended
/dev/hda5 198 379 1461883+ 83 Linux
/dev/hda6 380 561 1461883+ 83 Linux
/dev/hda7 562 743 1461883+ 83 Linux
/dev/hda8 744 925 1461883+ 83 Linux
/dev/hda9 926 1108 1469916 83 Linux
and for a scsi setup:
Disk /dev/sda: 255 heads, 63 sectors, 554 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 108 867478+ 83 Linux native
/dev/sda2 109 554 3582495 5 Extended
/dev/sda5 109 261 1228941 83 Linux native
/dev/sda6 262 452 1534176 83 Linux native
/dev/sda7 453 518 530113+ 83 Linux native
/dev/sda8 519 537 152586 83 Linux native
/dev/sda9 538 554 136521 82 Linux swap
nate
On Mon, 28 Feb 2000, FreeMan wrote:
c-3 >I also have rebootet before I formated the disk, I tried it thousand
c-3 >times, no matter what I did, I always got "swapon failed - drive or
c-3 >resource busy"
c-3 >I also tried other HDs, another RAM, nothing helped.
c-3 >
c-3 >> you didnt mention that you rebooted, that message is very common when you
c-3 >> do not reboot. some system configurations REQUIRE it. make sure you
c-3 >> reboot BEFORE you try to format the drive, otherwise you will probably
c-3 >> screw the whole drive up.
c-3 >>
c-3 >> nate
c-3 >>
c-3 >> On Sun, 27 Feb 2000, FreeMan wrote:
c-3 >>
c-3 >> c-3 >I already tried what you told me. But it didn't work.
c-3 >> c-3 >A made a swap partition with 24MB (of course I changed the type
c-3 >> c-3 >to Linux Swap), formatted the partition with mkswap, but when I
c-3 >> c-3 >tried swapon I always got "swapon: device or ressource busy"
c-3 >> c-3 >
c-3 >> c-3 >> On 27 Feb 2000, FreeMan wrote:
c-3 >> c-3 >>
c-3 >> c-3 >> c-3 >Hi,
c-3 >> c-3 >> c-3 >
c-3 >> c-3 >> c-3 >I'm trying to install Debian 2.0 on an old Compaq-computer, but I
c-3 >> c-3 >> c-3 >can't even activate the swap partition. I always get the error
c-3 >> c-3 >> c-3 >message "can't activate swap - device or ressource busy".
c-3 >> c-3 >> c-3 >What am I doing wrong or is it probably a problem with the chipset?
c-3 >> c-3 >> c-3 >(I'm using a Compaq ProLinea 3/25zs with a WDC-chipset, i386/25
c-3 >> c-3 >> c-3 >Processor and 4MB RAM - I tried various harddisks)
c-3 >> c-3 >>
c-3 >> c-3 >> login as root, run fdisk, find the swap partition
c-3 >> c-3 >>
c-3 >> c-3 >> then quit fdisk
c-3 >> c-3 >>
c-3 >> c-3 >> type mkswap /dev/XXXX
c-3 >> c-3 >>
c-3 >> c-3 >> where XXXX is the device name for the swap partition
c-3 >> c-3 >>
c-3 >> c-3 >> then swapon /dev/XXXX
c-3 >> c-3 >>
c-3 >> c-3 >> to turn it on, see what happens. some systems you have to reboot after
c-3 >> c-3 >> you change the partition table (before you even format the partition), if
c-3 >> c-3 >> it still doesn't work include a listing of fdisk -l <device> where
c-3 >> c-3 >> <device> is the name of your hdd (/dev/hda /dev/hdb /dev/sda /dev/sdb etc)
c-3 >> c-3 >>
c-3 >> c-3 >> nate
c-3 >> c-3 >>
c-3 >> c-3 >> nate
c-3 >> c-3 >
c-3 >> c-3 >
c-3 >> c-3 >--
c-3 >> c-3 >Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
c-3 >> c-3 >
c-3 >>
c-3 >> ----------------------------------------[mailto:aphro@aphroland.org ]--
c-3 >> Vice President Network Operations http://www.firetrail.com/
c-3 >> Firetrail Internet Services Limited http://www.aphroland.org/
c-3 >> Everett, WA 425-348-7336 http://www.linuxpowered.net/
c-3 >> Powered By: http://comedy.aphroland.org/
c-3 >> Debian 2.1 Linux 2.0.36 SMP http://yahoo.aphroland.org/
c-3 >> -----------------------------------------[mailto:aphro@netquest.net ]--
c-3 >> 3:51pm up 192 days, 4:13, 1 user, load average: 1.18, 1.08, 1.01
c-3 >>
c-3 >>
c-3 >> --
c-3 >> Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
c-3 >>
c-3 >
c-3 >null
c-3 >>
c-3 >
c-3 >
c-3 >
c-3 >--
c-3 >Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
c-3 >
----------------------------------------[mailto:aphro@aphroland.org ]--
Vice President Network Operations http://www.firetrail.com/
Firetrail Internet Services Limited http://www.aphroland.org/
Everett, WA 425-348-7336 http://www.linuxpowered.net/
Powered By: http://comedy.aphroland.org/
Debian 2.1 Linux 2.0.36 SMP http://yahoo.aphroland.org/
-----------------------------------------[mailto:aphro@netquest.net ]--
1:56pm up 193 days, 2:18, 2 users, load average: 1.25, 1.11, 1.06
Reply to: