where does linux look for swap partition information @ bootup?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
where does linux look for swap partition information @ bootup?
I have a system with win2k, suse9, and slack10, installed in that order. When I installed slack, I changed the location of the swap partition. Suse no longer boots correctly and I think it is because it does not know where to find the swap. I've changed the fstab file to indicate where it is located, but that doesn't help. Do I need to note the change somewhere else?
If I do end up having to reinstall suse, is there an option to not install grub? I don't recall seeing that option.
Check if you have an option in your suse entry in lilo.conf (if you use lilo) something like "resume=hd<your swap partition>. Make sure it points to the new location.
I do not have "resume=hd<your swap partition> in my lilo.conf. However, that line is not listed for my SLACK section either and it works fine. Here's part of my lilo.conf.
image = /boot/vmlinuz
root = /dev/hdf1
label = SLACK
append="hdb=ide-scsi" # above line added for scsi emulation for cdrw
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hdf6
label = SUSE
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
# Windows bootable partition config begins
other = /dev/hde1 label = windows
# map-drive = 0x80
# to = 0x81
# map-drive = 0x81
# to = 0x80
table = /dev/hde
# Windows bootable partition config ends ~
It turns out that modprobe is not loading ANY modules on bootup, which probably explains my problems more than the swap business. On bootup, I recall seeing failure messages referring to swap, but dmesg shows that it did seem to pick up the swap partition after all. lsmod shows nothing being loaded, and an error message I get when manually entering modprobe states that the directory of modules that it is looking for, something/something/2.4.26 does not exist. I don't know what would have happened. Sure hope someone can clue me in....
I'd post error messages and boot information if I could, but I'm posting in slack and have no way that I know of to get those logs from suse to slack without my mouse, internet, etc. working.
It looks like you're booting the same kernel for Slack and Suse. You have "image=/boot/vmlinuz" for both distro's. Unless you have two separate lilo.conf files (one for each root partition), one of the "image" entries should be something like "image=/mnt/slack/boot/vmlinuz"
well, I've tried several different versions of "image=/mnt/slack/boot/vmlinuz" and cannot get /sbin/lilo to accept any of them. I have two hard drives, with the second /dev/hdf, slack on hdf1 and suse on hdf6. I've tried "image=/mnt/hdf6/boot/vmlinuz" "image=/mnt/dev/hdf6/boot/vmlinuz" "image=/mnt/hdf1/boot/vmlinuz", and maybe others, all more shots in the dark than the previous.
You installed Slack after Windows and Suse were already installed. The way I see it, if you installed lilo (again - it was already there with Suse) with Slack, it overwrote the Suse lilo already in MBR. So booting takes place from Slack's point of view, therefore all entries in lilo.conf should reflect that.
Looking at fstab (slack), you have the line to mount Suse:
Code:
/dev/hdf6 /suse reiserfs defaults 0 0
For that to work, you must have a folder "suse" (case sensitive) in your Slack / directory
Then edit lilo.conf and change the Suse entry from
Code:
image =/boot/vmlinuz
root = /dev/hdf6
label = SUSE
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
to
Code:
image =/suse/boot/vmlinuz-2.4.21-226-athlon
root = /dev/hdf6
label = SUSE
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
assuming that "vmlinuz-2.4.21-226-athlon" is your working kernel in Suse
Give that a shot. If it doesn't work, it's probably because of the Suse "image" line in lilo.conf. Maybe you use the initrd option to boot, I'm not familiar with Suse
Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hdf1
label = SLACK
append="hdb=ide-scsi"
# above line added for scsi emulation for cdrw
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
# Linux bootable partition config begins
image =/suse/boot/vmlinuz
root = /dev/hdf6
label = SUSE
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
# Windows bootable partition config begins
other = /dev/hde1
label = windows
# map-drive = 0x80
# to = 0x81
# map-drive = 0x81
# to = 0x80
table = /dev/hde
# Windows bootable partition config ends
I also used image =/suse/boot/vmlinuz-2.4.21-226-athlon
Both were an improvement in that at least /sbin/lilo would run them, but when trying to boot into
suse, I got KERNEL PANIC: VFS: unable to mount root fs on 21:46 , I've searched but have found
no info on this error message.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.