LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 07-08-2007, 08:21 PM   #1
donnied
Member
 
Registered: Oct 2006
Distribution: Debian x64
Posts: 197

Rep: Reputation: 30
Talking How can I turn on swap before installing debian?


I would like to install Debian on a Toshiba Laptop with 24MB memory.
I tried the lowmem version but the pcmcia settings aren't loaded right. (I need axnet_cs loaded and I think the settings for the older Toshiba laptops were a little awkward.)

So far only the netinstall distro from Debian has been able to identify and turn on the pcmcia card. Which is great; however the install crashes because of too little ram (KBD set to unicode 8 then freeze ,reload, reload).

(How) can I set and swap before starting the install?
 
Old 07-08-2007, 08:32 PM   #2
jschiwal
Moderator
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,262

Rep: Reputation: 561Reputation: 561Reputation: 561Reputation: 561Reputation: 561Reputation: 561
If you can get to a virtual terminal or a psuedoshell then try using the swapon command. 25MB is so small, is it possible to install more memory?
 
Old 07-08-2007, 08:42 PM   #3
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,136

Rep: Reputation: 106Reputation: 106
From the installer page:
Quote:
2.5. Memory and Disk Space Requirements

You must have at least 48MB of memory and 500MB of hard disk space. Note that
these are really bare-minimum numbers. For more realistic figures, see
Section 3.4, "Meeting Minimum Hardware Requirements".
 
Old 07-08-2007, 08:44 PM   #4
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,534

Rep: Reputation: 70
More RAM really is the best solution indeed. But, it can be done! Get yourself a rescue-disk containing a recent Linux kernel, the cfdisk program and their dependencies. In short: a mini distro Then put that image on floppy or CD-ROM and boot from that. Create and activate the swap from there.
 
Old 07-08-2007, 11:07 PM   #5
jschiwal
Moderator
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,262

Rep: Reputation: 561Reputation: 561Reputation: 561Reputation: 561Reputation: 561Reputation: 561
The point when you want to activate the swap memory is when the installer asks for your native language. If the kernel and initrd files need to expand to more than 24MB, then this still may not work. Many distro's will notice a swap partition right of the bat and ask you if you want to enable it. Try creating one before running the install program. It could be that if it is enabled before the catalogs are read in, that you may have enough virtual memory to continue with the installation. Expect the install to take a very long time. The system will run slowly after installation as well if the swap memory needs to be used.
 
Old 07-09-2007, 09:50 AM   #6
donnied
Member
 
Registered: Oct 2006
Distribution: Debian x64
Posts: 197

Original Poster
Rep: Reputation: 30
requirements; swapon

Slackware installs fine. I can cfdisk, set up partitions and turn on swap.
Debian lowmem from floppies sets up fine. I can cfdisk, set up partitions and turn on swap.
What doesn't happen is that the pcmcia ethernet card adapter is not being found and set up correctly (it uses the axnet_cs module; if anybody can suggest how to add that support to the lowmem install of Debian.)

Why not extra ram? It's an old laptop. To get it up to the maximum of 40MB ram would cost the same as another laptop with more ram.

Why bother? The machine is very capable of doing the simple tasks I want it to. I just need to be able to turn the ethernet card on.

There is a possibility in the very beginning of the install to run another command. However, the hard drive isn't mounted at that point and isn't listed in fstab.

Any ideas on how to improve pcmcia support (find and turn on the card) for the Debian lowmem.i install? (The Etch install finds and turns it on right (but crashes because of too little ram) the lowmem Debian install chugs along fine but it can't find the pcmcia card.)
 
Old 07-09-2007, 10:29 AM   #7
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Rep: Reputation: 38
Copy the device driver to the hd.

Could you manually format and mount the drive with mkfs and mount -t (format ett3,xfs,ect...) /dev/*** /mnt, copy the device driver for the card to the hard drive, boot to the low-mem option, create a symlink to the file on the hd in the device directory and modprobe it?

Wow, what a sentence lol.
 
Old 07-09-2007, 11:07 AM   #8
donnied
Member
 
Registered: Oct 2006
Distribution: Debian x64
Posts: 197

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Hern_28
Could you manually format and mount the drive with mkfs and mount -t (format ett3,xfs,ect...) /dev/*** /mnt, copy the device driver for the card to the hard drive, boot to the low-mem option, create a symlink to the file on the hd in the device directory and modprobe it?

Wow, what a sentence lol.
This looks really good. I am however stuck at the point of how exactly I find the file for the device driver.
what would I be symlinking to? ln -s /mnt/hda2/axnet_cs /what does the installer want?

I'm also thinking that I can use the lowmem install to get things going such as turning on swap and loading a root file system. Then I would like to mount the cdrom as executable and run the installer from there. How can I mount the cdrom as executable? Change fstab, mtab?
 
Old 07-09-2007, 11:25 AM   #9
tallmtt
Member
 
Registered: Jun 2005
Location: Texas
Distribution: Gentoo, Ubuntu
Posts: 89

Rep: Reputation: 15
I applaud your endeavor. I did something similar on another Toshiba laptop with very little ram. I also successfully installed slackware then also Debian. I do not remember exactly how I did it (sorry). I did not use the lowmem option though (I don't believe - I think I had issues with it). I might have created and formatted the partition in another distro (like Slack) and then rebooted Debian cd #1, switched to another tty (alt+2) and typed "swapon /dev/hda#". Then I switched back to tty1 (alt+1). During the install I broke out of the normal routine and skipped the partitioning section (as I had already prepared the partitioning.

Hope this helps, I might go back and try to reinstall Debian on my Toshiba just for fun Maybe I can give more specific advise and also tell you exactly which model of laptop it was (possibly the same).

Good luck - MR
 
Old 07-09-2007, 11:58 AM   #10
donnied
Member
 
Registered: Oct 2006
Distribution: Debian x64
Posts: 197

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by tallmtt
I applaud your endeavor.
Thank you.
Quote:
Originally Posted by tallmtt
I did something similar on another Toshiba laptop with very little ram.
I applaud your success.
Quote:
Originally Posted by tallmtt
I also successfully installed slackware then also Debian. I do not remember exactly how I did it (sorry).
I guess the problem isn't so much installing an OS. I can do that but getting pcmcia working with an OS I can install. The Debian etch floppies have the drivers I need and configure correctly but the install crashes. Debian lowmem installs without a hitch but I can't get the pcmcia to work.

Any thoughts on installing through a laplink? I can't install via ssh if the pcmcia card isn't loaded.
 
  


Reply

Tags
debian, install, laptopold, swap, toshiba


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shutdown doesn't turn pc off - Debian Testing doraimom Debian 15 07-25-2007 12:45 PM
added HDD in linux services failed to turn on swap krishna_kawhale Linux - Server 3 08-09-2006 10:58 PM
Can't turn off hibernation on Debian 3.1rev1 Adan Linux - Hardware 0 01-14-2006 06:05 PM
Swap is turn on but not using any Qoo Linux - Newbie 4 06-15-2004 09:30 AM
How do I turn off DHCP in Debian? t3kn0lu5t Linux - Networking 4 10-01-2003 10:15 PM


All times are GMT -5. The time now is 02:12 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration