Re: mkisofs on usb hard drive key



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*!)

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

....using -I on a partition (not a full device) may cause weird things to
happen. 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. 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.

--
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: PC Does Not Recognize HD???
    ... >because Windows XP gave me an error message that Windows Explorer was ... >then use FDISK to repartition, reformat and do a clean install but my PC ...
    (microsoft.public.windowsxp.help_and_support)
  • solved: Re: correct way to add new ide disk
    ... note the fdisk and other tools only worked fine whilst the pwd was /dev?? ... > wd1 on the dmesg as expected. ... > NetBSD disklabel disk geometry: ... > total sectors: 78165360 ...
    (comp.unix.bsd.netbsd.misc)
  • Re: Screwed boot partition using fdisk
    ... yes Richard, but that is the last thing I want to try! ... >> I've delete partition info using fdisk and now I can't boot anymore. ... >> I basically need a free utility or fdisk switch to revert what I've ...
    (microsoft.public.windowsxp.general)
  • Re: What do you think, will connecting a ST-225 work (part 2)
    ... it is setting the disk geometry. ... Excessive time would normally mean that your interleave is too ... next and catch the start of the new cylinder, ... it looks like FDISK is communicating with the HD. ...
    (uk.comp.homebuilt)
  • Re: Installed 5.2RC from CDROM, fails to boot in manager
    ... > FreeBSD's fdisk has always had a heck of a time getting disk geometry to ... > write the initial partition table with DOS FDISK by creating a dos ... > partition that you delete in FreeBSD later. ...
    (freebsd-current)