Re: Detecting if unformatted drive K: exist?




"Matt Adams" <mattad@xxxxxxxxxxx> wrote in message
news:441823f8$0$21656$9b4e6d93@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Assume the following situation:

I have a new, sometimes connected (external USB) hard disc with a new
partition K:
on it. BUT this partition is currently NOT formatted (e.g. with NTFS).

How do I detect from command line (program) if
this hard disc resp. partition is currently connected or not ?

Notice: If the partition would be formatted the
solution is simple:

if exist "K:\" Echo K: is existing

But with an unformatted but existing partition the command above does NOT
work.

So again: Is there a detection command line program
which gives me a reliable "yes" (errorlevel=1) or no
on this question?

Maybe I need one of these ResourceKit programs from MS or from other
software sources

Matt


I haven't tried this (because I don't happen to have any unformatted
disks lying about) but I suspect that mountvol.exe could be
your answer.


.



Relevant Pages

  • Re: Detecting if unformatted drive K: exist?
    ... sometimes connected (external USB) hard disc with a new partition K: ... But with an unformatted but existing partition the command above does NOT work. ...
    (microsoft.public.windowsxp.general)
  • Re: Grub Reinstall Problem!!!
    ... > command that can list allo partitions in my hard disc. ... > active the Fedora Partition after installing Grub???? ...
    (Fedora)
  • IDE HDD fail?
    ... This caused after this command: ... Device contains neither a valid DOS partition table, nor Sun, SGI or OSF ... Offline data collection status: ... Self-test execution status: ...
    (Linux-Kernel)
  • Re: Help with a little dd damage!
    ... Partition 3 has different physical/logical beginnings: ... Feb 28 20:20:57 morgansmachine kernel: EXT3-fs: write access will be enabled during recovery. ... So, fingers firmly crossed, have I managed to copy enough of my hard drive with the first two commands to be able to patch back the catastrophic damage I seem to have done with the last command. ... "By choosing not to ship any proprietary or binary drivers, Fedora does ...
    (Fedora)
  • Re: partition table type
    ... Look at the article in wikipedia on partition types. ... to look for something else to boot. ... I am familiar with how floppy and hard disc boot works, ...
    (Debian-User)