Actually, I gave it some thought while you were creating your last post and looked at another system and from that created the following in fstab:
Yes there should be. I had you do that because I looked at what you posted before and there's no swap line at all.
I swear, the devil made me do it... irresistible impulse.
As root edit the file to add a line;
LABEL=swapKDE swap swap sw,pri=-1 0 0
Save the file, then reboot.
# Entry for /dev/sda7 :
LABEL=swapKDE swap swap defaults 0 0
I tried this and it seemed to work. What is the difference between 'defaults' and 'sw,pri=-1' ? Or are they really the same thing?
I also figured out the video mode switching problem --- I went into PCLCC -> boot and redid the boot loader partition and discovered that all of the settings for the video boot mode and the resume=LABEL=swapKDE splash=verbose were missing. Putting them back in seems to calm down the display on booting. And the swap partition is loading correctly without complaining.
I'm going to mark this one as solved - I've learned a lot from going thru this and want to THANK YOU profusely for taking the time and having the patience to walk me thru all of this. It is SINCERELY appreciated! You've clearly got teacher's blood running thru your veins as your technique of showing what to look for by example is the fastest way and the most efficient technique for conveying all of the subtle details that command line work entails.
Thank you again for all of your effort and I promise to not try and move a partition again! -- and not to be so stingy in setting up the root partition size either...
One last question - judging from your fstab file, you have multiple Linux systems booting off of the same machine. Do you keep the swap partitions from trashing each other by using the techniques you used in your solution? I've tried multiple boots before and they seem to all want to use the same swap partition. Also, the live boot CD seems to grab the first linux swap partition it can find and uses it. Can this be prevented?
As you only have one swap partition, the line you set up will work fine. I have one swap partition for each hard drive, as each hard drive has at least one OS installed. The two drives showing in my examples are external drives that can be connected by eSATA or USB cable, so are completely portable. I use them on different machines, which is why some of the partitions in my fstab are commented out; they're for another machine.
To aid in efficiency, I use my swap partitions in a striped manner, similar to a RAID, for faster read/writes when swapping. To do that, each swap partition must have the same pri= number. With one swap partition the pri=-1 is used as the default, which is why your line is equivalent to the one I posted.
I ran my own businesses for over 30 years, and personally trained every employee to do things my way. I deliberately looked for those with enthusiasm, but no experience, as it was easier to teach them without having to un-teach them a bunch of bad habits first. When I started playing with computers, I found it was easier to teach kids with no experience, for the same reasons. I kind of got used to doing the examples and such at a level even kids can follow, without too much difficulty. It does work great for long distance troubleshooting too. With a step by step example, one knows what to expect, and can see an error almost immediately, and correct it with a short backtrack. Basically it's the kind of information I wish I'd had available when I was first learning this stuff, and provided so no one else has to go through what I had to. Linux was a bit tougher to learn 12 years ago, and I was the only one I knew who used it, for a long time. (I learned the fine art of world class cussing at the same time.
As to using these techniques myself, certainly.
I even use the same fstab on all my installations, with only the label
of the / partition
varying. No matter which OS I boot, all my important data is always in the same relative place. As noted previously, some partitions in fstab get commented out, and others un-commented, when the drives get moved to different machines.
Having the liveCD grab an existing swap partition is actually a good thing, especially if the machine it's on doesn't have a lot of physical RAM. Sometimes it's the difference between getting a good installation, or a borked one. For the most part, Linux doesn't use swap except as a last resort, when it runs out of physical RAM during a process, or for suspending to disk. A lot of people with extensive RAM don't have a swap partition, because they don't do anything that actually uses all the RAM they have. As time goes by, I tend to use it less and less, but I keep it there, just in case I decide to get heavy duty, on a whim. Checking, just now, I'm using ~57 MB of swap, out of ~14 GB currently available.[root@fatman ~]# swapon -s
Filename Type Size Used Priority
/dev/sda2 partition 8096752 29016 3
/dev/sdb2 partition 6008300 28944 3
As you can see, it's pretty evenly distributed between the two drives. If you really wanted to have the liveCD not use the swap partition, I suppose you could try noswap as a boot parameter. I really don't know if that would work, as I've never tried it before. I never saw a reason to not use the swap, if it was available.
Anyway, glad you're up and running properly again. I appreciate your appreciation
, but when I say it's my pleasure, it really is. I get to fix a problem/solve a puzzle without
having to bork my own machine
. What could be better?