Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem Repartioning 9gb drive 1

Status
Not open for further replies.

MikeLacey

MIS
Nov 9, 1998
13,212
GB
Win98 not recognising new partition size.<br><br>Hope someone can help me with this because it's driving me a bit nutty.<br><br>I would like to install RH Linux on a 9gb HD, sharing with Win98.<br><br>Using the latest version of Partition Manager and carefully following the instructions I have repartioned the HD (a model 80h) so that I have three partitions. 7Gb for Win98 annd the rest split for Linux and a swap partition.<br><br>My problem is that Win98 is not recognising the new partition size.<br><br>The Part FAQ says that to fix this I have to run scandisk again and that then it will recognise the new size.... But it doesn't.<br><br>I'd be grateful for any help and suggestions.<br><br>Mike<br><br><A HREF="mailto:michael.j.lacey@ntlworld.com">michael.j.lacey@ntlworld.com</A><br> <p>Mike<br><a href=mailto:Mike_Lacey@Cargill.Com>Mike_Lacey@Cargill.Com</a><br><a href= Cargill's Corporate Web Site</a><br>Please don't send me email questions without posting them in Tek-Tips as well. Better yet -- Post the question in Tek-Tips and send me a note saying "Have a look at so-and-so in the thingy forum would you?"
 
You don't want to use the MS partitioning program, 'cuz it will break things.&nbsp;&nbsp;Unless you like to install W98 a lot ;-)<br><br>Use a third party partitioning program or one of the Linux partitioning programs.&nbsp;&nbsp;Red Hat's disk Wizard and SuSE's Yast/Yast2 (and&nbsp;&nbsp;others) are good graphical tools, but if you need to get your hands in the guts, Linux fips what you need.<br><br>BE SURE THAT YOU HAVE DONE ALL YOU NEED to do to the W98 partition BEFORE you install LILO 'cuz otherwise W98 scandisk is guaranteed to trash LILO.&nbsp;&nbsp;And scandisk WILL RUN when it sees that the W98 partition is smaller.<br><br>Either install LILO AFTER W98 is TOTALLY happy with its new quarters, or install LILO as a DOS routine, loadlin (along with the appropriate autoexec lines).<br><br>Unless you have the VERY ABSOLUTE LATEST version of LILO or loadlin, you MUST install your Linux /boot partition such that ALL of it is below cylinder 1024.&nbsp;&nbsp;I repartitioned my 12.1 GB HD with W98 in place, giving W98 2.5 GB, leaving the rest for Linux.<br><br>DO NOT UNDER ANY CIRCUMSTANCES run W98 fdisk.&nbsp;&nbsp;Unlike its DOS 7.0 and earlier ancestors, it&nbsp;&nbsp;will trash everything in the W98 boot record and its partition.&nbsp;&nbsp;(Wisdom is gained thru experience =8[ - when I reworked the Linux partitions).<br><br>W98 won't recognize anything but drive C: (its &quot;native&quot; partition).<br><br>Maybe you knew most of this, but what the hey, it's all the same price ...<br> <p>Octalman<br><a href=mailto: > </a><br><a href= > </a><br>
 
Thanks for replying Octal.<br><br>I sorted my initial problem (I think) by making sure the boot sector size entry matched the partition table size entry. So far so good....<br><br>I made an install disk, using rawrite, and got right through to the last section - the loader. This refused to install on either the MBR or the boot sector. Ho Hum....<br><br>Stumped again now, Win98 loads and runs ok - apart from moaning about Bloodhound.MBR being detected - which I *very* much doubt.<br><br>Linux does not boot. Mind you I tested that by running Win98 fdisk, before I saw your post, and setting the linux partition to active.<br><br>Suggestions?<br> <p>Mike<br><a href=mailto:Mike_Lacey@Cargill.Com>Mike_Lacey@Cargill.Com</a><br><a href= Cargill's Corporate Web Site</a><br>Please don't send me email questions without posting them in Tek-Tips as well. Better yet -- Post the question in Tek-Tips and send me a note saying "Have a look at so-and-so in the thingy forum would you?"
 
Sorry to hear that.&nbsp;&nbsp;Been there.&nbsp;&nbsp;Done that.&nbsp;&nbsp;Don't want to do it again.&nbsp;&nbsp;Sorry, Bill, I dumped W98 after it crashed (again), taking the entire partition with it.&nbsp;&nbsp;Linux survived.<br><br>To fix:&nbsp;&nbsp;Make sure W98 is happy with its partition by defragging and running scandisk.&nbsp;&nbsp;Then, use a Linux tool to install LILO in the MBR (not the boot sector).&nbsp;&nbsp;Everything should be copasetic.&nbsp;&nbsp;If not, you can always boot from a floppy ;)<br><br>Actually, I think this will get you out of the woods. <p>Octalman<br><a href=mailto: > </a><br><a href= > </a><br>
 
Booting Linux from floppy for the moment, the RH install routine still merrily failing to install LILO - but there you go I guess. Will be trying to install LILO from Linux.<br><br>Thanks for your help Octal<br> <p>Mike<br><a href=mailto:michael.j.lacey@ntlworld.com>michael.j.lacey@ntlworld.com</a><br><a href= Cargill's Corporate Web Site</a><br>Please -- Don't send me email questions without posting them in Tek-Tips as well. Better yet -- Post the question in Tek-Tips and send me a note saying "Have a look at so-and-so in the thingy forum would you?"
 
Is the bootstrap loader not being loaded into the MBR or do you have a problem somewhere else?&nbsp;&nbsp;<br><br>If the LILO boot record isn't being loaded, your Linux /boot directory may be missing, defective or too small.&nbsp;&nbsp;A copy of the original boot record (only 512 bytes) is saved in a file in /boot.&nbsp;&nbsp;My /boot directory (which is actually in its own private partition) is 10 MB, but it is only 37% full with both the SuSE 6.2 kernel (2.2.10) and a 2.2.14 kernel which I compiled and installed.<br><br>We say LILO is loaded in the MBR (or partition boot record, as the case may be), but it is actually in /sbin - the MBR (or boot record) bootstrap loader takes you to where you want to go depending on the contents of /etc/lilo.conf (and your answer at boot prompt time).<br><br>You may e-mail me at <A HREF="mailto:killebrew@pan-tex.net">killebrew@pan-tex.net</A> if you like and think I may be able to help. <p>Octalman<br><a href=mailto: > </a><br><a href= > </a><br>
 
Just saw Karl (kb244) and Dave Hunter's exchange on e-mail addresses (blush).&nbsp;&nbsp;Well, e-mail can be faster, but the information exchanged doesn't get to the public - if the public is interested.<br><br>I had to switch from Mozilla to Netscape 4.7 'cuz Moz still has problems losing newlines.&nbsp;&nbsp;Anyway, here is some more info on the Linux boot process, for those who may be interested or might find it useful.<br><br>You have to run LILO manually, if the installation wizard doesn't do it, to tie everything together so the boot process will work.&nbsp;&nbsp;Any time /etc/lilo.conf, vmzlinuz (or bzImage) or System.map is changed LILO must be run for the change(s) to take effect.<br><br>Your Linux /boot directory should look something like this, except I added the 2.2.14 kernel (bzImage-2.2.14-3) to the original SuSE 2.2.10 kernel (vmlinuz) on May 4.&nbsp;&nbsp;My /boot directory is in its own private 10MB partition to minimize potential for damage and noncontiguous blocks.<br><br>-rw-r--r--&nbsp;&nbsp;&nbsp;231902 Sep&nbsp;&nbsp;4&nbsp;&nbsp;1999 System.map<br>-rw-r--r--&nbsp;&nbsp;&nbsp;177621 May&nbsp;&nbsp;4 11:38 System.map-2.2.14-3<br>-rw-r--r--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;512 Sep&nbsp;&nbsp;4&nbsp;&nbsp;1999 boot.0300<br>-rw-r--r--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4540 Jul 22&nbsp;&nbsp;1999 boot.b<br>-rw-r--r--&nbsp;&nbsp;&nbsp;499695 May&nbsp;&nbsp;4 11:38 bzImage-2.2.14-3<br>-rw-r--r--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;612 Jul 22&nbsp;&nbsp;1999 chain.b<br>-rwxr-xr-x&nbsp;&nbsp;&nbsp;&nbsp;71115 May&nbsp;&nbsp;4 11:43 ksymoops<br>-rwxr-xr-x&nbsp;&nbsp;&nbsp;&nbsp;71115 May&nbsp;&nbsp;2 22:17 ksymoops~<br>drwxr-xr-x&nbsp;&nbsp;&nbsp;&nbsp;12288 Sep&nbsp;&nbsp;4&nbsp;&nbsp;1999 lost+found<br>-rw-------&nbsp;&nbsp;&nbsp;&nbsp;19456 May&nbsp;&nbsp;4 11:55 map<br>-rw-r--r--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;620 Jul 22&nbsp;&nbsp;1999 os2_d.b<br>-rw-r--r--&nbsp;&nbsp;&nbsp;667293 Sep&nbsp;&nbsp;4&nbsp;&nbsp;1999 vmlinuz<br><br>The file boot.0300 (in this case, in general, boot.xxxx) is a backup of the &quot;original&quot; boot record &quot;before Linux.&quot;&nbsp;&nbsp;Unlike M$, Linux can restore the boot record it has replaced.&nbsp;&nbsp;All you have to do is ask politely.<br><br>The kernel file is compressed - vmlinuz is in zip (gz, not pkzip) format, while bzImage is in bzip2 format, which is more secure and takes up about 20% less room than an equivalent zip file.<br><br>The Red Hat 5.2 book is good, but I think&nbsp;&nbsp;SuSE's 6.2 book is better as far as installation (I have both RH 5.2 and SuSE 6.2).&nbsp;&nbsp;You may want to man lilo and man lilo.conf as these are the definitive descriptions of lilo and its configuration file.&nbsp;&nbsp;The info and man files for lilo (SuSE 6.2) are identical.<br><br>Windows - Where do you want to go today?<br>Mac - Where do you want to go tomorrow?<br>Unix - Been there.&nbsp;&nbsp;Done that.<br>Linux - Are you coming, or what?<br> <p>Octalman<br><a href=mailto: > </a><br><a href= > </a><br>
 
I will - I'll email you when I get home.<br><br>We can post the solution later...<br><br> <p>Mike<br><a href=mailto:michael.j.lacey@ntlworld.com>michael.j.lacey@ntlworld.com</a><br><a href= Cargill's Corporate Web Site</a><br>Please -- Don't send me email questions without posting them in Tek-Tips as well. Better yet -- Post the question in Tek-Tips and send me a note saying "Have a look at so-and-so in the thingy forum would you?"
 
What size is your W98 partition?&nbsp;&nbsp;And is your Linux swap partition hd1 or hd2?&nbsp;&nbsp;I'm guessing the kernel and map files in /boot are above cylinder 1024.&nbsp;&nbsp;If so, you will need to download LILO 21.4.3 (announced May 11, 2000) and assemble it yourself :[&nbsp;&nbsp;Check it out on freshmeat.net or download from <A HREF="ftp://sd.dynhost.com/pub/linux/lilo/" TARGET="_new">ftp://sd.dynhost.com/pub/linux/lilo/</A> or <A HREF="ftp://metalab.unc.edu/pub/Linux/system/boot/lilo/Of" TARGET="_new">ftp://metalab.unc.edu/pub/Linux/system/boot/lilo/Of</A> course that's hard to do if your new box can't communicate.&nbsp;&nbsp;Been there, done that.&nbsp;&nbsp;Maybe a $1.95 (+shipping) CD from Linux Central with the latest RH release? <p>Octalman<br><a href=mailto: > </a><br><a href= > </a><br>
 
Actually, RH 6.2 won't have LILO 21.4.3, since it was just announced.&nbsp;&nbsp;I don't know of anywhere to get binaries.&nbsp;&nbsp;I'm going to download it, but I haven't used the Linux assembler before ...&nbsp;&nbsp;This old dog is learning a lot of new tricks. <p>Octalman<br><a href=mailto: > </a><br><a href= > </a><br>
 
Assembler - yuk - I remember assembler (not fondly) <p>Mike<br><a href=mailto:michael.j.lacey@ntlworld.com>michael.j.lacey@ntlworld.com</a><br><a href= Cargill's Corporate Web Site</a><br>Please -- Don't send me email questions without posting them in Tek-Tips as well. Better yet -- Post the question in Tek-Tips and send me a note saying "Have a look at so-and-so in the thingy forum would you?"
 
If you have a SCSII drive, you can have up to 8 GB in /dev/sda0 and still be able to boot from /dev/sda1, but IDE drives will only allow 504 MB to 2 GB in /dev/hda0, depending on drive configuration, and still be Linux bootable, provided that /boot is in /dev/hda1 (This means that the swap partition must be in /dev/hda2 or higher, or that (/dev/hda0 + (/dev/hda1=swap)) must be meet the 1024 cylinder limit.)&nbsp;&nbsp;Obviously, with a 7 GB DOS/Win partition in /dev/hda0, you need LILO 21.4.3.&nbsp;&nbsp;I looked at the source and though there are a couple of parts written in assembler, they are includes in the C code that makes up most of LILO.&nbsp;&nbsp;Just run make to compile it.&nbsp;&nbsp;There is also a program included that peeks at your BIOS to see if it can handle booting from high cylinder numbers.&nbsp;&nbsp;As I recall, the tar.gz download file is about 500 KB.&nbsp;&nbsp;Well, I don't like MS/Intel assembler, either, but I enjoyed Motorola (and some other) assemblers. <p>Octalman<br><a href=mailto: > </a><br><a href= > </a><br>
 
Sounds like this is my problem.<br><br>hda0 - win 98 -&gt; cyl 1023<br>hda2 - linux 1024 -&gt; (can't remember)<br>hda5 - swap -&gt; rest of disk<br><br>Should have done some more reading before I installed - though I don't think, given the amount of space used in win98 partition, that I would have been able to do anything different really.<br><br>I am looking at loadlin - which seems interesting. Any experience of it?<br><br> <p>Mike<br><a href=mailto:michael.j.lacey@ntlworld.com>michael.j.lacey@ntlworld.com</a><br><a href= Cargill's Corporate Web Site</a><br>Please -- Don't send me email questions without posting them in Tek-Tips as well. Better yet -- Post the question in Tek-Tips and send me a note saying "Have a look at so-and-so in the thingy forum would you?"
 
Nope.&nbsp;&nbsp;Looked it over, but since LILO worked for me, didn't try loadline.&nbsp;&nbsp;I have re-read the writeup in the SuSE 6.2 manual and will e-mail a copy to you.&nbsp;&nbsp;With it and what you already have, maybe you can make it work.&nbsp;&nbsp;The boot-from-Windows option is a cinch.&nbsp;&nbsp;Setting up a boot menu for W98/DOS/Linux looked tricky, though, because the writeup was based on W95.&nbsp;&nbsp;What I saw in W98's config.sys etc files was a lot different from my experience with PC-DOS 7 and earlier.&nbsp;&nbsp;And W98's look empty compared to W95's, apparently because DOS has been pretty well merged into MS Windows. <p>Octalman<br><a href=mailto: > </a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top