LinuxQuestions.org
Review your favorite Linux distribution.
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 08-18-2003, 05:04 PM   #16
Zb7
Member
 
Registered: Jul 2003
Location: Cincinnati, Ohio
Distribution: Slackware 9 (current), Gentoo 1.4, Redhat shrike
Posts: 86

Rep: Reputation: 15

Just use the same sequence as above except instead of mounting the hard drive, mount the floppy.
 
Old 08-18-2003, 05:41 PM   #17
ThorsHamburger
LQ Newbie
 
Registered: Aug 2003
Posts: 20

Original Poster
Rep: Reputation: 0
And wouldnt I have to also cd to a different directory instead of etc?
Anyway Im going to give it a try and see how I do.
 
Old 08-18-2003, 06:12 PM   #18
ThorsHamburger
LQ Newbie
 
Registered: Aug 2003
Posts: 20

Original Poster
Rep: Reputation: 0
Ok I tried both these set of commands

mkdir /mnt/linux
mount /dev/fd0 /mnt/linux
cd /mnt/linux
cd etc
vi lilo.conf

mkdir /mnt/linux
mount /dev/fd0 /mnt/linux
cd /mnt/linux
vi lilo.conf

And I got the same output:

-(flashing cursor)
`
`
`
`
`
"lilo.conf" line 1 of 1 --100--
 
Old 08-18-2003, 06:30 PM   #19
GOBY
Member
 
Registered: Feb 2003
Location: Austin TX
Distribution: ArchLinux
Posts: 67

Rep: Reputation: 15
If there is no file named lilo.conf in the directory you are in, typing vi lilo.conf will just open a blank file named lilo.conf (hence there's nothing but the cursor and some tickmarks). The command pwd tells you your present working directory. The command ls will list the contents of your present directory. You know the cd or change directory command already.. to back out of a directory, type cd .. (cd space dot dot) Use those commands to browse around a bit.. if you want to get fancy you can do this command:
find | grep lilo.conf
and that will tell you where any files named lilo.conf are on your mounted partitions.
 
Old 08-18-2003, 06:40 PM   #20
ThorsHamburger
LQ Newbie
 
Registered: Aug 2003
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by GOBY
If there is no file named lilo.conf in the directory you are in, typing vi lilo.conf will just open a blank file named lilo.conf (hence there's nothing but the cursor and some tickmarks). The command pwd tells you your present working directory. The command ls will list the contents of your present directory. You know the cd or change directory command already.. to back out of a directory, type cd .. (cd space dot dot) Use those commands to browse around a bit.. if you want to get fancy you can do this command:
find | grep lilo.conf
and that will tell you where any files named lilo.conf are on your mounted partitions.
I will try this. Am I even in linux though. I mean I have booted by cd to what ?
I figured I was in the wrong directory, hence no lilo, but I cant figure out the name of the diectory for the floppy. Is it simply fd0?
 
Old 08-18-2003, 06:43 PM   #21
Zb7
Member
 
Registered: Jul 2003
Location: Cincinnati, Ohio
Distribution: Slackware 9 (current), Gentoo 1.4, Redhat shrike
Posts: 86

Rep: Reputation: 15
type in "df" once you boot into the live kernel. it will give you a list of all your partitions, take the one that looks like a floppy drive, mount it to a directory (use mkdir) and then use the find grep command listed about to find your lilo.conf. Once you get it come back here.

I'll be here to help you along, I'd like to see you get it working.
 
Old 08-18-2003, 07:26 PM   #22
ThorsHamburger
LQ Newbie
 
Registered: Aug 2003
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Zb7
type in "df" once you boot into the live kernel. it will give you a list of all your partitions, take the one that looks like a floppy drive, mount it to a directory (use mkdir) and then use the find grep command listed about to find your lilo.conf. Once you get it come back here.

I'll be here to help you along, I'd like to see you get it working.
Ok I booted to the live kernel ( root@slackware/#) and typed df.
This came up.."/dev/fd2" thats all.

I type
mkdir /mnt/linux
mount /dev/fd2 /mnt/linux

Special device cannot find...
I tried ls and found floppy

I cd to floppy
root@slackware/floppy# ls
nothing shows.
cd back to root

find | grep lilo.conf

No such file or directory exists.

Mount /dev/fd2
No such file or directory...

mnt /dev/fd2

No such file or directory.....


This is exhausting.
I need a break soon. You?
Any last suggestions before I call it a night? I wont give up, just might give up for the night and continue tommorow.
One last try for tonight
 
Old 08-18-2003, 07:36 PM   #23
GOBY
Member
 
Registered: Feb 2003
Location: Austin TX
Distribution: ArchLinux
Posts: 67

Rep: Reputation: 15
Quote:
Originally posted by ThorsHamburger
I will try this. Am I even in linux though. I mean I have booted by cd to what ?
I figured I was in the wrong directory, hence no lilo, but I cant figure out the name of the diectory for the floppy. Is it simply fd0?
You can mount by the device (mount /dev/fd0) or by the directory it is associated with (mount /floppy in my case). Simply typing mount will list all mounted devices and the directories they are mounted on.
The file /etc/fstab lists all your partitions and the directories they mount to.

Thanks Zb7, I didn't know about the df command..
 
Old 08-18-2003, 07:36 PM   #24
Zb7
Member
 
Registered: Jul 2003
Location: Cincinnati, Ohio
Distribution: Slackware 9 (current), Gentoo 1.4, Redhat shrike
Posts: 86

Rep: Reputation: 15
well I hope you aren't using Mount with the capital M Is the floppy in when you boot from the CD and everything? Also if your lilo is on the floppy, you're going to need to mount it BEFORE grepping works remember. If these last wave of things doesnt work I might have to call in the escalation tech . It may be exhausting for now but itll feel even better when it works, and it WILL.
 
Old 08-18-2003, 07:40 PM   #25
ThorsHamburger
LQ Newbie
 
Registered: Aug 2003
Posts: 20

Original Poster
Rep: Reputation: 0
*asks sheepishly* could you please show me line by line exactly what to do to mount the floppy and then view it.

I am using lowercase m and yes the floppy is inserted after I boot from the cd but before I start looking for it.
 
Old 08-18-2003, 07:56 PM   #26
GOBY
Member
 
Registered: Feb 2003
Location: Austin TX
Distribution: ArchLinux
Posts: 67

Rep: Reputation: 15
Quote:
Originally posted by ThorsHamburger
Ok I tried both these set of commands

mkdir /mnt/linux
mount /dev/fd0 /mnt/linux
cd /mnt/linux
cd etc
vi lilo.conf

mkdir /mnt/linux
mount /dev/fd0 /mnt/linux
cd /mnt/linux
vi lilo.conf

And I got the same output:

-(flashing cursor)
`
`
`
`
`
"lilo.conf" line 1 of 1 --100--
I'd say if you did these and got no errors when mounting, there is no lilo.conf in /mnt/linux or /mnt/linux/etc. Possible there's no lilo.conf on the floppy? Try an ls -al to list any hidden files or directories
 
Old 08-18-2003, 08:05 PM   #27
ThorsHamburger
LQ Newbie
 
Registered: Aug 2003
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by GOBY
I'd say if you did these and got no errors when mounting, there is no lilo.conf in /mnt/linux or /mnt/linux/etc. Possible there's no lilo.conf on the floppy? Try an ls -al to list any hidden files or directories
but when I boot with the floppy in it brings me the lilo screen and gives me the choice to boot linux so something must be on it.

Ok got to the cursor
root@slackware/#
and typed

mount floppy
and I get
cannot find floppy in /etc/stab or /etc/mtab

same for mount /dev/fd0 or /dev/fd2

Edit: Strange isnt it that when I typed df it showed only one fd2 partition?

Last edited by ThorsHamburger; 08-18-2003 at 08:07 PM.
 
Old 08-18-2003, 08:23 PM   #28
ThorsHamburger
LQ Newbie
 
Registered: Aug 2003
Posts: 20

Original Poster
Rep: Reputation: 0
OK WE ARE GETTING SOMEWHERE this time just one more step.

I did this :

root@slackware/# mkdir /mnt/linux
mount /dev/fdo /mnt/linux

THIS TIME I HEARD THE FLOPPY GRINDING AWAY ND NO ERRO MESSAGE YAY!

then did this

root@slackware/# cd /mnt/linux
and got this

root@slackware/mnt/linux/#

This is more progress than before.

Then I tried cd etc
and got "cannot cd to etc"
tried cd fd0 "cannot cd to fd0"
So that im here " root@slackware/mnt/linux/#
Where do I go .

Last edited by ThorsHamburger; 08-18-2003 at 08:25 PM.
 
Old 08-18-2003, 08:27 PM   #29
GOBY
Member
 
Registered: Feb 2003
Location: Austin TX
Distribution: ArchLinux
Posts: 67

Rep: Reputation: 15
Oh man this is fixin to get over my head.. but if you can get to /etc/fstab, make sure there is a line (or add a line using vi) like:
/dev/fd0 /floppy auto noauto,user 0 0
then make the directory (or check that a directory is made) by the name of /floppy
Then mount /floppy
That SOB ought to mount. If you cannot get to /etc/fstab in the first place, then I guess you have a circular mounting problem

Edit: sorry about the slow response, but YAY for you anyway
Now you can search the floppy with the grep thing..

Last edited by GOBY; 08-18-2003 at 08:30 PM.
 
Old 08-18-2003, 08:43 PM   #30
ThorsHamburger
LQ Newbie
 
Registered: Aug 2003
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by GOBY

Edit: sorry about the slow response, but YAY for you anyway
Now you can search the floppy with the grep thing..
So at root@slackware/mnt/linux/# I would type find | grep lilo.conf?

At that point it would show me where lilo.conf is ?
And then I would cd to that directory and then vi it?

Anyway Im going to go about finding it and then take a break and post my info tommorow at about 8PM EST if you are interested in looking in.

Thanks again everyone.
 
  


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
Open bsd messed up my MBR, problem with installing Slackware lilo klemen Slackware 2 04-06-2005 05:37 AM
Installing Lilo with Slackware Hell Cheese Slackware 2 05-02-2004 03:21 PM
Problems installing slackware 9.1 and Lilo Lgoat Linux - Newbie 6 03-13-2004 12:31 PM
Installing lilo on Slackware 9.0 ThorsHamburger Linux - Newbie 1 08-17-2003 03:09 PM
Lilo not working correctly after installing slackware. jpierce09 Slackware 5 07-15-2003 01:04 PM

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

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