LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Linux on a logical partition? (https://www.linuxquestions.org/questions/linux-hardware-18/linux-on-a-logical-partition-95649/)

raid517 09-22-2003 06:29 PM

Linux on a logical partition?
 
Hi, quick question. Is it possible to install any part of Linux on a Logical partition? That is, / swap or /boot, or whatever?

All replies are appreciated.

Q

quatsch 09-22-2003 09:42 PM

yes. no problems whatsoever.

raid517 09-23-2003 01:14 AM

You mean any part, without restrictions? All my partitions even?

Q

PS what is the physical limit for harddrives? I mean I have a disk on my second PC which is 120 GB in size, 30GB of that is given over to Windows (for home worker compatability reasons) 200MB is given over to /boot 514MB is given to Swap, I would like to give my / partition 30GB, which leaves roughly 60GB to play with, which I would like to use for storage and secure backup.

I have tried various partitioning schemes but have had mixed results. Through trial and error I have found it is possible to have 3 primary partitions and two logical partitions on the same disk (any other methdology I tried simply failed) however it seems important to create the logical partitions first, or at the front of the disk. Is this accurate, or is there a better way to do things?

On another note, on my new secondary PC, for some weird reason my primary master harddrive is listed in Linux as /dev/hdc, instead of the more usual /dev/hda. This means my disk if I set it up this way would be /dev/hdc1 -> /dev/hdc5. My question is, is this normal, and how do I configure grub to reflect this unusual state of affairs. (That is do I still tell grub to look on the first partition of my first disk 0,0 for /boot and my kernel? Or should it be 0,2?). My suspicion is that there are two traces on this motherboard for serial ATA harddrive connectors. However they have been ommited, as apparently Epox are awaiting delivery of a new Southbridge from Via to fully support this feature. So that would give /dev/hda /dev/hdb for serilal ATA and with the two conventional IDE channels, this would account for /dev/hdc and dev/hdd (if I had one). Does this sound accurate, or might there be another reason for it?

Your input is welcome.

linuxmanju 09-23-2003 01:48 AM

Its possible as long as u create proper mount point entries in the /etc/fstab...

aaa 09-23-2003 07:30 AM

It's possible for all partitions, not sure about the /boot though.
The grub name for /dev/hdc would probably be (hd3). /dev/hdc1 would be (hd3,0), and /dev/hdc5 would be (hd3,4). Grub has a find command that will let you find which partition has certain data on it.
You can only have up to 4 primary/extended partitions on a hard disk. Extended partitions only carry logical partitions, and each extended partition can hold up to 11 logical partitions.

linuxmanju 09-26-2003 02:01 AM

Its possible for /boot as well...
provided the kernel has builtin support for that perticular partition type and fs system (..I mean not as a module )...

or simply u can create one initrd to achive that if its compiled as a module..

raid517 09-26-2003 02:05 AM

How do I create an initrd? I have a script that does it, but I want to work out how to do it manually so it will scan for and find any hardware changes at boot time. Also you say grub has a find command. How can I use it to see what grub makes of my current configuration?

Q

bmahesh 09-26-2003 07:37 AM

hi,
to create initrd

mkinitrd /boot/initrd-***.img 2.4-***

* represents versions


All times are GMT -5. The time now is 01:59 PM.