LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 12-19-2003, 05:09 PM   #1
fritz101
LQ Newbie
 
Registered: Dec 2003
Posts: 5

Rep: Reputation: 0
swap partition failure


I'm getting a failure duing boot:
Activating swap patition: /dev/sdb1 no such device or address

System runs fine, but if this means the entire swap partition isn't coming online, I'm sure problems will arise. After boot, I looked in /dev and sdb1 is there. Not sure whats going on here.

Thanks
 
Old 12-19-2003, 05:32 PM   #2
miaviator278
Member
 
Registered: Dec 2003
Location: Al-Diwania, Iraq (deployed)
Distribution: Slackware ONLY
Posts: 237

Rep: Reputation: 30
send the output of
swapon -a
and
swapon /dev/sdb1

also what does cfdisk or fdisk -l read about that partition?
did you do anything to it?

man swapon
man swapoff
man cfdisk
man fdisk
 
Old 12-20-2003, 10:35 AM   #3
fritz101
LQ Newbie
 
Registered: Dec 2003
Posts: 5

Original Poster
Rep: Reputation: 0
I actually have two identical systems in which one had a motherboard failure. In testing, I swapped some of the hardware, and may have paired up the second SCSI disk incorrectly (can't remember exactly - I was more concerned with the primary disk). They were both partitioned the same way, though. Short of reinstalling, what can I do? Here is the output of the commands you requested. Thanks!!

[root@NueMDLinux2 root]# swapon -a
swapon: /dev/sdb1: No such device or address

[root@NueMDLinux2 root]# swapon /dev/sdb1
swapon: /dev/sdb1: No such device or address

[root@NueMDLinux2 root]# cfdisk
bash: cfdisk: command not found

[root@NueMDLinux2 root]# fdisk -l

Disk /dev/sda: 9105 MB, 9105049600 bytes
255 heads, 63 sectors/track, 1106 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1106 8779522+ 83 Linux

Disk /dev/sdb: 9105 MB, 9105018880 bytes
255 heads, 63 sectors/track, 1106 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table
 
Old 12-20-2003, 02:56 PM   #4
miaviator278
Member
 
Registered: Dec 2003
Location: Al-Diwania, Iraq (deployed)
Distribution: Slackware ONLY
Posts: 237

Rep: Reputation: 30
was there needed data on the second drive?

if both disks were partitioned the same, you had a 1 gig swap partition + 8 gig data partition on sdb ? correct

what tools does your distro come with for harddrive maintenence?

is the data on sda1 and sda2 still good?

it sounds like something is or was hooked up wrong, or your partitrion table got messed up.
 
Old 12-22-2003, 12:39 PM   #5
fritz101
LQ Newbie
 
Registered: Dec 2003
Posts: 5

Original Poster
Rep: Reputation: 0
There was no data on the second drive: it only contained the swap partition. Data on sda1 and sda2 is still good - system runs fine!

When I said the partitions were the same, I was referring to both SYSTEMS having the same partitioning, ie. system/data on first drive, swap on second drive.

Its sounding like I just need to repartition the second drive, and put a swap partition on it. I'm not sure which utility is included with RH9 to do this - any suggestions?

After I set up the swap partition, is there anything I need to do to tell the system where it is, how to mount it, etc?

Thanks
 
Old 12-22-2003, 06:36 PM   #6
miaviator278
Member
 
Registered: Dec 2003
Location: Al-Diwania, Iraq (deployed)
Distribution: Slackware ONLY
Posts: 237

Rep: Reputation: 30
man cfdisk
the swappartition is not there,
it would be easy to learn the mkswap, swapon, swapoff, fstab commands
check the man pages on the above, which explain in detail how to do it
your second drive doesn't appear to conatain anything,

also, why not use the room on the second drive? it says it's a 9gb drive, and your swap really only needs to be twice the amount of ram if that, unless you need more, but that still leaves problably 8gigs of usable space..

cfdisk should be the esiest tool, it's a text menu interface, but easy to use/.. redhat may have a graphical version..
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
partition failure septembertj Fedora - Installation 18 08-28-2005 06:15 PM
Do I need a swap partition? patrik1982 Linux - General 8 06-26-2005 07:09 PM
Failure to mount swap space on boot bleedingturnips Linux - Hardware 5 11-03-2004 01:19 AM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 08:45 AM
Swap partition failure!!! Rex_chaos Linux - General 3 09-09-2001 11:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 05:25 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration