Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
i just got an old compaq presario 7478 for free. i want to put linux on it. it cant boot from a cd so im stuck.
i tried puting the hard drive in an external case and installing it externaly through my laptop. i was trying to install "overclockix", a live knoppix cd with an install script. it used the setting from my laptop though and when i put it back in its own box it wouldn't boot.
i then wanted to try just installing straight onto that computer. my major problem, however, is that it wont boot from a cd. i reflashed the bios and still didn't have the option. so i found out that you can use "rawrite2.exe" and "sbm.bin" on a windows machine to make a boot floppy that will alow you to boot from a cd through the floppy.
i wanted to install dos onto the computer, use its floppy drive to make a boot disk, and go from there. the mbr had some sort of crapped up lilo on it and i couldn't do it. i finaly got a hold of a computer with a floppy drive and got the disk made.
i put it in with high hopes and... it didn't work. it showed the cd-rom as being there in the menu, but there was no information, meaning it thought there was no disc in it. i couldn't read from the cd drives when it still had win98 on it. i thought it might have just been windows so i discarded the thought.
now onto the questions.
what do i have to do to read from the cd drives? (neither the cdrom or dvdrom work.)
how can i install it externaly with generic boot options? (painlessly)
is there another way to put linux on this computer?
If you put the drive in another PC to install, then it has to be in the same place... I recently installed mandrake 10 by putting the drive on the primary master of a P4, installed it, then put the drive on the primary master of the p166 and let it boot and find new harware. Went well...
Otherwise you will need a distro that has provision to make a boot floppy which will then read the CD and install... Sounds like you tried that. It should work and I have done it many time (rawrite and then boot and install). Sounds like the cdrom drive is no good...
Yes, remove the hard disk and put into a PC with it alone (no other disk or working as external). Install a Linux in it and put it back.
Fedora, Mandrake and Suse will automatically adjust the settings for you.
You could install it as an external disk but you need to know how to alter the system files (about three) because the partition reference for an external disk is sda or hde whereas as an internal it would be called hda. That is why I advise you to install it as an internal disk in another PC.
i had thought of that. but all i have here at home are laptops. i could use my dads at his office downtown but that just gets into a whole different issue. my dad doesn't realy understand that it wouldn't mess up anything on his comp.
anyway. you said there were about three files to edit if i want to do it externaly. do you have any idea as to what and where they would be?
but you also need to be able to boot the machine, which involves the mbr, so if you install it on an external drive you are going to need a rescue floppy to boot the machine so you can edit lilo/grub conf files and run lilo/grub and then get the machine to boot...
Editing needed for a Linux moved from one partition to another
For a Grub based distro
(1) /boot/grub/menu.lst (partition reference on the "root" statement + "kernel" statement when there is a parameter of "root=/dev/hda?"
(2) /boot/grub/device.map (make sure the (hd0) matches the hda or sda etc)
(3) /etc/fstab (the root partition to be mounted by kernel, this should match with the kernel statement in (1) above.
For a Lilo-based distro
(a) /etc/lilo.conf (the statement "root=/dev/hda?" should be corrected)
(b) /etc/fstab ( same treatment as the Grub case in (3) above)
In a nut shell if the Linux is installed in an extenal hard disk it will has the root reference sda1. Just change all of them to hda1.
In Grub case Item (1) Grub specifies the root by a different method and alsoways counts from 0 so both sda1 and hda1 will be known as (hd0,0) to Grub, meaning the 1st partition of the 1st disk, therefore no change should be necessary.
thank you. i was able to boot succesfully from grub. however, it starts to load and then i get and error saying:
ALERT! /dev/hda1 does not exist. Dropping to a shell!
then it drops to a shell (BusyBox v1.0-pre10). i am using ubuntu (linux for cheaters) on this comp by the way. the shell is minimal with no access to the hdd. im not sure what to do from here but at least im making some progress.
my car also wont work. need a new computer. no pregress for weeks. but thats another story.
I am not sure how good you are with the hardware. If /dev/hda1 does not exist there could be a number of reasons like
(1) You use a Sata disk and did not realise it is called sda intead of hda
(2) You did not hook you hard drive as the master of the primary IDE cable. It can then be named as hdb for being a slave in the primary cable, or hdc as the master of the secondary IDE cable or hdd as if it has been hooked as slave in the secondary IDE cable.
Grub can boot it partitially because Grub uses a numbering system and so the kernel has been booted up. To get the system up you need the correct partitioning reference in files (1) to (3) inclusively I mentioned previously.
-------------------------------------
All is not lost because in a shell you can edit all the above files using the editor "vi".
It is a tough one to use if you haven't tried it before. Need to read up a bit first but the basic commnads to get by are
i for insert
esc for stop insertion
dd to delete a line (while not inserting)
x to delete the next character (while not inserting)
:q to quit
:w to save the file
:q! to force a quit and save nothing
im sort of okay with hardware stuff. i'm about 95% sure i've got everything in the right place.
what do you mean by "Sata disk"?
as i said its a very minimal shell. i dont even know if i would describe it as a shell. it doesn't have any progs like vi. i think its somehow built in with the bootloader.
anyway, i tried changing everything to hda, hda1, hda2, sda, sda1, hdd, hdd1, hdc, and fd0. i even tried (knowing it wouldn't work) just setting root=/.
in the shell thing, i cant even access the hard drive at all.
A Sata disk is a recent (many years in existence already) type of hard disk. IDE maximum transfer speed stops at 133Mb/s. Sata started off at 150Mb/s and the SataII has been out doing 300Mb/s.
IDE has two channels and each channel supports 2 IDE devices of hard disk and CD drives. Linux assigns them as hda, hdb, hdc and hdd. Therefore the Linux you installed in another computer should match the IDE position to your own PC.
The command you can used in a shell to check the hard disk designation is
i dont have access to the hd. still i can do nothing. if i type "fdisk -l" i get this error.
/bin/sh: fdisk: not found
same thing with vi or any other simple programs. this "busybox" thing realy sucks. it gives you hope and then squashes it like a tiny insect under a fat man.
it has a built in command list. it consists of about 50 or 60 commands, most of which are just basic file management. but all of that is useless unless i can see the hard drive contents.
it is an IDE disk by the way. so thats not my problem. its the disk that came with the computer and used to work with it.
im going to try and find a way to install it differently. if i could just stick it in another box it would solve all my problems.
anyway... if you think of any other ideas it would be much appreciated, but dont stress over it too much.
this is what i'm trying to work with. its barely functional. not even that. i dont even have nearly that many commands available. certainly not any that might help like fdisk, more, vi, or dmesg.
as you can see, it cant realy be considered a shell, in the normal sense.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.