Best of Technical Support
January 1st, 2004 by Staff in
Fixing Swap When Moving a Drive
I am using Red Hat 9 on an HP Brio (PIII,
20GB and 192MB of RAM). I first installed Linux when my
hard drive was a primary slave. Later I changed
it to primary master. I am using a boot disk to
boot in to Linux, but when I try to boot in to the
system, I get an error that the swap partition was
not initialized. The kernel could detect changes
to my root and boot, but it was unable to in the
case of swap partition.
How can I change the swap partition dynamically? In other words, what parameter
should I pass to the kernel before booting so as to specify my swap at
the command line? Also, can I use the same boot disk to boot on other systems
with different partition allocations, as with Windows startup disks?
—
Aman Hardikar
cybergeek2k@rediffmail.com
This is easy to explain; Linux is looking for the swap partition on one device (the primary slave), probably named /deb/hdbX, X being the partition number, and it happens that it now resides on the primary master disk, which probably is /dev/hdaX. Therefore, Linux can't find the designated swap partition and is unable to initialize it. To fix this, edit your /etc/fstab file and change the device on the line that has the swap entry. It may be something like:
/dev/hdb2 swap swap defaults 0 0
So, change it to:
/dev/hda2 swap swap defaults 0 0
In this example, the swap partition is number 2 on the disks.
Then, reboot your system, and it should work fine. An alternate way to reboot
would be to start the swap partition manually with the command
swapon -a -e, after editing the /etc/fstab file as indicated above.
—
Felipe Barousse Boué
fbarousse@piensa.com
Serial ATA Support?
I intend to install SuSE 8.2 and want to know if I can
install it on a Serial ATA hard drive.
—
Daniel Gustafsson
gustafsson_danie@hotmail.com
Serial ATA hard drives are supported by Linux
(including the SuSE 8.2 distribution's stock kernel
version 2.4.19). This will be obvious, but
as always, first you must check that the BIOS
and/or disk controller hardware of your system
does support Serial ATA hard drives.
—
Felipe Barousse Boué
fbarousse@piensa.com
As usual, the first question is, does your BIOS
support booting from your serial ATA interfaces?
If your BIOS doesn't support booting from this
controller, you might be able to install Linux to
boot from some other device.
—
Jim Dennis
jimd@starshine.org
You can look up your hardware on SuSE's component
database at hardwaredb.suse.de. Other Linux
distributions also maintain their own hardware
compatibility lists.
Although something technically might be supported
in the kernel version that your distribution
ships, it's best to check your distribution's
hardware compatibility list before you go hardware
shopping. Items on the list are more likely to be
detected by the installer automatically, and your
distribution is more likely to include up-to-date
utilities with support for items on the list.
—
Don Marti
dmarti@ssc.com
Special Magazine Offer -- 2 Free Trial Issues!
Receive 2 free trial issues of Linux Journal as well as instant online access to current and past issues. There's NO RISK and NO OBLIGATION to buy. CLICK HERE for offer
Linux Journal: delivering readers the advice and inspiration they need to get the most out of their Linux systems since 1994.
Sorry, offer available in the US only. International orders, click here.
Subscribe now!
Recently Popular
| The new business of free radio | Jul-24-08 |
| Linux HOWTO: Video Editing Magic with ffmpeg | Jul-23-08 |
| Why We Must React to ACTA | Jul-24-08 |
| Chapter 16: Ubuntu and Your iPod | Aug-30-06 |
| Boot with GRUB | May-01-01 |
| Building a Call Center with LTSP and Soft Phones | Aug-25-05 |
Featured Videos
Non-linear video editing tools are great, but they're not always the best tool for the job. This is where a powerful tool like ffmpeg becomes useful. This tutorial by Elliot Isaacson covers the basics of transcoding video, as well as more advanced tricks like creating animations, screen captures, and slow motion effects.
Shawn Powers reviews the HP Mini-Note portable computer.
Thanks to our sponsor: Silicon Mechanics
Silicon Mechanics is a leading manufacturer of rackmount servers, storage, and high performance computing hardware. The best warranty offerings available are backed by experts dedicated to customer satisfaction.
From the Magazine
August 2008, #172
There's nuttin like a Cool Project to give you some relief from the summer heat, so get out your parka cuz we got a bunch of em. First up is the BUG, not a bug, The BUG. It's got a GPS, camera and more, in a hand-sized package that's user programmable. The BUG does everything. It's both a floor wax and a dessert topping. Get one now. Need a software version of a Swiss Army knife? Take a look at Billix, and don't leave home without it. Then, chew on this one, an X server on a Gumstix device driving an E-Ink display. Need more storage? How about 16 Terabytes? Can do.
And, of course, we have the usual cast of characters: Marcel, Reuven, Dave, Kyle, Doc, plus the new kid on the block Shawn Powers. But it doesn't stop there: build a MythTV box on a budget, build your own GIS system, set up the tools to monitor your enterprise and more. Finally, remember The War of the Worlds? Now you can play too.
Delicious
Digg
Reddit
Newsvine
Technorati






