Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 20 Oct 2014, 14:32
All times are UTC - 4
 Forum index » House Training » Bugs ( Submit bugs )
Swap memory auto-detection
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
keenerd

Joined: 20 Aug 2005
Posts: 175

PostPosted: Wed 26 Oct 2005, 12:59    Post subject:  Swap memory auto-detection  

The live-CD will use any swap space it finds. However, it doesn't check if the swap is valid and formatted.

Here's what happened: I booted the live CD on a computer with 64Mb ram and an ntfs hard drive. I used boot option 3, just to be safe. Puppy said it didn't have enough RAM, and so it mounted usr_cram.fs from the CD. The CD is non-removable and slow, but it works. I fdisked a few linux partitions and a swap.

Common knowledge says to reboot after messing with partitions. I rebooted the computer with the live-CD.

Puppy noticed there was a big swap partition. 256Mb swap + 64Mb RAM = more than enough to run Puppy in RAM. So it starts copying usr_cram.fs to /.. (ram disk). But the swap isn't formatted (there is only 64Mb ram) and I get a million mallock errors. There is also a request to enter the root password.

Best fix: integrate a swap-check into the boot script.

Workaround: I did get around the constant mallock errors, with some effort. I booted with option 5 (multisession) and then rapidly pressed Ctrl+Z, Ctrl+X, and Ctrl+C. This exited the boot sequence just before loading the multisession script. I got dropped off at a Bash prompt with no /usr. I was able to run mkswap from this crippled console. Then Puppy could boot perfectly.

To consider: There have been several problems on the forum where a person complains of mallock errors and asks what the root password is. The usual advice is "You need to burn the CD slower." Which is wrong and usless advice in this case.
Back to top
View user's profile Send private message 
Cerberus

Joined: 13 Oct 2005
Posts: 57

PostPosted: Wed 26 Oct 2005, 13:08    Post subject:  

The problem i had was that i did have a type 82 hard drive which i wanted to installto, but i did not have enough ram. So it would use th type 82 drive as a swap partition, making it impossible to format.

I woul drecomendmaking an ultra low ram puppy thats only purpose is to load into bash and be able to reformat the disks and make a swap file so that you could then boot puppy and install it onto the hard drive as it is now using a swap partiton as a ram disk

I found though that using a live cd distro like damn small linux allows you to access bash as well, so you can format the cd and make the swap
Back to top
View user's profile Send private message MSN Messenger 
keenerd

Joined: 20 Aug 2005
Posts: 175

PostPosted: Wed 26 Oct 2005, 19:29    Post subject:  

Quote:
I would recomendmaking an ultra low ram puppy thats only purpose is to load into bash and be able to reformat the disks and make a swap file


That already exists, but as a cheap hack. My above "console puppy" (option 5 followed by Ctrl+Z) boots into around 9Mb. It has fdisk, mkswap, mke2fs, and so on.

Quote:
So it would use th type 82 drive as a swap partition, making it impossible to format.


Option 5, Ctrl+Z, swapoff /dev/hd??, fdisk /dev/hd??
should work for that situation.

Besides the swap integrity check, the boot menu should have a sixth option - a real console. It is nice to load usr_cram, but for memory saving it shouldn't be loaded to ramdisk. Just mounted from the cdrom drive, not in ramdisk at all.

One other thing. Even if you select Option 3 (no hard drive) it will still mount the swap partition on the hard drive. Why?
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Bugs ( Submit bugs )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0455s ][ Queries: 11 (0.0033s) ][ GZIP on ]