Solved

changing NTFS volume serial number

Posted on 1998-01-02
4
710 Views
Last Modified: 2013-12-03
How can I change the serial number of a NTFS volume? I know how it's stored in the boot sector, but I don't know how to change that either. This has to be done inside NT 4.0; booting DOS isn't an option.
0
Comment
Question by:dhaun
4 Comments
 
LVL 32

Expert Comment

by:jhance
ID: 1409814
From what I have been able to determine, you cannot change the NTFS volume serial number through a documented API call.  Obviously, there is a way to do it since MS sets it when you format a new disk.  You might try poking into some of the Win NT system files that might do this with a DISASSEMBLER/DEBUGGER.
0
 
LVL 6

Expert Comment

by:jpk041897
ID: 1409815
Actualy, the only place where the serial number is accessed is in the Format routines.

I managed to change the serial number under DOS and Win3.1 some years ago, never hat to use it afterwards though.

To make a long story short, under both DOS and 3.1, and under NT as far as I have been able to determine from the DOCS, you will need to dissasemble one of the programs containing the formatting routines to obtain the name and address of the driver function that generates and writes the Volume serial number.
0
 
LVL 1

Expert Comment

by:Odie
ID: 1409816
If you only want to read/write to the boot-sector, have you tried using createfile("\\physicaldrive0", ...); or something?  It's commented in your help file under createfile.  I think you can access the boot-sector this way.
0
 
LVL 4

Accepted Solution

by:
tflai earned 100 total points
ID: 1409817
There is a small utility at the following site that can change volume ID on NTFS for hard drive and floppy:
(Look for "VolumeID")
http://www.ntinternals.com/ntutil.htm
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Winform not working on 64 bit machine 31 102
Visual Studio 2015 locks debug executable 9 218
How can my static class become undefined?? 8 66
Input parameteres to DragOver 2 20
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question