jodef Posted March 8, 2004 Share Posted March 8, 2004 Did an install of Pclos on /dev/hda2 and specified the swap as /dev/hda5 on boot up I am getting a failure to set swap error.I post here my lilo.conf,mtab.fstab files can someone tell me what the problem is. [b]lilo.conf[/b]boot=/dev/hdamap=/boot/mapdefault="pclinuxos"keytable=/boot/livecd.kltpromptnowarntimeout=100message=/boot/messagemenu-scheme=wb:bw:wb:bwimage=/boot/vmlinuz-2.4.23-2.tmb.2mdk label="pclinuxos" root=/dev/hda2 initrd=/boot/initrd-2.4.23-2.tmb.2mdk.img append="devfs=mount splash=silent hdc=ide-scsi" read-only[b]mtab[/b]/dev/ide/host0/bus0/target0/lun0/part2 / reiserfs rw,noatime,notail,notail 0 0none /proc proc rw 0 0none /proc/bus/usb usbfs rw 0 0none /dev devfs rw 0 0/dev/ide/host0/bus0/target1/lun0/part1 /mnt/hdb1 reiserfs rw,nosuid,nodev,noatime,notail 0 0/dev/ide/host0/bus0/target1/lun0/part2 /mnt/hdb2 ext3 rw,nosuid,nodev 0 0cat /etc/fstab### entries below this line were automatically added by LiveCD installnone /proc proc defaults 0 0none /dev devfs defaults 0 0# fd: H1440none /mnt/fd0 supermount dev=/dev/fd0,fs=udf:iso9660,user,exec,rw,noauto,--,iocharset=iso8859-1,codepage=850,umask=0 0 0# /dev/hda2, size=12787740, type=387: Journalised FS: ReiserFS (primary)/dev/hda2 / reiserfs notail,noatime,notail,noatime 0 0# /dev/hda5, size=1044162, type=130: Linux swap (extended)/dev/hda5 /mnt/hda5 swap user,exec,rw,auto 0 0# /dev/hdb1, size=9237312, type=387: Journalised FS: ReiserFS (primary)/dev/hdb1 /mnt/hdb1 reiserfs user,exec,rw,auto,notail,noatime0 0# /dev/hdb2, size=5429970, type=1155: Journalised FS: ext3 (primary)/dev/hdb2 /mnt/hdb2 ext3 user,exec,rw,auto 0 0# cdrom: LITE-ON LTR-52327Snone /mnt/hdc supermount dev=/dev/hdc,fs=udf:iso9660,user,exec,ro,noauto,--,iocharset=iso8859-1,codepage=850,umask=0,nohide 0 0 Quote Link to comment Share on other sites More sharing options...
quint Posted March 8, 2004 Share Posted March 8, 2004 ...from my "PCLOSv5" /etc/fstab: # /dev/hda5, size=1012032, type=130: Linux swap (extended)/dev/hda5 swap swap defaults 0 0HTH. Quote Link to comment Share on other sites More sharing options...
tranquilo Posted March 8, 2004 Share Posted March 8, 2004 You have an error in your /etc/fstab file.# /dev/hda5, size=1044162, type=130: Linux swap (extended)/dev/hda5 /mnt/hda5 swap user,exec,rw,auto 0 0should be something like:/dev/hda5 swap swap defaults 0 0You should also check the partition type...fdisk -l /dev/hdahthtranquilo Quote Link to comment Share on other sites More sharing options...
Bruno Posted March 8, 2004 Share Posted March 8, 2004 Hi JohannThat is a very strange error in your fstab . . . . . do post us the fdisk -l /dev/hda before changing it Bruno Quote Link to comment Share on other sites More sharing options...
jodef Posted March 8, 2004 Author Share Posted March 8, 2004 Hi JohannThat is a very strange error in your fstab . . . . . do post us the fdisk -l /dev/hda before changing it Bruno These are the results:fdisk -l /dev/hdaDisk /dev/hda: 15.0 GB, 15020457984 bytes255 heads, 63 sectors/track, 1826 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot  Start  End  Blocks Id System/dev/hda1 *   1  366 2939863+ ef EFI (FAT-12/16/32)/dev/hda2    367   1162 6393870 83 Linux/dev/hda3     1163   1227  522112+ 5 Extended/dev/hda5     1163   1227  522081 82 Linux swap Quote Link to comment Share on other sites More sharing options...
Bruno Posted March 8, 2004 Share Posted March 8, 2004 Hi JohannWell in that case the solution is simple change your fstab ( never change mtab ) to: /dev/hda5 swap swap defaults 0 0 and as long as we are at it add resume=dev/hda5 in the "append" line in the PCLos section of your lilo.conf and run lilo again to write it to the MBR.Also delete the hda5 directory in /mnt . . . Reboot . . . . and be happy with PCLos :DB) Bruno Quote Link to comment Share on other sites More sharing options...
jodef Posted March 8, 2004 Author Share Posted March 8, 2004 Alas Bruno not meant to be partition tables on hd were screwed up again this must be related to Pclos it's the only time it happens.If you're interested here's the link to the madness:Partition ProblemsUpdate : Hda1 - Windows 98 SE and Hda2 - Knoppix both working.Am gonna be trying to get 3D for the Sis card working hope I don't break anything but the Knoppix install is a breeze anyway.Sorry to have troubled you. Quote Link to comment Share on other sites More sharing options...
Bruno Posted March 8, 2004 Share Posted March 8, 2004 Man . . Johann . . what a wild adventure . . . . . just tell me when you are ready for PCLos again Bruno Quote Link to comment Share on other sites More sharing options...
jodef Posted March 9, 2004 Author Share Posted March 9, 2004 Man . . Johann . . what a wild adventure . .  . . . just tell me when you are ready for PCLos again  BrunoBruno went at it again.First things first swap problem still exists in this install.On boot up I get the following:Activating swap partitions.Swapon /dev/hda5 invalid argument [FAILED]Everything I think you will need:[B]fdisk -l /dev/hda[/B]Disk /dev/hda: 15.0 GB, 15020457984 bytes255 heads, 63 sectors/track, 1826 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes  Device Boot   Start    End   Blocks  Id  System/dev/hda1  *     1    366  2939863+  b  Win95 FAT32/dev/hda2      367    1241  7028437+  83  Linux/dev/hda3      1242    1303   498015   5  Extended/dev/hda5      1242    1303   497983+  82  Linux swap[B]/etc/lilo.conf[/B]boot=/dev/hdamap=/boot/mapdefault="PclosPv5"keytable=/boot/livecd.kltpromptnowarntimeout=100message=/boot/messagemenu-scheme=wb:bw:wb:bwimage=/boot/vmlinuz-2.4.23-2.tmb.2mdk     label="PclosPv5"     root=/dev/hda2     initrd=/boot/initrd-2.4.23-2.tmb.2mdk.img     append="resume=/dev/hda5 devfs=mount splash=silent hdc=ide-scsi "     read-onlyother=/dev/hda1     label="Win98SE"     table=/dev/hda[B]/etc/fstab[/B]### entries below this line were automatically added by LiveCD installnone   /proc  proc   defaults     0 0none   /dev   devfs  defaults     0 0# fd: H1440none   /mnt/fd0     supermount    dev=/dev/fd0,fs=udf:iso9660,user,exec,rw,noauto,--,iocharset=iso8859-1,codepage=850,umask=0   0 0# /dev/hda1, size=5879727, type=28: Hidden WIN95 OSR2 32-bit FAT, LBA-mapped (primary)/dev/hda1    /mnt/hda1    vfat   user,exec,rw,auto,iocharset=iso8859-1,codepage=850,umask=0    0 0# /dev/hda2, size=14056875, type=387: Journalised FS: ReiserFS (primary)/dev/hda2    /    reiserfs     notail,noatime,notail,noatime  0 0# /dev/hda5, size=995967, type=130: Linux swap (extended)/dev/hda5    swap   swap   defaults     0 0# /dev/hdb1, size=9237312, type=387: Journalised FS: ReiserFS (primary)/dev/hdb1    /mnt/hdb1    reiserfs     user,exec,rw,auto,notail,noatime[B]/etc/mtab[/B]/dev/ide/host0/bus0/target0/lun0/part2 / reiserfs rw,noatime,notail,notail 0 0none /proc proc rw 0 0none /proc/bus/usb usbfs rw 0 0none /dev devfs rw 0 0/dev/ide/host0/bus0/target0/lun0/part1 /mnt/hda1 vfat rw,nosuid,nodev,iocharset=iso8859-1,codepage=850,umask=0 0 0/dev/ide/host0/bus0/target1/lun0/part1 /mnt/hdb1 reiserfs rw,nosuid,nodev,noatime,notail 0 0/dev/ide/host0/bus0/target1/lun0/part2 /mnt/hdb2 ext3 rw,nosuid,nodev 0 0 resume=dev/hda5Kernel panic resulted did you mean resume=/dev/hda5 by chance anyway as I indicated above this didn't seem to solve the problem.So I then had to boot livecd and chroot to fix problem.By the way the chroot tip has:Also we have to mount /dev/pts and /proc :# mount -t devpts none /mnt/hda7/dev/pts# mount -t proc none /mnt/hda7/proc but I got an error saying didn't exist in fstab or mtab can't remember but when I did : # mount -t devpts none /mnt/hda7/dev# mount -t proc none /mnt/hda7/proc it worked is this just the case in this instance.The partition stuff happened again so this confirms its Pclos doing this but just had to run procedure outlined by Peachy problem solved Windows boots. Pclos installed and working except for swap issue Windows ok Partitions intact A lot I know but it was nice to work thru it especially as I had an idea what the problem was.Now if only I could solve the swap issue. Quote Link to comment Share on other sites More sharing options...
Bruno Posted March 9, 2004 Share Posted March 9, 2004 Hi Johann . . . a few replies . . : did you mean resume=/dev/hda5 by chance Yep, . . sorry typo . . I see you did add it to lilo's append line # mount -t devpts none /mnt/hda7/dev Also here you are right . . the "/mnt/hda7/dev/pts" is typically only for mandrake ( added a note in The Tip, thx )The partition stuff happened again so this confirms its Pclos doing this but just had to run procedure outlined by Peachy problem solved Windows boots Looks like the devil is playing with it . . . have not seen this before . . . Pclos installed and working except for swap issue The funny thing is that your fstab is showing the correct entry now: # /dev/hda5, size=995967, type=130: Linux swap (extended)/dev/hda5    swap   swap   defaults     0 0 This is 100% correct . . . So all that is okay . . . . . though I do see something funny . . in your fstab I see: /dev/ide/host0/bus0/target1/lun0/part2 /mnt/hdb2 ext3 rw,nosuid,nodev 0 0 But in fstab the entry for hdb2 is not there . . . and fstab is what mounts the partitions that are later reflected in mtab . . . What does the command "mount" give ?? Bruno Quote Link to comment Share on other sites More sharing options...
jodef Posted March 9, 2004 Author Share Posted March 9, 2004 Yeah I thought you might see something I didn't everything looked ok to me too;anyway mount gives the following: mount/dev/ide/host0/bus0/target0/lun0/part2 on / type reiserfs (rw,noatime,notail,notail)none on /proc type proc (rw)none on /proc/bus/usb type usbfs (rw)none on /dev type devfs (rw)/dev/ide/host0/bus0/target0/lun0/part1 on /mnt/hda1 type vfat (rw,nosuid,nodev,iocharset=iso8859-1,codepage=850,umask=0)/dev/ide/host0/bus0/target1/lun0/part1 on /mnt/hdb1 type reiserfs (rw,nosuid,nodev,noatime,notail)/dev/ide/host0/bus0/target1/lun0/part2 on /mnt/hdb2 type ext3 (rw,nosuid,nodev) Quote Link to comment Share on other sites More sharing options...
Bruno Posted March 9, 2004 Share Posted March 9, 2004 See . . your "mount" shows as mounted:hda1hda2hdb1hdb2Your fstab only mounts:hda1hda2hdb1Now you tell me how that is done ?? I would like to know the trick how you do that !! :DB) Bruno Quote Link to comment Share on other sites More sharing options...
jodef Posted March 9, 2004 Author Share Posted March 9, 2004 Hey Pclos does that not me I must have a special edition Anyway can we get back to why my swap fails to activate at boot. Quote Link to comment Share on other sites More sharing options...
Bruno Posted March 9, 2004 Share Posted March 9, 2004 It does not fail . . it is there . . . :DB) Bruno Quote Link to comment Share on other sites More sharing options...
jodef Posted March 9, 2004 Author Share Posted March 9, 2004 It does not fail . . it is there . . . :DB) BrunoSo at start up why does it say swapon fails is Pclos playing tricks on me again Quote Link to comment Share on other sites More sharing options...
Bruno Posted March 9, 2004 Share Posted March 9, 2004 (edited) Beats me Johann . . . . . does it run okay ?? Bruno Edited March 9, 2004 by Bruno Quote Link to comment Share on other sites More sharing options...
jodef Posted March 9, 2004 Author Share Posted March 9, 2004 No problems so far so good. Guess Konqueror didn't pick up that you misspelt my name Quote Link to comment Share on other sites More sharing options...
Bruno Posted March 9, 2004 Share Posted March 9, 2004 Guess Konqueror didn't pick up that you misspelt my name   Sorry Johann . . it has been a crazy night . . . LOL . . ( Corrected it )Well, if PCLos runs fine don't worry . . . Bruno Quote Link to comment Share on other sites More sharing options...
jodef Posted March 9, 2004 Author Share Posted March 9, 2004 Just being mean thx for the help maybe I'll take out the resume line in lilo and see what happens. Quote Link to comment Share on other sites More sharing options...
Bruno Posted March 9, 2004 Share Posted March 9, 2004 maybe I'll take out the resume line in lilo and see what happens. That will do no good Johann . . . . . maybe make a second /swap partition and point fstab to that one ?? Bruno Quote Link to comment Share on other sites More sharing options...
jodef Posted March 9, 2004 Author Share Posted March 9, 2004 Bruno I went into diskdrake and the swap is not mounted there is the mount option there of course when I click mount it says invalid argument.As it's not mounted can I delete it and try recreating it. Quote Link to comment Share on other sites More sharing options...
Bruno Posted March 9, 2004 Share Posted March 9, 2004 As it's not mounted can I delete it and try recreating it. That is VERY risky Johann . . it will mess up the partition table because the numbers will change . . . all your installed distro's can suffer from it . . and that is not only changing Lilo, but the initrd holds info about the hda? the / is on . . if the numbers do not match you are in deep trouble !Better make a new one there where it does not effect the numbering of the partitions you have . . you only need a few hundred MB . . Bruno Quote Link to comment Share on other sites More sharing options...
jodef Posted March 9, 2004 Author Share Posted March 9, 2004 Ok guess I have a hda5 swap that adds some color to diskdrake snce it will be doing nothing else. Quote Link to comment Share on other sites More sharing options...
Bruno Posted March 9, 2004 Share Posted March 9, 2004 Ok guess I have a hda5 swap that adds some color to diskdrake snce it will be doing nothing else. . . . right . . . we want some green and blue in there too . . . B) Bruno Quote Link to comment Share on other sites More sharing options...
jodef Posted March 12, 2004 Author Share Posted March 12, 2004 Ok Bruno I know it's a few days after but decided to give swap problem a rest anyways today I created a new swap leaving existing one in place: so /dev/hda5 old swap and /dev/hda6 new swap however on bootup same problem says invalid argument swapon for /dev/hda5 and /dev/hda6.When I go to diskdrake the mount option for swap files available so they're not mounted when I try to mount it manually says swapon /dev/hda6 invalid argument.Any ideas Quote Link to comment Share on other sites More sharing options...
Bruno Posted March 12, 2004 Share Posted March 12, 2004 Hi JohannI am speechless . . . . why does it not mount your /swap ?? Wish I knew what was happening . . . will do some research . . but don't hold your breath :DB) Bruno Quote Link to comment Share on other sites More sharing options...
Bruno Posted March 12, 2004 Share Posted March 12, 2004 UPDATE:There is one post about this on the PCLos forum . . date 12-17-2003 . . http://www.pclinuxonline.com/modules.php?m...c=2592&forum=53But it has no answers . . . . maybe if you reply in that thread it will get attention again . . . Bruno Quote Link to comment Share on other sites More sharing options...
jodef Posted March 12, 2004 Author Share Posted March 12, 2004 Can't say I've experienced any problems w/out the swap I have 256MB RAM but I just don't want any unexpected problems.I'll check Pclos forums for an answer.Sure hope it's not me alone. Quote Link to comment Share on other sites More sharing options...
Bruno Posted March 12, 2004 Share Posted March 12, 2004 Well it sure looks like it is you alone . . and the other guy from the post from December . . Bruno Quote Link to comment Share on other sites More sharing options...
jodef Posted March 13, 2004 Author Share Posted March 13, 2004 Have been roaming the Pclos forums in search of solution to my problem but found the following post by Texstar :Pclos ForumsPclosPv6 could be out as early as the end of this month P.S. maybe that will solve some of my problems Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.