Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
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 have installed SuSE linux 10.1 in my laptop. I have windows OS aswell. Installation was perfect, as i have 2GB of RAM i have deleted the Linux SWAP partition.
The problem occurred now, when booting with GRUB i am getting the message
GRUB loading, please wait...
Error 22
nothing happens from there
I booted with linux installation CD and went to Rescue system mode. I logged in as root and tried to execute
mkdir mnt
mount -t reiserfs /dev/sda7 mnt
nano mnt/etc/fstab
look for line having word 'swap' and put # sign before that line. save file and reboot.
look in the / filesystem for a directory that's empty. For example, try just mounting your filesystem on /mnt, /opt, or /tmp if they already exist and are empty directories... mount -t reiserfs /dev/sda7 /tmp
Also, you might check the output of fdisk -l to make sure your / partition is still /dev/sda7. I feel like that usually means your partitions changed order (like when you deleted the swap partition maybe?). So you might need to modify /etc/fstab to point at the new partition designations (i.e. /dev/sda6 instead of 7).
I would agree. But it looks like you're using ext3, not rieserfs. So I would try mount -t ext3 /dev/sda2 /tmp Then try nano /tmp/etc/fstab and make sure it looks okay.
I would agree. But it looks like you're using ext3, not rieserfs. So I would try mount -t ext3 /dev/sda2 /tmp Then try nano /tmp/etc/fstab and make sure it looks okay.
I see a basic problem here that the partition references are indiscriminately altered while Grub's complaint is
Quote:
22 : No such partition
This error is returned if a partition is requested in the device part of a device- or full file name which isn't on the selected disk.
In my opinion the alteration of fstab here is totally unnecessary because Grub complained as it either could not find the root partition or the kernel to Load. If there is no kernel available it is a waste of time to fiddle with fstab, a file that instructs the kernel what partitions it must load. In other word fstab is only relevant when the Kernal is being loaded.
I am also confused by why it is necessary to remove the swap in order to cure Grub Error 22.
It would be helpful if the OP posts the Suse's /boot/grub/menu.lst.
It is possible once the Grub error 22 is overcome we could face a kernel panic because its fstab has been altered for other reasons.
I don't think you need a re-install. It is a feature in the new Suse that it "resume" to a swap.
I have a swap in hda5 used by all the Linux and my Suse 10 is booted by Grub as follow
Code:
title SUSE LINUX 10.0
root (hd0,42)
kernel /boot/vmlinuz root=/dev/hda43 vga=0x31a selinux=0 splash=silent resume=/dev/hda5 splash=silent showopts
initrd /boot/initrd
Thus I think it is more relevant that you post your Suse's /boot/grub/menu.lst.
If something is wrong with fstab then it will be reported a "kernel" error. By such time Grub would have buggered off for it lunch break.
My diagnosis is that you could have physically deleted the swap. The action causes the entire logical partition set to shift upward by one position. In a panic you tried to slavage the position by amending the fstab. Your action could still work but I think you need a swap to satisfy Suse.
To me to quickest way to get out of the hot water is to recreate the swap back in its origical position even if it is smaller than the original size and restore the original fstab.
It is not a big deal to alter Linux partition references. I do it sometimes for the entire disk with over 60 distros inside.
Thus I think it is more relevant that you post your Suse's /boot/grub/menu.lst.
where can i execute the code, in rescue mode i got error no such file or directory.
Quote:
To me to quickest way to get out of the hot water is to recreate the swap back in its origical position even if it is smaller than the original size and restore the original fstab.
How can i do that, i have GParted Live CD do you have any idea about that!!
When you are in a rescue mode you are operating Suse from a boot-up Linux. Therefore /boot/grub of the boot-up CD Linux is not the one in the hard disk.
The Suse that is of interest to you is in the hard disk. Your fstabtells us that the root of Suse is currently sda6 (but should have been sda7 according to you). Swap is always Type 82 as there ins't one in your current partition table and you did say to have deleted it. Therefore I predicted the deletion could have been the physical kind as against just an entry in fstab. You also suggested the sda6 was originally sda7. Logical partitions must work like a continuous chain with one logical partition following another in a consecutive order. If one logical partition is deleted the the space is dead and the logical partitions afterward will "automatically" shifted upward to maintain the continuity.
If you have used gparted to aborb the dead space then it may be expedient just to do a re-install.
If you haven't touch the dead space then run "cfdisk /dev/sda" at root terminal (by "su" first followed by root password to become the superuser). You will find the empty space from the deletion of your swap partition currently waiting for you between partition sda5 and sda6. Just use the same space to create a logical partition, select Type 82, highlight "write", hit return, quit cfdisk program and you should be in business again. You should also see with your own eye how cfdisk automatically shift the logical partition sda6 downward to become sda7, back to its original refrence, without any intervention from you.
At this point you should have no Grub error but your Suse may panic until you edit fstab back to its original order, which is sda7 is "/" and no "#" in front of the line /dev/hda6.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.