LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-07-2004, 12:26 AM   #16
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58

A proper /etc/fstab file is needed in order for Linux to boot, so it has to be edited during the install.

If you can install and use midnight commander during the install, you should have no problems. I don't know what tools are available in the Slackware install, however. If they only have vi for an editor, it can be murder for a stranger to the command line. See if you have either nano or pico as text editors during install, they are simple and easy.

An Introduction to the Midnight Commander
Midnight Commander home page

Last edited by fancypiper; 03-07-2004 at 12:28 AM.
 
Old 03-07-2004, 01:47 AM   #17
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
I was just about to post asking about that.

So, just what exactly do I need to add in the fstab to get this to work?

When I reboot the machine, I can't get into Slackware. I can boot from the CDROM and get into command prompt and access fstab. What do I need to add?
 
Old 03-07-2004, 02:02 AM   #18
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
The /etc/fstab file should reflect your actual partitioning scheme that you set up and filesystems that you formatted them as during your install. You should have a sample file somewhere to edit, otherwise I posted my scheme previously you can peruse.

Post the output of
fdisk -l
and describe the filesystems you formatted them as for further help. Any skeleton /etc/fstab file you need to edit would help as well.

My Gentoo /etc/fstab file for another example:
Code:
# Duron 950 uilleann /etc/fstab file: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.
                                                                                                                             
# <fs>                  <mountpoint>    <type>          <opts>          <dump/pass>
                                                                                                                             
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda3               /boot           ext3            noauto,noatime  1 1
/dev/hda6               /               reiserfs        noatime         0 0
/dev/hda5               none            swap            sw              0 0
/dev/hda9               /home           reiserfs        noatime         0 0
/dev/hdb4               /pub            ext3            noatime         0 0
/dev/cdroms/cdrom0      /mnt/cdrom      iso9660         noauto,ro       0 0
#/dev/fd0               /mnt/floppy     auto            noauto          0 0
                                                                                                                             
# NOTE: The next line is critical for boot!
none                    /proc           proc            defaults        0 0
                                                                                                                             
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:
                                                                                                                             
none                    /dev/shm        tmpfs           defaults        0 0

Last edited by fancypiper; 03-07-2004 at 02:08 AM.
 
Old 03-07-2004, 09:27 AM   #19
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
Thanks for the info, Ill try it out.

Update: I can get into KDE and work out everything just fine by running the cdrom at boot and entering this command when it says boot: bare.1 root=/dev/hda5 noinitrd ro

Then I can give linux a "startx" and get my GUI.
This only works for root. If I try to startx with a user I created it says "command not found"

Im hoping this means that I dont have to edit fstab at the command line. I tried vi last night and got a huge headache. I figured out 3 commands:

quit: ctrl + alt + z (i think)
Delete Line: fn + d
and insert: Insert key

Since Im in KDE, is it possible that I could just install Lilo? Maybe I should have opted to install it from the beginning! (:
 
Old 03-07-2004, 11:18 AM   #20
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
I opened up Fstab in kwrite and edited it as follows:

/dev/hda1 /boot ext3 noauto,noatime 1 1
/dev/hda6 swap swap defaults 0 0
/dev/hda5 / ext3 defaults 1 1
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0


I saved and rebooted.... nothing. BIOS is still set to boot from CDROM, but if it doesnt find anything, it should boot from HD right?

Any ideas on what Im doing wrong?
 
Old 03-07-2004, 11:38 AM   #21
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
alright, well, in slackware, fstab is built automatically for you; your problem isn't with fstab

i am guessing you just didn't install lilo?

all you need to do is go into a konsole, and do
su (enter root password)
liloconf

now go through the custom setup
start a new file
add linux (choose /dev/hda5)
install into the mbr of /dev/hda (hda will be your boot device)

*edit: here is what a slackware fstb should be (the same as what you have, except i think you turned off the proc fileystem; no biggie, but programs like gkrellm need proc as well as other system applications)

/dev/hda6 swap swap defaults 0 0
/dev/hda5 / ext3 defaults 1 1
/dev/hda1 /boot ext3 defaults 1 2
/dev/cdrom /mnt/cdrom iso9660 noauto,user 0 0
/dev/fd0 /mnt/floppy auto noauto,user 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

Last edited by TheOneAndOnlySM; 03-07-2004 at 11:46 AM.
 
Old 03-07-2004, 11:44 AM   #22
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
Okay, sounds good. Thanks for your reply. But what should I do about the stuff I added? Is it okay to leave? I think I saved a backup somewhere. Should I bother restoring it?
 
Old 03-07-2004, 11:46 AM   #23
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
see my edit above

also, in order to get the "/boot" partition working, you will need to temporarily mount it without that entry line in fstab

so delete that line, reboot, and in konsole
su
mkdir /mnt/anything
mount /dev/hda1 /mnt/anything
cd /boot
dir (now keep all those files in mind, you will need to move them to /mnt/anything)
mv file_or_dir /mnt/anything
exit

now put that entry back into fstab for /boot, reboot, and it should be well

Last edited by TheOneAndOnlySM; 03-07-2004 at 11:49 AM.
 
Old 03-07-2004, 12:04 PM   #24
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
Thanks a lot! I really appreciate all of the help you have provided me. Please bare with one more stupid question...

What is "anything"? So Im making a directory called "something" (im guessing you want me to fill in my own name) and move all the files from /boot into that directory.

So then, in fstab, I use the "anything" name instead of /boot, right?

What are some good names for anything?

Thanks
 
Old 03-07-2004, 12:14 PM   #25
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
in fstab, you keep the name as /boot

/mnt/anything is just a temporary mount point; currently, the folder /boot is located on your root partition; we just want to move all the contents of /boot on the root partition (/dev/hda5) to /dev/hda1

then in fstab, when your system boots up, it will notice that anything that refers to /boot will actually be pointing to /dev/hda1

so in short, no, you keep the name in fstab as /boot

also, you can make /mnt/anything any name you want; i actually have a folder called "anything" in /mnt that i use to do work like this (temporary things like mounting a dvd and such)
 
Old 03-07-2004, 12:19 PM   #26
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30


I think I'm ready to go! I just have to wait 5 more hours until I get off of work until I get to try all of this stuff. THANKS AGAIN!
 
Old 03-07-2004, 12:31 PM   #27
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
I use two mount points, /mnt/source and /mnt/destination for moving stuff around so I don't get mixed up as to which direction I am moving things. Mount what is to be moved/copied from at /mnt/source and where it is to be moved/copied to as /mnt/destination.

The kiss (keep it simple, stupid) principle at work.

Also, you might try commanding mc at the root command line and try out midnight commander. It's a really nice suite of apps in addition to a great file manager.

Last edited by fancypiper; 03-07-2004 at 12:36 PM.
 
Old 03-07-2004, 06:43 PM   #28
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
I think I screwed up big this time...

I typed in liloconfig and it said "no command found" so I decided to do the /mnt/anything thing first and come back to lilo...

First I created the /mnt/anything

Then I did cd /boot

Then I did mv * /mnt/anything

It wouldnt let me copy 3 files (System.map@, vmlinuz@, and I forgot the other one)

Then I looked around and found Liloconfig in /sbin folder so I did

/sbin/liloconfig

I didnt read SM's directions very carefully and chose the default options for setting up lilo. After selecting all of the default options, it gave me a message "setting up..." or something, I dont really remeber. Before it finished, the command prompt popped up and liloconfig quit.

I figured, "maybe im okay".

I rebooted w/o the CD with no success.

I put the cd back in, and booted with bare.i root=/dev/hda5 noinitrd ro

I looked in the /mnt/anything folder and it was empty, I looked in the /boot folder and it only had those 3 files in it with little locks by them. When I click them it says "Such and Such file doesnt seem to exist".

I opened up Konsole and typed in liloconfig. All it did was print out the command prompt.

HELP!!!!!
 
Old 03-07-2004, 06:59 PM   #29
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
i'm guessing that this wasn't done as root?

are you sure you did "su" before you performed all those operations? if you did and you still couldn't get liloconfig working, you may need to do "su -"

just note; first try without setting up the /boot partition (as in, in fstab, don't put in a line about /boot) and make sure /boot still has all those files in it (/boot should still be a part of your root partition)

try setting up lilo First; remember to select /dev/hda5 (and follow the directions from my previous post); /dev/hda is the boot drive

restart and see if you can get lilo to boot; then we can work on creating a separate partition for /boot (though you may find it unnecessary once lilo is working and you don't intend to install any other distros)

*edit: Huge carefulnessness needed with wildcards! (*); do not use that because that will tell the mv command to move the entire root filesystem to /dev/hda1; just move the files one by one

Last edited by TheOneAndOnlySM; 03-07-2004 at 07:11 PM.
 
Old 03-07-2004, 07:09 PM   #30
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
I was logged in as root... I can only log in as root. It I try to run startx with any other user it says command not found.

/boot doesnt have those files! How do I get them back?!

Im starting to panic right now.
 
  


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
soo stupid, what am i doin??? blizunt7 Programming 8 07-04-2005 10:41 PM
HD issues - what am I doin wrong? tkman Linux - Hardware 2 05-14-2005 04:01 PM
n00B...DOIN OK SAMBA, HTTP, crosswire Linux - Newbie 3 08-13-2004 06:49 PM
Fedor install hangs after doin hardware chech and stuff thegamer_87 Fedora - Installation 1 01-24-2004 05:31 AM
Doin a weekly tape backup - multiple questions - VERY important - Please help WorldBuilder Linux - General 10 04-25-2003 04:12 PM


All times are GMT -5. The time now is 05:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration