HP 2133 Mini boot up fail - activating swap-devices in /etc/fstab
Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
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.
HP 2133 Mini boot up fail - activating swap-devices in /etc/fstab
Hi,
I've been trying to revive an old HP Mini, running SUSE Linux Enterprise Desktop 10. Unfortunately, each time I try to boot, I'm always met with the same 'activating swap-devices in /etc/fstab' fail message, followed by a failed fsck attempt and then a prompt for root password. The complication is that I have no idea what the root password is, and I've tried everything I can think of. There's no one I can ask unfortunately to give me the password, so that's not an option.
What are my options? Can I try to reinstall the OS from a USB stick? Or is the SSD corrupt in some way? I'm guessing there's no way of me recovering/changing the root password given that I can't boot properly.. You can probably tell I'm new to Linux, so please go slow with me if you're kind enough to help.
Thanks
To deal with the swap problem:
1. Boot a live distro from a USB stick
2. Mount the Mini's Linux partition in a convenient place, say /opt
3. As root, edit /opt/etc/fstab, commenting out the swap entry
4. Save and Reboot
As for the root password, you can't recover it, but you can delete it:
1. As above, if not already done
2. As above, if not already done
3. As root, edit /opt/etc/shadow, eliminating the character string between the first two colons (but leave the colons)
4. Save
that you can follow to reset a lost root password. Basically, you have to edit the /etc/shadow file and remove the characters between the first and second colons, save the file.
Quote:
Can I try to reinstall the OS from a USB stick?
You could, although you will learn more by trying to fix the problems.
Quote:
Or is the SSD corrupt in some way?
No way of knowing for sure. I do know early production SSD's had a limited write life. So it could be a hardware failure.
I don't use Suse, so I don't know if it uses Grub or Grub2, they are quite different. Treat this as a learning exercise, try to edit the shadow file, with the aid of the instructions. Ask questions if you get stuck.
thanks for both your replies: I tried the guides to reset the root password but they didn't seem to work, but I've managed to solve the problem by booting puppy linux from USB. Thanks again
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.