SlackwareThis Forum is for the discussion of Slackware Linux.
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.
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.
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?
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.
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
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.
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.
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
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.
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..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.