topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Wednesday April 24, 2024, 12:59 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - saikee [ switch to compact view ]

Pages: [1]
1
Living Room / Re: Multibooting and Partitioning Experiments
« on: November 13, 2007, 03:15 AM »
Sorry I could only log onto this site at the home computer because the site is banned by my office network.

It is nice to talk to someone involved in the inner working of MS systems as I am not IT-related.  I don't mind the discussion at all as I don't think I know that much really.  That is why I always qualify myself by various statements and assumptions so that others in the know can step in if something not factual.  Like you I am interested in the technical side and just able to do it isn't good enough for me.

On the MBR part I think your description is correct as the Bios program only loads the MBR and it is really the code in the MBR that utilises the 64-byte partition table between the 447 and 510th byte.  I used the language loosely as though the Bios would hand over the information to the boot loader.  I suppose in a way it can be correct as once the MBR has been loaded the Bios activities ceases.

On the fat16 partition it is interesting because there are Type 6 for the normal one and type e for the one that use LBA.  I know the type 6 is supported in every MS system and I believe the Type e isn't but I could be wrong on this one.  Can you verify by booting the last official Dos (6.22?) floppy to see if your fat16 partition, created by Win98E, can be seen by it?

You may have a better explanation as you are close to these filing systems that pen drive suppliers adopt fat16 Type 6 for all products below 4Gb and switch to fat32 if the capacity is higher.  Must admit I always stick with the fat16 type 6 because that is what the Dos floppies are capable of handling.

On the VMware side my free version of an installed Linux inside a MS Windows is just a file.  I can't even from one Linux see another guest Linux under the same Host.  If you have done it from an boot up CD that may be something different or you have extra bits and pieces over and above the free VMware server software that I have.

In a real Linux as against a vitual machine one can access any other installed real Linux by mounting their partitions.  What is more one can "change root" into another Linux thereby able to work on another Linux internally.  I believe for someone like you I should describe it as using the kernel of Linux B in combination with a Bash terminal of Linux B.

The partition type is just the 5th byte in the 16-byte partition table but I don't think MS system use it publicly in the partition creation programs even though it is widely utilitised in the Unix-like systems.

Lastly I may as well learn something from you.  It is concerning install a "stand alone" MS system in a logical partition.

The way I understand the MS systems is they seem to share a common MBR up to and including XP and only get changed with Vista.  This is because I always restore a Win2k or xp MBR with a Dos 6.22 floppy and when it come to restore a Dos 6.22 MBR I use a XP installation CD.

I am sure there are difference but the main functionality is the same.

I read that MS MBR's function is primarily to search the 4 primaries and boots the one with the bootable flag switched on.  MS MBR doesn't care what the system inside and I have used this feature to make a XP's MBR to boot up Grub (host in a dta-only primary partition as I can use XP disk management to toggle the active partition).

Now only a primary partition uses the booting flag.  Although booting flag is availabe in the logical partitions but I am not aware any OS uses it.  The booting flag is also pretty loose in the logical partitions because unlike in the primaries where one partition toggled on will automatically toggling the existing one off.  For logical partitions we can set several of them active.  Linux of course never use the booting flag.

The other aspect of logical partition is one can create 63 partitions in a Pata disk and XP and Vista has no objection of mounting them (not 100% sure with Vista but XP has no problem).  Would a MS system installer be able to select any of these partitions for installation?

My puzzle is if a MS system can survive as a "stand alone" OS in a logical partition how does it boot itself?  Everything about its MBR say it cannot be done.

Here is the Microsoft own web page stating the limit of fat16.  I suppose if one can break this limit one can explain it too.

2
Living Room / Re: Multibooting and Partitioning Experiments
« on: November 11, 2007, 05:46 AM »
The PC standard as it exists today is just an overserved standard.  By that I mean every mobo you purchase has a Bios that will read off the first sector of the first hard disk it is asked to boot.  The Bios goes into the 446th to 51oth byte position to read off the 4 primaries.  Thereafter is up to the OS how to make use of the information.  This observed standard means if an OS like a Solaris or Linux can boot off a PC without inflicting damage to other OS in the same hard disk. 

If a partition happens to be fat32 which is supported by virtually all OSes then every OS can read/write its content. 

If someone comes along to make a MBR bigger than 512 byes then other OSes cannot co-exist with it and many just die eventually due to a lack of popularity.

The LBA is only way to address a big hard disk nowaday.  fat16 filing system has a maximum address of 2Gb and putting it beyond the first 4Gb area in the hard disk means no OS can access it.

Traditionally a MS system can only operate from a logical partition if a MS boot loader is available in a primary partition to boot it, unless the system is hacked so that it can boot directly from a logical partition as a stand alone system.

On the maximum number of partitions I have stayed away from the proprietary software because my interest is to have the systems that can co-exist with each other.  I am aware 256 primaries is no object by putting in a hard disk management layer.  One can use virtual machine too.  LVM is anther way but they all suffer limitation of needing a driver which cannot be put into every  operating system or boot loader.  What is good about LVM if a PC user cannot install a Vista inside it?  What is good about installing a Linux as a virtual machine inside a Windows host if that Linux cannot communicate with other Linux partition and read/write information?

LVM is used by Linux but not universally supported.  Some families of Linux use it and so the kernel and ram disk files are pre-packaged with its driver so that the distros can be installed inside a LVM.  Others recognise it only after the distro has been loaded but not before.  This make it impossible to install these distros into a LVM.  There are Linux that pride themself as small as possible and all unnecessary drivers are thrown away.

To me a large number of partitions are only useful if a pC user can install operating systems inside, otherwise they may just as well as subdirectories, as Linux and new MS Windows can play tunes with their ownerships.

3
Living Room / Re: Multibooting and Partitioning Experiments
« on: November 10, 2007, 02:49 AM »
I have Grub4Dos inside some Dos partitions.  Since I can load Grub virtually from anywhere the use of Grub4Dos is diminishing.  It does have other bits and pieces but I haven't put all of them to use yet.

Many applications are just loading a disk images into ram.  Just about every Linux Live CD has to do exactly that.

I don't own the PC standard but just use it like everybody else.  If there is a way to get more partitions out in the normal way then I would love to know.  One can purchase a partitioning management layer software to get 256 primaries apparently but it is not recognised by established systems.  LVM is not universally supported otherwise one can place an OS in every logical volume.

44 paritions suit users with large hard disks like 500Gb as every operating system can be comfortably fitted into a 25Gb space.

I never format a Grub floppy and rarely have a problem with anyone I made.  The dd command should destroy the floppy's partition table and so the end product should be identical.  This means the floppy should be reported as unformatted and there is no file inside because dd write the code directly onto the floppy sectors.

If you know dd you should know it can be used to clone any XP and Vista.

4
Living Room / Re: Multibooting and Partitioning Experiments
« on: November 09, 2007, 03:09 PM »
To make a Grub floppy

This is fully described in the Chapter 3.1 of the Grub Manual.  It requires you to copy two files; stage1 and stage2 into a floppy.  The copying command is "dd" which operates at a hardware level. 

Basically you find stage1, specify it as the input, nominate the floppy (fd0) as the output and write out a block of 512 bytes only once.
Then you write stage2, block size 512 byte (exact sector size) starting from the 2nd sector until the file stage2 is exhausted.

You can "source" the two Grub files from most of the Linux Live CD.  Any one form the Ubuntu, PCLinux, Knoppix, Fedora, Mepis, etc .  The only ones that do not have Grub is the Slax and Slackware families as they use the alternative Linux boot loader Lilo.

You boot up a Linux Live CD, click terminal and and obtain the root privilege by the "sudo su" command (works in most distro like Ubuntu and Knoppix).  You then ask Linux to tell you where stage1 is being stored.  You then change directory to it, drop a floppy into the drive and copy the two files into the floppy.  I am repeating the instruction with an installed Ubuntu below

sudo su
find / -name stage1
cd /usr/lib/grub/i386-pc
dd if=stage1 of=/dev/fd0 bs=512 count=1
dd if=stage2 of=/dev/fd0 bs=512 seek=1

The full response in the terminal looks like this

saikee@saikee-desktop:~$ sudo su
Password:
root@saikee-desktop:/home/saikee# find / -name stage1
/boot/grub/stage1
/home/saikee/big_iso/boot/grub/stage1
/home/saikee/big_iso/boot-berry/Setup/stage1
/usr/lib/grub/i386-pc/stage1
root@saikee-desktop:/home/saikee# cd /usr/lib/grub/i386-pc
root@saikee-desktop:/usr/lib/grub/i386-pc# ls
e2fs_stage1_5  jfs_stage1_5    reiserfs_stage1_5  stage2           xfs_stage1_5
fat_stage1_5   minix_stage1_5  stage1             stage2_eltorito
root@saikee-desktop:/usr/lib/grub/i386-pc# dd if=stage1 of=/dev/fd0 bs=512 count=1
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.278956 seconds, 1.8 kB/s
root@saikee-desktop:/usr/lib/grub/i386-pc# dd if=stage2 of=/dev/fd0 bs=512 seek=1
215+1 records in
215+1 records out
110132 bytes (110 kB) copied, 8.42257 seconds, 13.1 kB/s

In the above there were two sources for stage1.  Either one will do.

I also did a "ls" command which is identical to "dir" in Windows command prompt to show all the Grub files.

This Grub floppy can boot any installed operating system that has ever been invented on a PC.  I classify it as the most lethal booting weapon in the business.

This thread may be useful if you ever get lost in booting a PC system.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Linux uses a major and minor numbering system to define block devices and a hard disk of SCSI, Pata, Sata or USB type can have 16 device names.   Since one device name must be reserved for the whole of the disk, say sda, and there are 4 primaries that leaves 11 logical partitions possible.  In order to use logical partitions, even one, a primary partition must be given up to accommodate all the logical partitions inside.

sda1 to sda4 are reserved for primaries and every logical partition starts at sda5.  Linux names disks sda, sdb, sdc, sdd, sde, sdf, ......etc.  Before the 2.6.20 kernel changes both Pata and Sata can have a total of 256 devices.  Pata achieved it through 4 disks each 64 devices names whereas Sata did the same with 16 disks each has 16 device names.  I have reason to believe the 16 hard disks are still supported when the Pata disk has been grouped into the same SCSI/Sata/USB family.

The nice thing about Linux is you are free to do whatever you want as long as you go with the established convention.  Thus one can use trick to get 44 logical partitions out of a hard disk.  My second hard disk has 44 OSes inside working merrily.

5
Living Room / Re: Multibooting and Partitioning Experiments
« on: November 06, 2007, 02:27 AM »
Someone has drawn my attention to this thread,

Wonder what you guys make out of this?

I am in a hurry now but would make a comparison later on.

Recently I have to show someone in another forum about booting up 3 Dos and 5 Windows and explained in Post #70 of this thread.

I have not put MS systems into logical partitions though.

Pages: [1]