Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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?
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..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.