Adding a new DOS partition to a HD with DOS/Linux

Adding a new DOS partition to a HD with DOS/Linux

Post by Eugene Hu » Mon, 13 Jan 1997 04:00:00



Hi, I recently installed Linux(RedHat 4.0) onto a 3.1 GB hard drive.  I
had originally partitioned the drive so that a gig was for DOS and a gig was
for Linux(under the extended partition).  Now, I want another gig for DOS.
When I add a new primary partition via Linux fdisk (change the type, zero
out the first 512 bytes via dd according to the fdisk manpage), DOS fdisk
recognizes two primary DOS partitions (C and D).  However, when I try
to format [/s] [/u] d:, it gives me the standard warning and then exits
to the DOS prompt with hardly any work done.  Any other attempt to access
this d: gives "Sector not found."  Does anyone know what I'm doing wrong?

Here is my /etc/fstab if this is any help.

/dev/hda6                 /                         ext2   defaults 1 1
/dev/hda1                 /dos                      ignore 0 0 0
/dev/hda8                 /home                     ext2   defaults 1 2
/dev/fd0                  /mnt/floppy               ext2   noauto 0 0
/dev/hda7                 /usr                      ext2   defaults 1 2
/dev/hda9                 /usr/local                ext2   defaults 1 2
/dev/hda10                /usr/src                  ext2   defaults 1 2
/dev/hda2                 none                      ignore 0 0 0
/dev/hda3                 none                      ignore  0 0

none                      /proc                     proc   defaults
/dev/hda5                 none                      swap   sw

(hda1 is the gig of DOS that's working, hda2 is the extended partition base
for linux, and hda3 is the gig of DOS that I just created)

--
Eugene Hung

 
 
 

Adding a new DOS partition to a HD with DOS/Linux

Post by Eugene Hu » Mon, 13 Jan 1997 04:00:00



-}Format d: /u would be the correct syntax. I don't think you can use the /s
-}switch in this instance. This probably isn't the fix for your problem. I
-}don't think I would use Linux's fdisk to create dos partitions either.

I know; I tried using the DOS 6.22 fdisk first, but it wouldn't let me create
any new partitions since I had used the primary Partition for DOS and an
extended for Linux.  (I used the extended so I could have different mount
points for parts of my filesystem)

I tried putting the /u after the drive, too, and it refused to format.
--
Eugene Hung


 
 
 

Adding a new DOS partition to a HD with DOS/Linux

Post by David K. Seyst » Tue, 14 Jan 1997 04:00:00



Quote:>Hi, I recently installed Linux(RedHat 4.0) onto a 3.1 GB hard drive.  I
>had originally partitioned the drive so that a gig was for DOS and a gig was
>for Linux(under the extended partition).  Now, I want another gig for DOS.
>When I add a new primary partition via Linux fdisk (change the type, zero
>out the first 512 bytes via dd according to the fdisk manpage), DOS fdisk
>recognizes two primary DOS partitions (C and D).  However, when I try
>to format [/s] [/u] d:, it gives me the standard warning and then exits
>to the DOS prompt with hardly any work done.  Any other attempt to access
>this d: gives "Sector not found."  Does anyone know what I'm doing wrong?

Format d: /u would be the correct syntax. I don't think you can use the /s
switch in this instance. This probably isn't the fix for your problem. I
don't think I would use Linux's fdisk to create dos partitions either.
 
 
 

1. how do i mount an extended dos partition or a dos logical partition ?

i need to access/share data with an NT machine (not on a network)
i have 10G removable hard drives
i am trying to put a file system on it to allow access by both linux and
NT
linux won't mount an ntfs file system
the NT person put 4 primary (?) dos partitions on the disk
and if i run fdisk in linux it sees 4 FAT16 partitions
but it will only let me mount the first one

how do i mount the other 3 ?

is there some special way the disk needs to be formated by NT ?

thanks for any help,
dan

2. Web Server CGI

3. HELP: Connectivity between DOS/DOS and DOS/Linux

4. "Linux" Libraries (was: compiling xvtld-5.0 on Linux)

5. Uninstall Linux: Deleted "non dos partition" with DOS fdisk -- Now what?!?

6. DigiBoard and MCA/PCI system

7. Mini Linux coexists in DOS partition and boot from DOS

8. Sendmail on 3.2.2

9. How can Dos partitions & Dos files be viewed in Linux ?

10. hd to hd installation (dos partition path)

11. Adding another partition from a DOS partition (???)

12. Problem with re-partitioning HD for DOS after having Linux on it

13. Partition table gone on dos/linux HD