DebianThis forum is for the discussion of Debian 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.
Distribution: Solaris 9, FreeBSD 4.10, Slackware, RedHat, Knoppix,
Posts: 84
Rep:
knoppix 3.2 installation
hey everyone,
I m an absolute newbie when i m talking knoppix. the thing is i wanted to load knoppix 3.2 on my HD. i tried knx-hdinstall but its not in english (i even booted using "knopix lang=en" and also "knoppix lang=us") but the prompts still does not appear as english alphabets. So i tried the other way round
1)
made a 150MB partition (ext3) (hda5) ---- boot
made a 200MB swap partiton (hda6) ---- swap
made a 3GB partion (hda7 - ext3) ---- root
Now, this is where i m stuck up
Tried looking for grub/ under boot/ ----- did not find one
even tried looking for grub under /mnt/hda7/boot/ ----did not find it
So, as far as i understand, i am done with 70% of the process and all i need to do is set the hda5 (made it active) to boot, but what do i have to place in hda5 and where do i find those files...and what all do i have to configure after that...is there a document for it?
PS: i dont want to go for "knx-hdinstall" as i think the above process is more fun
Distribution: Solaris 9, FreeBSD 4.10, Slackware, RedHat, Knoppix,
Posts: 84
Original Poster
Rep:
Hi! Geronimo,
Thanks for the help...
what u said is the 3rd step.....to copy the boot files from KNOPPIX/boot/ to /dev/hda5...ok got it!
but dont i have to modify any settings inside the new /boot (on /dev/hda5)....
I already made the partition (/dev/hda5) active
Now that leaves me with two questions :
how do i get the bootloader to give me an option of windows too? (hd0,0) or (/dev/hda1)
is it possible for /dev/hda5 to be in logical partition? i mean if the /boot files are in logical partition will there be any problem - i am talking about (/dev/hda5)...
Distribution: Solaris 9, FreeBSD 4.10, Slackware, RedHat, Knoppix,
Posts: 84
Original Poster
Rep:
oh sorry it was "knoppix lang=en"
but the annoying fact is that when i do "knx-hdinstall" it still does not display the prompts in english (?)
also i am trying to set up the system by my own to know the details of the working process of linux - is that bad ? (j/k)
-----> fine, grub gets installed in /mnt/hda5 or /dev/hda5
now, in /mnt/hda5/grub/, there is no grub.conf or menu.lst (?) but all the other files needed. I manually created the grub.conf
now when i start my computer....BIOS comes up and then it lands up in a grub prompt...
grub>
this is what i do
_________________________________________________
grub> kernel (hd0,4)/vmlinuz init=(hd0,6)/etc/init
(it finds and loads the kernel)
grub>boot
_________________________________________________
it starts booting up (thank God!)
but ends up saying
kernel panic: No init process found try passing the init= option to the kernel
i swear i did specify the init=(hd0,6)/etc/init as a kernel option, am i passing the right path or do i need to refer to some other "init"?
"also i am trying to set up the system by my own to know the details of the working process of linux - is that bad ? (j/k)"
Remember: Knoppix is NOT Debian, knoppix has a compilation of sources.list repositories (woody, sarge, sid, experimental, marillat, et.al)
so do not expect it to behave as a regular Debian, the fstab is different, is supposed to be a live cd to introduce you to debian, to mount partitions and solve problems, etc.
you should try MEPIS or Kanotix, that are based on Sid exclusively.
Linux kernel needs to know the root device (from where it loads /sbin/init by default).
Try:
grub> root (hd0,6)
grub> kernel (hd0,4)/vmlinuz
grub> boot
By the way, you might be interested in reading Greg O'Keefe's From-PowerUp-To-Bash-Prompt-HOWTO (install one of the doc-linux-* packages once you're running or visit http://www.tldp.org/HOWTO/From-Power...mpt-HOWTO.html)
Distribution: Solaris 9, FreeBSD 4.10, Slackware, RedHat, Knoppix,
Posts: 84
Original Poster
Rep:
hi psisquare,
i figured out the problem....it was due to NOT setting the "initrd" had to do a lot of research just to findout to extract boot.img to floppy and then copy miniroot.gz to (hd0,4).
Ok, well here i m
i get grub well and fine with options to load Linux or windows
windows loads up fine
linux also starts loading up
the init starts up, mounts the drives (i did modify /etc/fstab)
and i get the messege "Welcome to KNOPPIX Live on CD"
and then does a scan on my HDD and CDROM
and ends up saying (in RED)
"Can'f find KNOPPIX filesystem
Dropping you to a (very limited) shell
Press restart to reboot"
and leaves me with a shell which can do nothing ....
i'm not 100% sure about knoppix's boot-up procedure, but miniroot.gz seems to contain a minimal file system which gets loaded into ram and is meant to enable Linux to access your cdrom. I don't think this is the way you want to go, since booting from HD is generally much easier than from CD.
you definitely don't _need_ an initrd for this, as long as your kernel recognizes your HD and has built-in support for ext3 (I think Knoppix standard kernels have).
i just checked my own grub setup and found some extra kernel options. check that you've got /sbin/init on hda7 and run
Distribution: Solaris 9, FreeBSD 4.10, Slackware, RedHat, Knoppix,
Posts: 84
Original Poster
Rep:
hi psisquare,
Bingo! u were right..... miniroot.gz points to the init which is located in the KNOPPIX filesystem in the CD - so i WAS going the wrong way...
deleted "initrd = miniroot.gz" entry from grub.conf and
grub> root (hd0,6)
grub> kernel (hd0,4)/vmlinuz root=/dev/hda7 ro init=/etc/init lang=en
grub> boot
is my present grub configuration - boots up fine but the root filesystem mounts as read only --- i cant change anything in it?
i changed my grub.conf to
kernel (hd0,4)/vmlinuz rw root=/dev/hda7 init=/etc/init lang=en
now it does boot up fine and i CAN change the root file system
the last problem (i guess...GOD please!!!) is that i cant mount any thing other than root (/) from /etc/fstab (?)
when i do /etc/fstab it says
mount: permission denied
mount: permission denied
mount: permission denied
--------------------------/etc/fstab------------------------
LABEL=/ / ext3 default 1 1
LABEL=/boot /boot ext3 default 1 2
/dev/hda6 swap swap default 1 0
none /proc auto default 0 0
none /dev/shm auto default 0 0
____________________________________
(forget about windows partition now)
when i mount them maually (from shell) it does fine
but not during bootup from fstab
i guess there is something wrong with fstab
someone please help me ... its been 3 days now installing KNOPPIX from scratch...
should help. this should also make the root partition be re-mounted writable on startup; it's meant to be mounted read-only first so that it can be fsck'd automatically.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.