Re: Re: Re: Installing on a logical DOS partition

2002-07-25 Thread Siegbert Baude

[indentation recovered]

Hi Piyush,

Jud wrote:
 I can think of two alternatives.  (There may well be
 others.)  The first is to delete the DOS logical
 partition either with DOS fdisk or with a utility
 such as Partition Magic or the (cheaper and IMO
 excellent) BootitNG from TeraByte Unlimited.  Then
 using the partitioning utility, resize the extended
 partition to leave room for your FreeBSD install.

Piyush wrote:
 yep I got what you were saying...I picked up Bootithere's
 what my hdd looks like...
 c:4777 Mb fat-32
 extended dos  143126Mb
 Linux d:   2502Mb  fat-32..(to be used later)
 Multimedia e:   8801MB fat-32
 Backup f: 1004Mb fat-32
 OS g:2008MBfat-32(here's where i want to
 install FBSD.)

 When I delete the OS(g:).(thro' bootit.) the space
 appears as free space...how do I resize my Extended Dos
 partition...thro bootit.i tried the resize option on the
Extended partition but
 wasn't sure what to do there were 4 boxes (divided into 2
 parts)..
 here's what they said..
 Beginning
   Free space Outside   _ Mb(we are supposed to fill in the size in
 Mb...)
 Free space Inside_ Mb
 End
   Free space Outside   _ Mb
 Free space Inside_ Mb
 .the problem is that I don't want to experiment cause ..I don't
 want to lose any data.
 and also that I'm not sure on what exactly to do...if
 you'd just tell me how to go about doing this I'd be grateful


O.k., when I answered your question, I assumed you already have a
working Linux installed. Seems this is wrong. I can't help you with
bootit and I wouldn`t trust its calculation from MB to disk block
numbers as long as there is no possibility to check them exactly. If
this program decides to calculate this numbers wrong (think of the
MB=1024 kB or MB=1000kB problem) you endanger your information on
partition f: . If you want to be sure either get more information about
bootit or go the Linux way, by just downloading a mini-Linux
(http://www.toms.net/rb/) on a single diskette. This is all you need to
do the steps I described in my previous mail. Don`t hesitate to ask
again, this is a dangerous area.

Ciao
Siegbert



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Installing on a logical DOS partition

2002-07-23 Thread Siegbert Baude

Hi Piyusch,

Piyush wrote:
 The program shows the primary dos partition and extended dos partition
but
 not any logical partitions under the extended partition..the
logical
 partition on which I wish to install Fbsd is the last one...if I
delete
 a 'slice' of a particular size will fbsd delete any other partitions?

Jud wrote:
 The second alternative might work if you have Linux
 handy and it groks Windows logical and extended
 partitions (I don't know anything about Linux).  Try
 deleting the DOS partition, changing it to a
 Linux partition, and see if FreeBSD understands it.
 If it does, install there.

This way will work, but be very careful, you are operating on the heart
of your hard disk management.
So if you have any precious data on this disk: Backup first, make sure
you can retrieve your data from these backups!

So then in Linux call your fdisk like:

fdisk /dev/hda

change the display of the units with the u command as it is easier to
handle LBA block numbers than CHS numbers. Type p and write down all
the numbers. This will enable you to restore the state of your hard
disk, if anything goes wrong. Changing the MBR doesn`t actually destroy
your data, but can make it impossilbe to access it anymore. If you
exactly restore the information you just wrote down, it is possible to
regain access.

You were lucky so far, as the partition you want to use is the last in
your extended partition. This makes it easy to reduce the size of the
extended partition and reuse the gained space for a primary partition.

So if your layout is for example like:

primary partition 1: LBA 1 - LBA 1
extended partition: LBA 1 - LBA 4
logical partition 1: LBA 1- LBA 2
logical partition 2: LBA 2- LBA 3
logical partition 3: LBA 3- LBA 4

Maybe the beginning of logical partition 1 is actually on 10001 (one
block needed to write the EMBR), but this is not important. Just use the
numbers as you have them now.


Now you want to use logical partition 2 then you have to get to the
following layout:

primary partition 1: LBA 1 - LBA 1
extended partition: LBA 1 - LBA 3
logical partition 1: LBA 1- LBA 2
logical partition 2: LBA 2- LBA 3
primary partition 2: LBA 3- LBA 4

You get the idea?

So the first thing is to delete logical partition 3 (Linux fdisk would
probably show this as partition 7). Then you have to resize the extended
partition, i.e. adjusting the end block from 4 to 3. I don't
know, if Linux fdisk will allow this directly or if you have to delete
all the logical and extended partitions first and then recreate them
with the correct numbers. Just try, there will be no harm, if you just
quit the fdisk with q. Only if you hit w the changes are actually
written to disk!
If you have the correct values for the extended partition and logical
partition 1 and 2 create a new primary partition 2 with n and give it
all the available space you just freed by deleting logical partition 3.
To be sure you can change the type to FreeBSD, but I believe FreeBSD
sysinstall will recognize the primary partition independent of its type.
So it should be possible to install FreeBSD there now.

If what I wrote is not clear to you, ask first before dong dumb things.
Maybe this is a good time to pay your local guru a beer to accompany
your steps. :-)

BTW, it is possible to use logical partitions  as FreeBSD mount devices,
but you have to do all the magic by hand, as the tools don`t support
this.

And final note: In FreeBSD DOS/Linux partitions are called slices. Such
a slice is then separated into FreeBSD partitions (no DOS/Linux
equivalent exists) with sysinstall. FreeBSD partition c is the complete
disk, a ist the partition which contains the / mount point, b is swap
space. So you can use d and up for /var, /usr, ... mount points, if you
want.

Ciao
Siegbert


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Installing on a logical DOS partition

2002-07-22 Thread Piyush



Hi,
I have a logical DOS partition(e:),on which I 
wanted to install FREE-BSD,I didn't know how to go about selecting this 
partition as the partition on which I wish to install FREE-BSD during the 
install process,can you please tell me how I could do this or any resource 
which(on the WEB) would help me on this front.
Thanx in advance,
Piyush


Re: Re: Installing on a logical DOS partition

2002-07-22 Thread Jud



-Original Message-
From: Piyush [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Date: Tue, 22 Jul 1997 23:14:53 +0530
Subject: Re: Installing on a logical DOS partition


  - Original Message - 
  From: Joe  Fhe Barbish 
  To: Piyush 
  Sent: Monday, July 22, 2002 10:44 PM
  Subject: RE: Installing on a logical DOS partition


  FBSD does not install into DOS partitions. During the FBSD install it will show you 
the primary hard drive. If the dos partition is on the primary HD you will have to use 
commands from the screen that displays the HD, to delete the DOS partition and 
allocate the FBSD slice to that free space.  





   Isn't it possible to use the space in the DOS partition for FBSD,I dont mind 
formatting it as 165(the FBSD filesystem),i just don't know how to allocate space on 
my hard-disk for freebsd is this possible(keeping my Windows primary partition which 
stores Windows..)..and if possible how? I've already installed 
Linux(Red-hat,mandrake,suse)and I was thinking on those lines where you can ask Linux 
to use a particular partition for it and then format it to ext2 and run Linux...Is 
something like this possible thro' Fbsd?

  Thanx..

  Piyush

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

It amounts to exactly the same thing - when the
installation is done you'll have a FreeBSD slice
where the DOS partition was.  You'll be shown
a screen during the installation that lists the
partitions (Windows language) or slices (FreeBSD
language) on your machine, which will show an area
on the disk being used for DOS.  First delete the
DOS partition, then create a FreeBSD slice in the
emptied space (it's very quick and simple).  Then
proceed with the rest of the installation.

Jud







To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Re: Re: Installing on a logical DOS partition

2002-07-22 Thread Jud



-Original Message-
From: Jud [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: Mon, 22 Jul 2002 17:31:00 -0400
Subject: Re: Re: Installing on a logical DOS partition



-Original Message-
From: Piyush [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Date: Tue, 22 Jul 1997 23:14:53 +0530
Subject: Re: Installing on a logical DOS partition


  - Original Message - 
  From: Joe  Fhe Barbish 
  To: Piyush 
  Sent: Monday, July 22, 2002 10:44 PM
  Subject: RE: Installing on a logical DOS partition


  FBSD does not install into DOS partitions. During the FBSD install it will show you 
the primary hard drive. If the dos partition is on the primary HD you will have to use 
commands from the screen that displays the HD, to delete the DOS partition and 
allocate the FBSD slice to that free space.  





   Isn't it possible to use the space in the DOS partition for FBSD,I dont mind 
formatting it as 165(the FBSD filesystem),i just don't know how to allocate space on 
my hard-disk for freebsd is this possible(keeping my Windows primary partition which 
stores Windows..)..and if possible how? I've already installed 
Linux(Red-hat,mandrake,suse)and I was thinking on those lines where you can ask Linux 
to use a particular partition for it and then format it to ext2 and run Linux...Is 
something like this possible thro' Fbsd?

  Thanx..

  Piyush

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

It amounts to exactly the same thing - when the 
installation is done you'll have a FreeBSD slice 
where the DOS partition was.  You'll be shown 
a screen during the installation that lists the 
partitions (Windows language) or slices (FreeBSD 
language) on your machine, which will show an area 
on the disk being used for DOS.  First delete the 
DOS partition, then create a FreeBSD slice in the 
emptied space (it's very quick and simple).  Then 
proceed with the rest of the installation.

Jud

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


My apologies, Piyush, I may have steered you wrong.
I failed to take sufficient note of the fact that
you're speaking of *logical* DOS partitions.  Start
the install (you can cancel out of it) and see if the
DOS partition is shown in the list of
slices/partitions.  If it is, you're good to go.  If
not, them I'm afraid you'd need to do some reworking
of your partitions/slices with a program like
Partition Magic or (less expensive but IMHO excellent)
BootitNG from Terabyte Unlimited.

Jud


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message