LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 03-24-2008, 03:42 AM   #1
Morocco4Linux
LQ Newbie
 
Registered: Sep 2006
Posts: 8

Rep: Reputation: 0
Help: how I make a virtual floopy disk? Booting Linux on Mobile Phone


Hi everybody,


I am trying to make a virtual bootable linux floopy to use it with a virtual machine jpc : "www-jpc.physics.ox.ac.uk" , it is a virtaul machine written in java and run also on mobile phones symbian.
Okay, what I want to do is to boot a small linux distributions which are an .img file
like "Fd Linux" or many others nulinux etc.. but the problem is I dnt know how to make a virtual node or floopy under linux. the floopy.img file wich come with jpc is a freedos img file and it boots well on my mobile! I wanted to replace that floopy.img freedos by a linux .img file but I dnt know how to make it bootable.. can you help?

to try what I mean you can download the jpc for mobile from here : "mosh.nokia.com/content/3F87BC10B48ADD1AE040050AEE0429F8"

thanx

Last edited by Morocco4Linux; 03-24-2008 at 03:54 AM.
 
Old 03-24-2008, 02:45 PM   #2
Morocco4Linux
LQ Newbie
 
Registered: Sep 2006
Posts: 8

Original Poster
Rep: Reputation: 0
hi all,
could you help please! I am checking my post every hour.. no reply yet
 
Old 03-25-2008, 01:22 PM   #3
Morocco4Linux
LQ Newbie
 
Registered: Sep 2006
Posts: 8

Original Poster
Rep: Reputation: 0
anybody home!?
 
Old 03-26-2008, 07:02 PM   #4
Morocco4Linux
LQ Newbie
 
Registered: Sep 2006
Posts: 8

Original Poster
Rep: Reputation: 0
hello!? where are linux professionals?? is my question so difficult!?

Last edited by Morocco4Linux; 03-26-2008 at 07:04 PM.
 
Old 03-26-2008, 07:15 PM   #5
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
The question is not clear. A "virtual floppy disk" sounds like something in the virtual machine. I suspect that what you want to do is create and/or mount a disk image using a loopback filesystem?
 
Old 03-27-2008, 03:57 PM   #6
Morocco4Linux
LQ Newbie
 
Registered: Sep 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by matthewg42 View Post
The question is not clear. A "virtual floppy disk" sounds like something in the virtual machine. I suspect that what you want to do is create and/or mount a disk image using a loopback filesystem?
thanx for your reply,
actualy I tried the mount command with the loop option before but it mounts only some .img files. the jpc is a virtual machine indeed and it accept a .img file but it should be bootable! jpc indeed boots freedos and I mounted the floppy.img file which come with it ( look at my second link in my 1st post above)and I can view add delette files from it and then unmount it.. the problem is: I want to boot a small linux distributions instead of freedos, the .img files what I found in the net are all comes with the rawrite.exe (for windows to create a bootdisk) or to use the command "dd .." but I want a way to use the dd command and create the result in a file instead of a /dev/fd0 because I dnt have diskete in my computer and its not really needed because I boot a virtual machine not a real machine itself. for example fdlinux & co in their README they said you have to use dd if=.. etc to create the bootdisk .. but me I want to create a virtual diskete ( a file which I will name it floppy.img and then pass it to jpc to boot it) to use it with jpc .. or maybe just need to use the mount command and then I have to add or do something to make the final .img file bootable. is it little clear now ?!

thanx

Last edited by Morocco4Linux; 03-27-2008 at 04:06 PM.
 
Old 03-27-2008, 07:23 PM   #7
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
Paragraphs would help :-)

When you say it boots the image which came with it, what do you mean? Is there some setting in the VM to select an image to use? If so, can you mount this image (which works with the VM) using a loopback filesystem in Linux?

I would imagine two explanations for your VM software not being able to boot other disk images:
  1. It doesn't understand the image file format which Linux distros use for floppy images (which is a byte by byte copy of the whole block device). If the image you got with the VM is not mountable with a loopback device inside Linux, this is probably the explanation.
  2. The VM will boot from images of DOS/VFAT filesystems and maybe others, but not EXT2, which is the filesystem which Linux distro floppy images tend to use.

In either case, I don't think this is so much a Linux issue as a question for the developer of the VM... ask them why you can't boot a Linux boot floppy. Some VMs don't fully implement a virtual machine, instead they make assumptions about the OS which is running and take shortcuts.
 
Old 03-27-2008, 09:11 PM   #8
Morocco4Linux
LQ Newbie
 
Registered: Sep 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by matthewg42 View Post
Paragraphs would help :-)

When you say it boots the image which came with it, what do you mean? Is there some setting in the VM to select an image to use? If so, can you mount this image (which works with the VM) using a loopback filesystem in Linux?

I would imagine two explanations for your VM software not being able to boot other disk images:
  1. It doesn't understand the image file format which Linux distros use for floppy images (which is a byte by byte copy of the whole block device). If the image you got with the VM is not mountable with a loopback device inside Linux, this is probably the explanation.
  2. The VM will boot from images of DOS/VFAT filesystems and maybe others, but not EXT2, which is the filesystem which Linux distro floppy images tend to use.

In either case, I don't think this is so much a Linux issue as a question for the developer of the VM... ask them why you can't boot a Linux boot floppy. Some VMs don't fully implement a virtual machine, instead they make assumptions about the OS which is running and take shortcuts.
The jpc can boot both linux and dos. in the links I gave there is the source code you can check it. the linux which come with it has a file called linux.img and it boot it. but is 10M quite big for a phone to boot it. thats why I choosed to boot a linux which has a size of a floopy like the file floppy.img ( freedos) which come with the jpc for mobile. the file should be named floppy.img because its hardcoded. but thats not a problem because you can change it in the source code and recompile it with any name. you should know that there are 3 zip file in their home page : jpcSource.zip ( source code for the whole virtual machine), jpcLinux.zip ( this one only binary class files with a linux.img file, thsis is an applet and you can load any img file you want from the applet menu) and then jpcmobile( from the second link in my 1st post , this one has also the class files and the file floppy.img which contain the freedos , this is a midlet).

my problem is : i didnt find any linux image .img file which boot automatically (like freedos floppy.img) without using that command dd if = .. etc which comes in the README of any small linux distro or mounting. and if so how I use the dd command or mount to create a bootable file .img which I will call it floppy.img and pass it to the jpc virtaul machine mobile..!
 
Old 03-28-2008, 04:21 PM   #9
Morocco4Linux
LQ Newbie
 
Registered: Sep 2006
Posts: 8

Original Poster
Rep: Reputation: 0
mathieu , did you try it?
 
Old 03-28-2008, 08:12 PM   #10
makyo
Member
 
Registered: Aug 2006
Location: Saint Paul, MN, USA
Distribution: {Free,Open}BSD, CentOS, Debian, Fedora, Solaris, SuSE
Posts: 727

Rep: Reputation: 74
Hi.

I also have a server without a floppy drive, and I needed to use a boot floppy to get BeOS 5 Pro installed. VMWare server has an option to boot from a floppy image (a virtual drive), so I simply copied the floppy image to a file on the VMWare host, told the new VM to use that file as a virtual drive, and it worked. The procedure in VMWare for creating a new virtual machine allows one to add devices -- disks, floppies, etc., -- which are then handled by the virtualization.

Sorry I don't know any of the mechanics behind this and I don't know about the VM system you are using, but perhaps it has a feature similar to VMWare that you have over-looked.

Best wishes ... cheers, makyo

(Sadly the BeOS is apparently too old to have drivers for the virtual video card, so I won't be using it, but it was a good learning experience, because apparently I'll be needing this virtual floppy scheme for installing GNU/Debian Hurd.)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to uninstall CentOS no floopy disk available trustnnone007 Linux - Software 10 07-02-2009 12:57 PM
How to boot using floopy disk ckamheng Mandriva 1 05-12-2005 02:28 AM
floopy boot disk on FC3 santiago79830 Fedora 3 03-07-2005 11:06 AM
dual boot up, only red hat with floopy disk deca Linux - Software 3 07-23-2003 01:13 PM
How to make a boot floopy uttamsaxena Linux - Newbie 2 07-23-2001 11:52 PM


All times are GMT -5. The time now is 03:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration