Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
11-04-2009, 12:09 PM
|
#1
|
LQ Newbie
Registered: Oct 2009
Posts: 24
Rep:
|
two kernel in one operating system
I want to create a new kernel in operating system(virtual kernel) is it possible ?
that is can a virtual kernel can be created so as any operating system of any file system will be able to run other file system .
thank you
|
|
|
11-04-2009, 12:35 PM
|
#2
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
I think what you are looking for is some kind of virtualization environment---eg Xen, Qemu, VirtualBox, etc. Once you create a virtual machine on the host, you then install an OS of your choice. (But not just a kernel---you need a complete (if minimal) OS.
a kernel by itself does not do much---it simply sets up all the data structures and waits for instructions (typically from the shell)
|
|
|
11-04-2009, 12:48 PM
|
#3
|
Member
Registered: Nov 2004
Location: San Bernardino, CA
Distribution: Gentoo, Arch, (RedHat4.x-9.x, FedoraCore 1.x-4.x, Debian Potato-Sarge, LFS 6.0, etc.)
Posts: 261
Rep:
|
I'm not sure I understand exactly what you are asking. Are you talking about creating a kernel that will allow any OS to access a filesystem?
For a quick breakdown of what I know:
- You can create a kernel within a running linux kernel/OS.
- You can create a kernel for another operating system/architecture within a linux OS.
- You can switch to another kernel from within a running linux kernel. (Not recommended, but can be done.)
- You can start the running of another kernel inside a virtual space within a running linux kernel.
- If you start another OS/kernel inside a virtual space, you are limited by the operating system's capabilities and sometimes by the virtual environment software as to what the virtual kernel/OS can interact with.
As Pixellany said, you have many options for virtualization software, but you will likely need more than just a kernel.
I hope these answer your question.
Let us know.
|
|
|
11-04-2009, 03:19 PM
|
#4
|
LQ Newbie
Registered: Oct 2009
Posts: 24
Original Poster
Rep:
|
thanks for the reply
pixellany you are right,
i'm confused about, it i want to create a virtual platform so that the pen drive(with any file system) inserted on any operating system can be read .
for that i read that if a new kernel is created then there it is possible to make read of any file system we want.
please explain more about it and from where to start with.
what step should i take first to start with ..
|
|
|
11-05-2009, 12:17 PM
|
#5
|
Member
Registered: Nov 2004
Location: San Bernardino, CA
Distribution: Gentoo, Arch, (RedHat4.x-9.x, FedoraCore 1.x-4.x, Debian Potato-Sarge, LFS 6.0, etc.)
Posts: 261
Rep:
|
Well,
Yes, linux is able to access nearly every filesystem in existence if it has the driver compiled as a module or into the kernel. No need to necessarily go into a virtual OS unless there is another reason you need the other OS accessible there.
I would recommend starting with figuring out exactly what you want to do with the pendrive and where you are going to use it. Are you going to plug it into a Windows machine as well? A Mac? Something else?
If the pendrive is going to get plugged into a Windows machine for copying files across, then you will need to format it with a FAT32 filesystem. That way it will still be recognized and accessible from a Windows machine. I think Macs can access FAT32/VFAT filesystems, as well.
On the linux side, if your current install of linux is not already built with it, you will need to compile the new kernel with "VFAT (Windows-95) fs support". You will find that option in the menuconfig under File systems --> DOS/FAT/NT Filesystems. After you have that built and running, you just need to mount the pendrive onto your filesystem.
If the pendrive is just going between a Mac and a linux box, then you can let the Mac format the pendrive and then compile your kernel with "Apple Macintosh file system support" and "Apple Extended HFS file system support" which you find under File systems --> Miscellaneous filesystems in the menuconfig.
Now, I don't know what distro/version of linux you are running, but most distros have some documentation on building a new linux kernel. In the distro I use, Gentoo, building a new kernel specifically for your machine is a standard part of it's installation.
A pretty good tutorial on configuring and building a new kernel is at linux.com.
HTH, and if you have more questions, let us know.
|
|
|
12-04-2009, 07:05 AM
|
#6
|
LQ Newbie
Registered: Oct 2009
Posts: 24
Original Poster
Rep:
|
Quote:
Originally Posted by ShadowCat8
Well,
Yes, linux is able to access nearly every filesystem in existence if it has the driver compiled as a module or into the kernel. No need to necessarily go into a virtual OS unless there is another reason you need the other OS accessible there.
I would recommend starting with figuring out exactly what you want to do with the pendrive and where you are going to use it. Are you going to plug it into a Windows machine as well? A Mac? Something else?
If the pendrive is going to get plugged into a Windows machine for copying files across, then you will need to format it with a FAT32 filesystem. That way it will still be recognized and accessible from a Windows machine. I think Macs can access FAT32/VFAT filesystems, as well.
On the linux side, if your current install of linux is not already built with it, you will need to compile the new kernel with "VFAT (Windows-95) fs support". You will find that option in the menuconfig under File systems --> DOS/FAT/NT Filesystems. After you have that built and running, you just need to mount the pendrive onto your filesystem.
If the pendrive is just going between a Mac and a linux box, then you can let the Mac format the pendrive and then compile your kernel with "Apple Macintosh file system support" and "Apple Extended HFS file system support" which you find under File systems --> Miscellaneous filesystems in the menuconfig.
Now, I don't know what distro/version of linux you are running, but most distros have some documentation on building a new linux kernel. In the distro I use, Gentoo, building a new kernel specifically for your machine is a standard part of it's installation.
A pretty good tutorial on configuring and building a new kernel is at linux.com.
HTH, and if you have more questions, let us know.
|
in simple words i just want the ext2 format to be detected on "WINDOWS".
how it is possible ?
as i think
if a kernel same as linux is installed on windows (if possible)
then any file system detected by linux can be detected by linux.
and if there is another way for it then just suggest me.
and i know that there are softwares present for windows to detect file system of linux(i.e ext2ifs) but what i'm thinking is this right or wrong?
|
|
|
12-04-2009, 07:54 AM
|
#7
|
Moderator
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,973
|
Hi,
Quote:
Originally Posted by kaushalsingh
in simple words i just want the ext2 format to be detected on "WINDOWS".
how it is possible ?
as i think
if a kernel same as linux is installed on windows (if possible)
then any file system detected by linux can be detected by linux.
and if there is another way for it then just suggest me.
and i know that there are softwares present for windows to detect file system of linux(i.e ext2ifs) but what i'm thinking is this right or wrong?
|
You are not going to be able to replace the M$ Windows kernel with compiled Linux kernel(s). You seem to be mixing apples and oranges here!
If you are aware of software that would read a 'ext2' filesystem on M$ Windows then why the query? 'GNU/Linux <> M$ <> GNU/Linux' is doable but I would look at 'GNU/Linux <> GNU/Linux <>M$' or 'GNU/Linux <> M$'.
If you want to create a VM host on a GNU/Linux that you could load a client (M$ Windows XP,Vista) then that's doable. Then the sharing would be possible.
|
|
|
12-06-2009, 09:06 AM
|
#8
|
Senior Member
Registered: Mar 2008
Location: Cyberspace
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,351
Rep:
|
To make an OS read a particular partition type, you don't need 2 kernels, at least in the Linux way of doing things- merely support for both in the 1 kernel that you have.
It's been a while, but I think I distinctly remember reading ext2 drives under Windoze, so - there you go, it's not the Windoze way of doing things either.
|
|
|
12-06-2009, 09:23 AM
|
#9
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
I am not sure we are going anywhere in the thread.
I'd rather try to describe what exactly do you want to do without technical words (because you are mixing concepts, and making an improper use of the language, so it's very hard to guess at all what do you exactly want to do). There's no disrespect intended in my words, we all have been there at some point to a bigger or lesser extent.
Describe the situation, what OSes do you have installed, what do you exactly want to do? Please, use mundane words that you can handle well and accurately.
|
|
|
12-06-2009, 03:35 PM
|
#10
|
Moderator
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,973
|
Hi,
I think the OP has abandoned the thread.
|
|
|
All times are GMT -5. The time now is 04:44 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|