LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices



Reply
 
Search this Thread
Old 10-24-2013, 04:04 PM   #1
cazewokguy
LQ Newbie
 
Registered: Oct 2013
Posts: 2

Rep: Reputation: Disabled
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
 
Old 10-25-2013, 10:01 AM   #2
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu
Posts: 1,252

Rep: Reputation: 252Reputation: 252Reputation: 252
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
 
Old 10-25-2013, 10:08 AM   #3
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,873

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
There are several HowTo's like this one

-->http://www.cyberciti.biz/faq/linux-r...root-password/ or this one

-->http://linuxgazette.net/107/tomar.html

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.

BTW, welcome to the forum.
 
Old 10-26-2013, 04:36 PM   #4
cazewokguy
LQ Newbie
 
Registered: Oct 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Boot up failed (Activating swap-devices in/etc/fstab..) denbarton Linux - Enterprise 6 12-11-2010 12:39 PM
Activating swap [fail] alan9339 Linux - Hardware 10 06-20-2009 01:22 AM
HP 2133 Mini Notebook georgeks Linux - Hardware 2 04-28-2009 12:21 AM
Activating Swap Fail... sabroo2 Linux - Newbie 6 04-19-2009 10:18 PM
Hp 2133 Mini Notebook artanberisha2004 Linux - Laptop and Netbook 6 10-09-2008 05:26 AM


All times are GMT -5. The time now is 07:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration