Re: mkisofs on usb hard drive key




Dances With Crows wrote:
On 17 Jul 2006 16:13:32 -0700, heavytull staggered into the Black Sun
and said:
Dances With Crows wrote:
heavytull wrote:
root@headmuz:/mnt/cdrom/kernels# fdisk /dev/sdc
[ heavytull creates 1 partition ]
# 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 .
ho sorry, I [didn't] notice the "1".

When you work with computers, Details Count. (The difference between
"rm -f *.tmp" and "rm -f * .tmp" is *huge*!)

I know,

ok, I'll try again, but I remember when I made 4 partitions some time
before I didn't make that error and got an error message like "can't
find disk geometry"

Wait. Did you do this?

fdisk /dev/nnn
(create 1 partition of type 0x0b on /dev/nnn)
mkdosfs -F32 -I /dev/nnn1

yes

...using -I on a partition (not a full device) may cause weird things to
happen.
I didn't know that!
I always do that for floppies, that works fine.

I'd have to look at mkdosfs's source to find out exactly what.
Or, it's possible that the kernel didn't re-read the partition info from
the disk.
I wouldn't believe so.
anyway I have already seen so many misconceptions in the programming
world and massevely used that perhaps what you say is true.

So next time you fdisk a USB device, you *may* want to unplug
and re-plug the device after fdisk returns, and see if that helps.

actually I think I did unpug and replug the device, because I had a
winXP pc besides and I sometimes put the device in it just to see what
it would say.
and since my goal was to figure out how to use mkdosfs properly I
didn't format the usb mass storage HD under winXP, instead I put it
back into linux box and AFAIK I reatempted to use mkdosfs.
one thing is sure: I finally could make mkdosfs work but I actually
used the -C option to generate the fs into a file that I cat >/dev/sdcx
or dd...

I'd try everything again and mark the results.

--
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: Hi~ I have a question about FAT32
    ... Okay I'm not quite sure why you're doing fdisk on a file. ... Fdisk is going to put an MBR and partition tables allocation on the ... If you don't exclude the partition table and mbr allocation from the ... mkdosfs step, your first 512 or so bytes won't have the original 00's you ...
    (comp.os.linux.misc)
  • Re: USB Flash Drive Stopped Working, Reformat? How?
    ... wipe out partition tables ... fdisk /dev/sda ... mkdosfs /dev/sda1 ...
    (comp.os.linux.misc)
  • Re: fdisk
    ... On Sat, 2005-02-12 at 10:56 -0600, Michael Satterwhite wrote: ... Try tomsrtbt. ... It contains fdisk and mkdosfs so ...
    (Debian-User)
  • Re: Maxtor One Touch III
    ... I chose "n add a new partition" ... I then did the mkdosfs on /dev/sde1 ... as a FAT32 unknown healthy partition. ... What partition type does fdisk show? ...
    (comp.os.linux.hardware)
  • Re: Maxtor One Touch III
    ... I chose "n add a new partition" ... I then did the mkdosfs on /dev/sde1 ... as a FAT32 unknown healthy partition. ... What partition type does fdisk show? ...
    (comp.os.linux.hardware)