Sorry for spamming the list. 

Randy, In case you are curious about what's in that NTFS superblock, here's a great reference:
http://technet.microsoft.com/en-us/library/cc781134(WS.10).aspx

If you wanted instructions for editting that superblock, this is probably the simplest way:

dd if=/dev/sda# of=block bs=512 count=1
ghexedit2 block (or what hex editor you like)
dd if=block of=/dev/sda# bs=512 count=1

You may also want to keep a copy of the original block, just in case your modified block is not happy. 

The serial number is stored in the 8 bytes starting at offset 0x48. 

Here's an example from one of my own NTFS Super Blocks:

adam@adam-laptop:~$ hd block 
00000000  eb 52 90 4e 54 46 53 20  20 20 20 00 02 08 00 00  |.R.NTFS    .....|
00000010  00 00 00 00 00 f8 00 00  3f 00 ff 00 3f 00 00 00  |........?...?...|
00000020  00 00 00 00 80 00 80 00  24 97 ff 04 00 00 00 00  |........$.......|
00000030  00 00 0c 00 00 00 00 00  72 f9 4f 00 00 00 00 00  |........r.O.....|
00000040  f6 00 00 00 01 00 00 00  69 28 05 50 64 05 50 3a  |........i(.Pd.P:|
00000050  00 00 00 00 fa 33 c0 8e  d0 bc 00 7c fb b8 c0 07  |.....3.....|....|

If you had any more questions, I'll gladly take them off list, too. 

On Wed, Feb 24, 2010 at 2:48 PM, Adam Gomes <adam@unixgeek.net> wrote:
OR ....

If you absolutely need to change the UUID, then you can always alter the superblock of the partition. This is a little scarry, though. The superblock is the first 512 bytes of the partition. You can edit it in the hex editor and the NTFS volume serial number should be in 0x48 to 0x4f. It's only 8 bytes long. Just alter a byte or two in that region, and you should have a new UUID. 

This is NOT for the faint of heart, though. 


On Wed, Feb 24, 2010 at 2:30 PM, Adam Gomes <adam@unixgeek.net> wrote:
ntfslabel /dev/sdaX LABELNAME

and in /etc/rfstab change the /dev/sdaX or UUID= part of the line to LABEL=LALBELNAME

That should do the trick. You may need to install a new package to get ntfslabel, in Ubuntu, that package is ntfsprogs.


On Wed, Feb 24, 2010 at 2:14 PM, Randy Cole <randyokc@gmail.com> wrote:
I've done this before but I can't remember how.  Gparted (actually
ntfsclone) duplicates the UUID, so I cannot mount them both!
_______________________________________________
Wlug mailing list
Wlug@mail.wlug.org
http://mail.wlug.org/mailman/listinfo/wlug