Jump to content











Photo

DPart/diskpart problems

winfe

  • Please log in to reply
6 replies to this topic

#1 tango6

tango6
  • Members
  • 8 posts
  •  
    United States

Posted 19 February 2012 - 11:26 PM

I made a fresh winfe,using the latest winbuilder and winfe script 3.0. I'm having a problem with Dpart and diskpart. It does not allow me to set read only attributes to one the hadrives, giving me the following message "DiskPart failed to set disk attributes"

I used diskpart and I had the same problem, when i tried to set the disk to READONLY, but i was able to set the volume to READONLY. I assigned a letter and tried to write to it and it blocked the attempt.

This also happen on a laptop, which had a 0 raid. I thought it was due to the raid, but i was able to access it, scan it, but with out write protection.

Other hardrives and USB thumbdrives in the system were able to be set to disk READONLY, using Dpart.

Another thing: Dpart is rather easier to use, but it does not have an option to assign a letter to a drive, or make a volume READONLY, is this normal?

Is it possible to add a script to WinFE to add the CMD prompt at the desktop, or a DISKPART shortcut at the desktop.

Is it also possible to add a short set of instructions on how to use Dpart and Diskpart on the desktop? I'm trying to get my agency to use this program, but i have to make it "tourist" friendly.

#2 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 15078 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 20 February 2012 - 10:41 AM

It's strange. :dubbio:

I had a quick look.

The "official" diskpart command is:

diskpart attribute set volume read-only

http://technet.micro...5(v=ws.10).aspx
http://winfe.wordpre...winfe/diskpart/
i.e. the "read-only" is an attribute of the volume object, not of the disk one.

Dpart is Dpart.cmd, a simple batch file and it is nothing but a "shell" to diskpart, open it in Notepad ,in the first few lines you will find:

title dpart (command line shell for diskpart)

It actually does send a command:

attribute disk set readonly

which is seemingly UNdocumented in the main page above. :w00t:

BUT is given here:
http://support.microsoft.com/kb/971436
and here:
http://www.forensicf...&pid=360&page=4

I guess you need a proper explanation by RoyM.

Can it be that these are Dynamic volumes?
It is not clear if they are supported:
http://reboot.pro/15883/
http://reboot.pro/15935/

:cheers:
Wonko

#3 tango6

tango6
  • Members
  • 8 posts
  •  
    United States

Posted 20 February 2012 - 08:33 PM

Documentation is a bit of a problem.

#4 steve6375

steve6375

    Platinum Member

  • Developer
  • 7078 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 20 February 2012 - 10:57 PM

Was it an NTFS partition or FAT? Not sure if it RO applies to FAT ptns???

#5 tango6

tango6
  • Members
  • 8 posts
  •  
    United States

Posted 21 February 2012 - 12:05 AM

Both Drives were NTFS, in addition they were the boot drives.

#6 bshavers

bshavers

    Frequent Member

  • Developer
  • 130 posts
  •  
    United States

Posted 21 February 2012 - 12:34 AM

For the users that need DiskPart commands in front of them when using WinFE (that would be me!), it is easy enough to have the desktop/wallpaper be a graphic of the DiskPart commands. No need to open a text file or have a notepad at your side, the commands can be on the desktop.

For the technically disadvantaged, that can include how to get DiskPart up and running (Click "here", type "this", now type "this", etc...).

#7 tango6

tango6
  • Members
  • 8 posts
  •  
    United States

Posted 21 February 2012 - 03:14 PM

For the users that need DiskPart commands in front of them when using WinFE (that would be me!), it is easy enough to have the desktop/wallpaper be a graphic of the DiskPart commands. No need to open a text file or have a notepad at your side, the commands can be on the desktop.

For the technically disadvantaged, that can include how to get DiskPart up and running (Click "here", type "this", now type "this", etc...).


great suggestion,I'm going to work on that tonight :)





Also tagged with one or more of these keywords: winfe

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users