fdisk & fat32

fdisk & fat32

Post by Ron J Theriau » Mon, 03 Aug 1998 04:00:00



Help,

RH 4.2 fdisk cannot repartition my drive (win95 was pre-installed).
Apparently MS changed the *(&^$ filesystem in mid release.
Is there a version of linux which can repartition a fat32 drive?

--
Ron Theriault :  CS Department, Texas A&M Univ.            

"Victimless crime" is a euphemism for "political crime".

 
 
 

fdisk & fat32

Post by Rod Smi » Mon, 03 Aug 1998 04:00:00


[Posted and mailed]



Quote:> Help,

> RH 4.2 fdisk cannot repartition my drive (win95 was pre-installed).
> Apparently MS changed the *(&^$ filesystem in mid release.
> Is there a version of linux which can repartition a fat32 drive?

What precisely do you want to do?  Linux's fdisk can only add and delete
partitions, and the filesystem on the partition is irrelevant to Linux's
fdisk, so I find it hard to believe that you can't delete your existing
partition(s) using Red Hat 4.2's fdisk.  If you want to RE-SIZE your
partition without destroying its contents, you do *NOT* want to use
fdisk, since fdisk was never designed to do this.  Instead, you need a
FAT-32-capable version of FIPS.  This comes with Red Hat 5.1, and can be
obtained from various sources by now (including Red Hat's ftp site and
its mirrors).  The last I checked, though, this version of FIPS could
handle partitions of type 0x0b, but not 0x0c, so you may or may not be
able to use it on your system; you'll just have to try it to be sure.
Another option would be to buy the commercial program Partition Magic,
which can handle FAT-32 partitions and is much more flexible than FIPS.
PowerQuest (which makes Partition Magic) apparently also has an ext2
resizer, though it's currently available only as a separate download to
registered Partition Magic 3.0 owners.

--
Rod Smith

http://www.users.fast.net/~rodsmith
NOTE: Remove the digit and following word from my address to mail me

 
 
 

fdisk & fat32

Post by Chris Se » Mon, 03 Aug 1998 04:00:00


you miight take a look at the actuall size of the FAT32.   As I
understood things (in my limited way), fdisk can only create a partion

on the disk it moust be resized first.  I found that I had to resize my
FAT partitions from windoze before I could use (linux) fisk to created
new ones for linux.  You can also use the FIPS utility that shipps with
most(?) linux dists to resize the FAT32 part.

> Help,

> RH 4.2 fdisk cannot repartition my drive (win95 was pre-installed).
> Apparently MS changed the *(&^$ filesystem in mid release.
> Is there a version of linux which can repartition a fat32 drive?

> --
> Ron Theriault :  CS Department, Texas A&M Univ.

> "Victimless crime" is a euphemism for "political crime".

 
 
 

fdisk & fat32

Post by LEONARD Danie » Tue, 04 Aug 1998 04:00:00


back your stock up, refdisk and reformat, then reinstall.

I suggest you use DOS partition under 512MB so the block size will be 8K .

-------------
Daniel Lonard
Computer Science Student                  "Anything worthwhile takes time"
Universit de Montral                       -Phong in Enzo the Smart, Reboot
http://www.jsp.umontreal.ca/~leonard


) Help,
)
) RH 4.2 fdisk cannot repartition my drive (win95 was pre-installed).
) Apparently MS changed the *(&^$ filesystem in mid release.
) Is there a version of linux which can repartition a fat32 drive?
)
) --
) Ron Theriault :  CS Department, Texas A&M Univ.            

)
) "Victimless crime" is a euphemism for "political crime".
)
)

 
 
 

fdisk & fat32

Post by Tom Pfeife » Tue, 04 Aug 1998 04:00:00



> PowerQuest (which makes Partition Magic) apparently also has an ext2
> resizer, though it's currently available only as a separate download to
> registered Partition Magic 3.0 owners.

Yes, it's called resize2fs. I have it, but haven't tried it out yet.
What it does is resize the ext2 file system but not the partition - so
you have to resize the partition itself in a separate operation either
before or after you use the resizer - depending on whether you are
expanding or shrinking the file system.

Version 4 of PM, due out this month, will apparently be able to resize
ext2 partitions.

Tom

 
 
 

fdisk & fat32

Post by Tom Pfeife » Tue, 04 Aug 1998 04:00:00


For those interested, here's the man page for resize2fs, expalining how
to use it:

RESIZE2FS(8)                                         RESIZE2FS(8)

NAME
       resize2fs - ext2 file system resizer

SYNOPSIS
       resize2fs [ -d debug-flags ] [ -f ] [ -F ] [ -p ] device [
       size ]

DESCRIPTION
       The resize2fs program will resize ext2 file  systems.   It
       can  be  used  to  enlarge  or  shrink an ext2 file system
       located on device so that it will have  size  blocks.   If
       the  size  parameter  is not specified, it will default to
       the size of the partition.  The size parameter  may  never
       be larger than the size of the partition.

       The resize2fs program does not manipulate the size of par-
       titions.  If you wish to enlarge a  filesystem,  you  must
       first  make sure you can expand the size of the underlying
       partition first.  This  can  be  done  using  fdisk(8)  by
       deleting  the  partition  and  recreating it with a larger
       size.  When recreating the partition, make sure you create
       it with the same starting disk cylinder as before!  Other-
       wise, the resize operation will certainly  not  work,  and
       you may lose your entire filesystem.

       If  you  wish  to  shrink the an ext2 partition, first use
       resize2fs to shrink the size of filesystem.  Then you  may
       use  fdisk(8)  to  shrink the size of the partition.  When
       shrinking the size of the partition, make sure you do  not
       make  it smaller than the new size of the ext2 filesystem!

OPTIONS
       -d debug-flags
              Turns on various resize2fs debugging  features,  if
              they  have  been  compiled into the binary.  debug-
              flags should be computed by adding the  numbers  of
              the desired features from the following list:
                   1    - Print out all disk I/O
                   2    - Debug block relocations
                   8    - Debug inode relocations
                   16   - Debug moving the inode table

       -p     Prints  out  a  percentage completion bars for each
              resize2fs operation, so  that  the  user  can  keep
              track of what the program is doing.

       -f     Forces  resize2fs  to  proceed  with the filesystem
              resize operation,  overriding  some  safety  checks
              which resize2fs normally enforces.

       -F     Flush  the filesystem device's buffer caches before
              beginning.  Only really useful for doing  resize2fs
              time trials.

Resize2fs version 1.00      March 1998                          1

RESIZE2FS(8)                                         RESIZE2FS(8)

AUTHOR

COPYRIGHT
       Resize2fs  is  Copyright  1998  by  Theodore Ts'o and Pow-
       erQuest, Inc.  All rights reserved.  Resize2fs may not  be
       redistributed  without  the  prior  consent of PowerQuest.
       This version of resize2fs is available to  licensed  users
       of Partition Magic(tm).

SEE ALSO
       fdisk(8), e2fsck(8), mke2fs(8)

Resize2fs version 1.00      March 1998                          2

 
 
 

fdisk & fat32

Post by Ron J Theriau » Tue, 04 Aug 1998 04:00:00


|>


|> > Help,
|> >
|> > RH 4.2 fdisk cannot repartition my drive (win95 was pre-installed).
|> > Apparently MS changed the *(&^$ filesystem in mid release.
|> > Is there a version of linux which can repartition a fat32 drive?
|>
|> ... If you want to RE-SIZE your
|> partition without destroying its contents, you do *NOT* want to use
|> fdisk, since fdisk was never designed to do this.  Instead, you need a
|> FAT-32-capable version of FIPS.  This comes with Red Hat 5.1, and can be
|> obtained from various sources by now (including Red Hat's ftp site and
|> its mirrors).  The last I checked, though, this version of FIPS could
|> handle partitions of type 0x0b, but not 0x0c, so you may or may not be
|> able to use it on your system; you'll just have to try it to be sure.
|> Another option would be to buy the commercial program Partition Magic,
|> which can handle FAT-32 partitions and is much more flexible than FIPS.
|> PowerQuest (which makes Partition Magic) apparently also has an ext2
|> resizer, though it's currently available only as a separate download to
|> registered Partition Magic 3.0 owners.
|>
|> --
|> Rod Smith

|> http://www.users.fast.net/~rodsmith
|> NOTE: Remove the digit and following word from my address to mail me

You're right, I really meant FIPS, not fdisk.

--
Ron Theriault :  CS Department, Texas A&M Univ.            

"Victimless crime" is a euphemism for "political crime".

 
 
 

fdisk & fat32

Post by Rod Smi » Tue, 04 Aug 1998 04:00:00


[Posted and mailed]



Quote:> )
> ) RH 4.2 fdisk cannot repartition my drive (win95 was pre-installed).
> ) Apparently MS changed the *(&^$ filesystem in mid release.
> ) Is there a version of linux which can repartition a fat32 drive?

> back your stock up, refdisk and reformat, then reinstall.
> I suggest you use DOS partition under 512MB so the block size will be 8K .

The original post specifies it's a FAT-32 partition, so the suggestion of
using small partitions to keep block sizes down is unnecessary.  FAT-32
uses 4kB block sizes for partitions of up to 8GB, IIRC.  (Yes, yes, in
theory the limit should be much higher than this if the FAT truly were 32
bits in size; but this is the figure I keep seeing quoted on various web
pages devoted to FAT-32.)

As has been pointed out elsewhere in this thread, the
backup/repartition/restore procedure is also unnecessary if a utility like
recent versions of FIPS or Partition Magic is used.  (Though of course
backing up prior to using such utilities is generally a  very good idea.)

--
Rod Smith

http://www.users.fast.net/~rodsmith
NOTE: Remove the digit and following word from my address to mail me

 
 
 

1. linux fdisk hidden fat32 (1b) --> fat32 (0b) = dos fdisk fat16 ???

  Well, well.

  I decided to give Partition Manager's
boot manager a test drive today (QBOOT or
whatever the hell it's called).

  This was on Win98SE.

  I fired it up and got a menu asking me if I wanted to boot
drive J:, which is where I have win2000 installed.

  "Aha,", I thought, "here's a way to boot from Win98SE
right into Win2000. Neat!"

  Not.

  What it did was

  (1) hide my Windows boot partition and set it to Inactive

  (2) set my Windows2000 partition to active, and

then it rebooted the machine.

  Unfortunately, my Windows2000 partition is not bootable.

  Now I can't boot Win98SE to use P.M to unhide my C: drive and I can't
get into Win2k.

  What do I now?

  My first thought was to use Linux fdisk to reverse the process:

  (1) unhide my Windows boot partition, by changing its ID from 1b
(hidden fat32) to 0b (fat32) and make it active,

  (2) make my Win2000 partition inactive

   So, that's what I did, which gave me this:

Disk /dev/hde: 255 heads, 63 sectors, 4865 cylinders
Units = cylinders of 16065 * 512 bytes

    Device Boot    Start       End    Blocks   Id  System
/dev/hde1    *        1       261   2096451    b  Win95 FAT32
/dev/hde2           262      1536  10241437+   f  Win95 Ext'd (LBA)
/dev/hde3          1537      3066  12289725    7  HPFS/NTFS
/dev/hde5           262       516   2048256    b  Win95 FAT32
/dev/hde6           517       771   2048256    b  Win95 FAT32
/dev/hde7           772      1026   2048256    b  Win95 FAT32
/dev/hde8          1027      1536   4096543+   b  Win95 FAT32

   Next, I booted my Win98 restart disk and ran Windows FDISK
to check the partition info.

   Guess what?

   Windows FDISK now thinks my C: drive/partition is FAT16 -- and the
file names all look like this:

!.#*
!.#*
).+*
).+*
. *
. *
:0398.:03b4*
:0398.:03b4*
:0398.:03b4*
:0398.:03b4*
:03982.:03b42*
:0398:207f.:03b4:207f*
:0398:2219.:03b4:2219*
:0398:221a.:03b4:221a*
:0398:2229.:03b4:2229*
:0398:2248.:03b4:2248*
:0398:2261.:03b4:2261*
:0398:2264.:03b4:2264*

  Anyone seen anything like this before?

  Drives E,F,G, and H seem ok.

  And my Win2000 partition seems ok afaict after booting from the win2k
cdrom and opening the repair console.

  What should I do next?

  How can I unhide my boot partition so Windows FDISK sees it as FAT32?

  Can I boot from the win2k cdrom and then boot Win2000 from the repair
comsole "dos" prompt?

  What should I do next?

--

2. Linux Busmouse HOWTO

3. fat32 patch, cd with vfat & fat32

4. SURVEY: Graphics card benchmarks under XFree86 (17 Nov 96)

5. dos fdisk & linux fdisk GREAT INCOMPATIBILITY

6. -=X11R6 servers=-

7. DOS FDISK and FAT32

8. Linux and UNIX(tm) FTP Site: InfoMagic

9. fdisk (Linux RH 5.1) and Win95 FAT32 problem

10. fdisk - windows95 fat32 woes

11. Can't install Linux with FAT32(fdisk problem)

12. Fdisk problems: Removing Fat32 partition, creating Linux part

13. fat32 and fdisk ??