Jump to content

Pclos Swap Problem


jodef

Recommended Posts

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
Link to comment
Share on other sites

...from my "PCLOSv5" /etc/fstab:

# /dev/hda5, size=1012032, type=130: Linux swap (extended)/dev/hda5 swap swap defaults 0 0
HTH.
Link to comment
Share on other sites

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

Link to comment
Share on other sites

Hi JohannThat is a very strange error in your fstab . . . . . do post us the

fdisk -l /dev/hda

before changing it :blink::thumbsup: Bruno

Link to comment
Share on other sites

Hi JohannThat is a very strange error in your fstab . . . . . do post us the
fdisk -l /dev/hda

before changing it :blink::thumbsup: 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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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. :thumbsup:

Link to comment
Share on other sites

Man . . Johann . . what a wild adventure . . :w00t: . . . just tell me when you are ready for PCLos again :thumbsup: :w00t: :w00t: Bruno

Link to comment
Share on other sites

Man . . Johann . . what a wild adventure . .  :devil:  . . . just tell me when you are ready for PCLos again  :pirate:  :devil: o:) Bruno
Bruno 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/hda5
Kernel panic resulted did you mean resume=/dev/hda5 by chance :whistling: 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. :thumbsup: Pclos installed and working except for swap issue :w00t: Windows ok :w00t: Partitions intact :w00t: 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. :whistling:

Link to comment
Share on other sites

Hi Johann . . . a few replies . . :thumbsup: :

did you mean resume=/dev/hda5 by chance
Yep, . . sorry typo . . :whistling: I see you did add it to lilo's append line :pirate:
# mount -t devpts none /mnt/hda7/dev
Also here you are right . . the "/mnt/hda7/dev/pts" is typically only for mandrake :whistling: ( added a note in The Tip, thx :devil: )
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 . . . :w00t:
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 ??:devil: Bruno

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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 !! :huh: :DB) Bruno

Link to comment
Share on other sites

It does not fail . . it is there . . . B) :DB) Bruno
So at start up why does it say swapon fails is Pclos playing tricks on me again :D
Link to comment
Share on other sites

Guess Konqueror didn't pick up that you misspelt my name :P  :whistling:  :thumbsup:
Sorry Johann . . it has been a crazy night . . . LOL . . :devil: ( Corrected it ;) )Well, if PCLos runs fine don't worry . . . B) Bruno
Link to comment
Share on other sites

maybe I'll take out the resume line in lilo and see what happens. :whistling:
That will do no good Johann . . . . . maybe make a second /swap partition and point fstab to that one ??:thumbsup: Bruno
Link to comment
Share on other sites

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. :whistling:

Link to comment
Share on other sites

As it's not mounted can I delete it and try recreating it. :whistling:
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 . . :thumbsup: Bruno
Link to comment
Share on other sites

Ok guess I have a hda5 swap that adds some color to diskdrake snce it will be doing nothing else. B)
:devil: :whistling: :P . . . right . . . we want some green and blue in there too . . . ;) :thumbsup: B) B) Bruno
Link to comment
Share on other sites

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 :unsure:

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 :w00t: :w00t: P.S. maybe that will solve some of my problems

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...