On Sat, Dec 29, 2001 at 10:19:12PM +0530, shyamk @ eth . net wrote: > I tried to help a friend of mine, with a 20 GB Hard Disk, > to get a dual-boot Win-Lin machine. He did not have time, > so I chose RedHat7.0 >
The reason for choosing RH-7.0 seems odd. What would you have chosen if he had the time and the inclination ? > I deleted all partitions on his Hard disk, then : > 1) Created a 2GB DOS Primary Partition. > 2) Installed Red Hat 7.0 which means, of my own choice, I gave > it a total of 4 GB > 3) Yes, the dual-boot is fine, you get Linux, you get Win 98. > 4) The next thing I do is "to get logical partitions for Windows". > 16 GB still remains un-allocated. > 5) I create partitions for Windows from what is shown as free > space in cfdisk. If you have done a full re-install of both systems, the problem obviously lies in your partitioning. It is much better to have a partitioning plan before you proceed and do it in one go under Linux fdisk. Personally, I am biased towards the old linux fdisk and depreciate both cfdisk and disk-druid. You may like to have a look at the following URL for initial partition- ing of a Win-loaded machine for dual boot: http://geocities.com/usmbish/hdi.html > 6)I guess I had the following options : > 0B Win95 FAT32 > 0E Win95 FAT16 (LBA) > 0F Win95 Ext'd (LBA) > for making those Windoze partitions. > 7)I chose either 0B or 0E but not 0F. > 8)The "D:" stuff came right. What are those partitions ? Primary or extended logicals ? The sysmptoms you state below seem to have arisen from a extended-logical conflict. Kindly give an output of fdisk -l /dev/hda. It is diffi- cult to appreciate things like D:, E: and F:. They make little sense per se. Do NOT run Windows fdisk after partitioning has been done under Linux ... they spoil things. > 9) But when I made 2 more partitions (I chose 4 GB for > the new partition1 and 5GB for the new partition3) - > a very strange thing happened : Windoze showed "E:" > and "F:" alright , but they were exactly the same ! > All files you have in "E:" , you have on "F:" ,etc. > They were the same even in size ! How did you make these partitions ? Obviously the parti- tion table info on the Extended, pointed to the same place and M$ picked up the place where they were pointed to. > > 10) This obviously meant one thing : After making "D:", > then I tried to make 2 more partitions, Actually, > only one was made --- while the other was unseeable > space! > How did you make this D: ? All space is "seeable" under linux fdisk ! > 11) I used the Windoze Boot Floppy and fdisk-ed, and learnt > that all the 16 GB was an extended partition ! Then > where had the 20 Gb -2 - 4-" 4 " =10 GB gone ? > M$ fdisk can create only 1 Primary partition, and the rest would be extended. If you run M$ fdisk after doing a Linux fdisk, you are likely to roger the whole partition table info that you created under Linux. Keeping an extended partition as Type 5 is good enough. To mark it M$-Extended it has to be 0f only. 0b, 0c and 0e are NOT extended partition markers. 0e is for 16-bit LBA. > > Should I have chosen 0F while making "D:" ? > Under Linux, there is nothing called C:, D: etc. Re-partition the hard disk all over again under linux fdisk. Keep /dev/hda1 Primary as 0c (W32 LBA) ... it will show up as C: under Win9x. Keep /dev/hda2 as Primary as Type 83 (Win will NOT see this at all). Keep /dev/hda3 as Primary (Type 83) in case you want a second distro installed at a later stage. Win will NOT see this as well. Keep /dev/hda4 as Extended (Type 5). It can be used both by Linux and Win. Make logical partitions hda5 to hdaN (as many as necessary), and mark these as 0c. You may opt to keep an odd extended-logical partition 0e (16 bit). Ensure that you keep one extended-logical for Linux swap (Type 82). Your D: will be the first partition seen with a valid M$ id that you have made. It will NOT be hda2 or hda3. hda4 would be the mother extended ... keep this Type 5 only. Your D: by all probabilities would be hda5 if you mark the first extended- logical with a valid M$ identifier (0c or 0e). HTH Bish. -- : ####[ Linux One Stanza Tip (LOST) ]########################### Sub : iptables tutor LOST #091 If u want to know more about iptables present in kernel 2.4.x point your browser to the following link :- http://people.unix-fu.org/andreasson/index.html ####<[EMAIL PROTECTED]>######################################## : _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
