[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Getting mad on mounting MSDOS partitions
I think your confusing fdisk and disklabel. I recommend the man pages on both. Disklabel is used for carving up space within an "fdisk" partition. For example, via fdisk you might have 2 partitions on the drive, we'll call them A and B. Say A is an MSDOS partition of some sort while B is for OpenBSD. You would then use disklabel to carve up B logically into /, /tmp, /usr, /var, etc. Follow disklabel with newfs and you now have usable space for OpenBSD.
I'm not sure what your trying to do with disklabel, so I can't answer your question directly...
* Saliou, Cedric (Cedric) <email@example.com> [020627 21:05]:
> Hi guys,
> I really need your help...
> I have only 1 harddisk in my computer.
> The disklabel shows me that :
> disklabel -t wd0
> pa 4.2BSD
> pb swap
> pi -> unknown (but size = NTFS)
> pj -> unknown (size = FAT32 D:\)
> pk -> unknown (size = FAT32 E:\)
> (I can give you the sizes and offsets if you want)
> 1) I tried to modify the disklabel using the interactive editor: disklabel
> -E wd0
> * m j (to modify the j partition)
> * FS type: [unknown] MSDOS (it's what I want !!!)
> * Offset:  (hit return)
> Then the following error occurs:
> "The OpenBSD portion of the disk starts at sector 13189365, you
> tried to add a partition at 4096575.
> You can use the 'b' command to change the size of the OpenBSD
> It seems that I cannot modify my FAT32 partition if I installed OpenBSD
> after it !!!
> Does anybody have an answer to my problem???
> 2) If I try to modify the disklabel (to move pj and pk to MSDOS filesystem
> type), using the disklabel -e command, I got :
> disklabel -e wd0
> pa 4.2BSD
> pb swap
> pi -> unknown
> pj -> MSDOS
> pk -> MSDOS
> But now when I try to mount pj or pk, using mount -t msdos /dev/wd0j /dos or
> mount -t msdos /dev/wd0k /dos, I got the error :
> mount_msdos: /dev/wd0j on /dos: not an MSDOS Filesystem
> CAN SOMEONE explain this and try to help me to fix it ???
> Thanks to help, otherwise I will continue to believe in Bill Gates ! ;o)