LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-18-2003, 03:38 PM   #1
robtheJobNorflk
LQ Newbie
 
Registered: Apr 2003
Distribution: Slackware 10.0
Posts: 28

Rep: Reputation: 15
Unhappy Bit of a BIG boot problem


Hi there,

I was happily working on my Slackware and rebooted. When the system tried to come up it stopped halfway through after recognising the Disks...

It is saying that the file system block has a bad magic number.. or the likes. (bare with me here I am trying to remember)

It gives me the chance to go into a read only console to run e2fsck with a different block.

I am pretty sure it is because I messed up my fstab file. It does not have entries for proc or swap and the my root partition is pointing to the wrong place...

I have an old version of the fstab, but can't put it in the right place because I am on a read only filesystem... :-(

Can someone tell me how I can mount read-write to put back my fstab??

Help...

Rob
 
Old 05-18-2003, 04:12 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
I was happily working on my Slackware and rebooted.
Pressed reset while working?

Well, the only way to do it is to use
a Install-floppy or CD to boot the box...

Once it's up, find the hdxX you're after
using fdisk -l /dev/hdx ...

Then mount it manually:
Code:
mkdir /tmp/root
mount -t auto /dev/hdxX /tmp/root
Not sure whether the boot-shell
of the Slack CD has vi or not, worst
case is you'll have to find it on the
mounted HD and run it from there to
edit your fstab...

Cheers,
Tink
 
Old 05-18-2003, 06:09 PM   #3
teacup
Member
 
Registered: Mar 2003
Location: Rockford, Illinois
Distribution: Slackware Debian
Posts: 86

Rep: Reputation: 15
Quote:
Not sure whether the boot-shell
of the Slack CD has vi or not
It definately does. I've used it enough in the past several days to be sure of it.
 
Old 05-19-2003, 04:32 AM   #4
robtheJobNorflk
LQ Newbie
 
Registered: Apr 2003
Distribution: Slackware 10.0
Posts: 28

Original Poster
Rep: Reputation: 15
Thumbs up

Cheers guys, thats just what I needed.

I forgot that Slackware gives you a nice shell before you start the install process. I was still thinking in Redhat terms....

Once in I simply recovered the old fstab, and voila, Slackware is working again. (I did not realise Linux uses fstab as part of the boot process to work out were root is... isn't that a bit risky? )

I did a clean reboot, the problem was caused by my own poor programming efforts in C++.

I think I should stick to the rule, if it aint broken don't break it...

Thanks again

Rob
 
Old 05-19-2003, 02:36 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
It's not risky if people don't do
their experiments as root, mate ;)

There's a REASON why everybody
screams "Create a normal user account,
don't use root for everyday work!"

Cheers,
Tink
 
Old 05-19-2003, 04:15 PM   #6
robtheJobNorflk
LQ Newbie
 
Registered: Apr 2003
Distribution: Slackware 10.0
Posts: 28

Original Poster
Rep: Reputation: 15
.... hmmm

it's a bit difficult to write out the fstab file without being root (I supose I could go down the route of sudoers etc)....

But hey cheers anyway

Rob
 
  


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
Big Problem. KDE Freezes on boot. bignosedwonder Linux - Newbie 1 06-20-2004 07:27 AM
New kernel... Can't boot... Big Problem redhatman Linux - Newbie 8 02-07-2004 05:08 PM
Very Big Problem With Dual Boot Fathonkey Linux - General 11 05-24-2003 11:39 AM
Big Init boot problem Scotty2435 Linux - General 2 06-05-2002 12:17 AM
Big Boot Problem StarMoose Linux - General 9 05-17-2002 09:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:47 PM.

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
Open Source Consulting | Domain Registration