Solved

changing NTFS volume serial number

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
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…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

760 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now