Re: mkisofs on usb hard drive key




Unruh wrote:
"heavytull" <heavytull@xxxxxxxxxxx> writes:


Dances With Crows wrote:
On 17 Jul 2006 13:15:35 -0700, heavytull staggered into the Black Sun
and said:
root@headmuz:/mnt/cdrom/kernels# fdisk /dev/sdc
[ heavytull creates 1 partition ]
Changed system type of partition 1 to b (W95 FAT32)

# mkdosfs -I -F32 -n slack -v /dev/sdc
# mount /dev/sdc1 /mnt/pen_drive/
mount: you must specify the filesystem type

You created one partition, then mkdosfs'ed the *entire disk*. You
probably wanted to mkdosfs -F32 /dev/sdc1 .

the only fs related diff between your probable command (mkdosfs -F32
/dev/sdc1) and the command i tried (mkdosfs -I -F32 -n slack -v
/dev/sdc) is the -I option which is requested when the disk is not
empty.

You have trouble reading. Note /dev/sdc1 vs /dev/sdc. Those are NOT
equivalent. /dev/sdc1 is the first partition on the disk /dev/sdc It is NOT
the same as /dev/sdc. /dev/sdc writes over the whole of the disk, MBR,
partition table and all. It may well work fine, but not if you try to use
/dev/sdc1.


read my reply (5) to Dances With Crows



I know mkdosfs does work properly on full disk with -I option because I
always do that way with floppies.

ps: I tried both b and c hex codes for the partition type with fdisk,
The result is the same.
I mentioned this just to avoid to see some senseless answers as I'm
used to see;
I know the problem is not related to fs type.



Yep, because the error is in a different place. 0x0b is the right type
for a 2G filesystem, IIRC. HTH,



--
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin / mail: TRAP + SPAN don't belong
http://www.brainbench.com / "He is a rhythmic movement of the
-----------------------------/ penguins, is Tux." --MegaHAL

.



Relevant Pages

  • Re: grub 0.97 and ufs2 madness
    ... except that the very same version of grub doesn't seem ... to recognize the copy of my UFS2 filesystems on the 200GB disk while it ... Partition num: 0, Filesystem type unknown, partition type 0x7 ... 'a', Filesystem type unknown, partition type 0xa5 ...
    (comp.unix.bsd.freebsd.misc)
  • grub 0.97 and ufs2 madness
    ... recognize the copy of my UFS2 filesystems on the 200GB disk while it ... Partition num: 0, Filesystem type unknown, partition type 0x7 ... BSD Partition num: 'a', Filesystem type unknown, partition type 0xa5 ...
    (comp.unix.bsd.freebsd.misc)
  • Re: mkisofs on usb hard drive key
    ... you must specify the filesystem type ... You created one partition, then mkdosfs'ed the *entire disk*. ... probably wanted to mkdosfs -F32 /dev/sdc1. ...
    (comp.os.linux.misc)
  • Re: Multi Boot Installtion FreeBSd+Fedora+Debian
    ... Partition Layout for First Disk ... BSD Partition num: 'a', Filesystem type is ufs2, partition type ...
    (freebsd-questions)
  • Dual booting FreeBSD and Linux using GRUB fails
    ... I have an all-SCSI system with FreeBSD 6.3 on one disk and 7.0 on the other. ... That disk also has GRUB installed with an entry for FreeBSD which is also hd0. ... Mandriva menu.lst file into the one on the FreeBSD partition and edited hd0 to hd1 but Mandriva won't boot, ... Filesystem type is ufs2, partition type is 0xa5 ...
    (freebsd-questions)