Write-error on swap-device error on package install slack 12.2
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Fedora 12, Arch Linux (updated daily =D)
Posts: 270
Rep:
Write-error on swap-device error on package install slack 12.2
I'm having a very peculiar problem:
I have a Desktop I built with 2GB RAM.
I have 1999GB swap that I activate before I try to install slackware 12.2 by entering
Code:
mkswap /dev/sda1
swapon /dev/sda1
sync
I get the same error regardless of whether I have setup the swap or not.
When I run the setup program, I designate /dev/sda1 as my swap, and /dev/sda2 as my root partition. When I install the packages, I get through the 1st couple series OK. BUT, when I get to around a certain point, I start seeing the error message below the install box:
Code:
Write-error on swap-device (8:0:<lots of 1-4 digit #s)
The disk usually pops in and out at this point, and the screen floods with these messages, and the computer seems to automatically jump between ttys. I go back to tty1, and it says
Code:
Killed.
Killed.
beneath the dialog box.
When I run the setup program again, it can't seem to detect my linux partition, and neither can (c)/fdisk When I reboot, it can again.
What on earth is going on!? I am clueless, since nobody else seems to be having these problems.
Distribution: Fedora 12, Arch Linux (updated daily =D)
Posts: 270
Original Poster
Rep:
OK, here's fdisk -l:
Code:
Device Boot Start End Blocks Id System
/dev/sda1 1 243 1951866 82 Linux Swap
/dev/sda2 * 244 30401 242244135 83 Linux
Ok, I checked the swap for bad blocks, (and the / for good measure... Ugh. Took a long time!)
I switched to tty4 in the middle of this process, and got the alarming message:
Code:
Warning! Your mke2fs.conf file does not define the ext3 filesystem type.
You probably need to install an updated mke2fs.conf file.
could this actually be a prob with the root partition?
I then got this on tty4 too!
Code:
Mount: wrong fs type, bad option, bad superblock on /dev/sda2,
missing codepage or helper program, or other error
in some cases useful info is found in syslog - try
dmesg | tail or so
the message was repeated 4 times.
Ok, I switched to tty2 and entered that command.
I got this!
Code:
Buffer I/O error on device sda2, logical block 242244035
sd 2:0:0:0 [sda] Result: hostbyte=0x04 driverbyte=0x00
end_request: I/O error, dev sda, sector 3903795
Buffer I/O error on device dev sda2, logical block 0
Buffer I/O error on device dev sda2, logical block 1
sd 2:0:0:0 [sda] Result: hostbyte=0x04 driverbyte=0x00
end_request: I/O error, dev sda, sector 3903795
sd 2:0:0:0 [sda] Result: hostbyte=0x04 driverbyte=0x00
end_request: I/O error, dev sda, sector 3903795
FAT: unable to read boot sector
What the heck?! Is this a hard drive BIOS configuration problem, or a slack disk-util problem, or a swap issue?!
Mount said that it couldn't read the superblock again in the tty4 after I said OK, when the formatting of the / was finished.
and then, write error on swap device messages appeared again, and then they stopped, to present a "insert next disc" dialog.
The disc popped out, but suddenly popped in. I replaced the discs by pressing the button, and using quick fingers. More write error on swap device messages. >
All of my ttys are filled with them. I always seem to get them just before the disc change...
I'm really confusned now.
Last edited by chickenlinux; 12-26-2008 at 08:17 AM.
Reason: messed up code blocks...
Distribution: Fedora 12, Arch Linux (updated daily =D)
Posts: 270
Original Poster
Rep:
I don't think formatting it was optional, mkswap does that.
Anyway, It's a linux swap partition, I think that's a format in of itself.
Um... just a shot in the dark here... could this all be a BIOS config thing? Like I didn't set up my SATA drive properly or something?
I was speaking about sda2 (used for your root partition), *not* about yours swap partition. Furthermore all the error messages you got but the first one are related to sda2, not sda1
So, please answer my question : which file system is installed on sda2 ? I mean, ext2, ext3, reiserfs, whatever ?
Yes, formatting during setup *is* optional. Please re-run setup following *all the steps* in order ; when asked, accept to format at least your root partition (you can re-format your swap partition too, it won't hurt). For the file-system, you could choose ext3 or reiserfs (provided you use the huge-smp kernel at least for install).
Distribution: Fedora 12, Arch Linux (updated daily =D)
Posts: 270
Original Poster
Rep:
Ok, sorry, I told the setup to format it as ext3 when I installed.
I don't think I made it anything manually when I partitioned it, I think cfdisk may have done that for me, and then setup reformatted it.
I've been formatting in setup the whole time, and following all steps in order...
Would it be wasting my time to *not* format with the setup program? If so, how would I do that?
Last edited by chickenlinux; 12-26-2008 at 05:17 PM.
Reason: idea
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.