Solved

changing NTFS volume serial number

Posted on 1998-01-02
4
707 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
DB Mail Export to Excel some row wrap to new row 30 116
How can i Install a new Data Source on Visual Studio 2 99
Problem to file 3 74
Trouble with References... 5 54
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

777 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