UUID and disk add

H.S. hs.samix at gmail.com
Thu Feb 26 15:34:25 UTC 2009


Mihamina Rakotomandimby (R12y) wrote:
> Hi,
> I took a hard drive from a windows box, formatted in NTFS and plugged it 
>   into my xUbuntu Intrepid.
> I dont know what component autodetects the UUID (udev?), but it has 
> created a /dev/disk/by-uuid/9050842050840EE2 (which is the UUID of the 
> NTFS partition)
> Then, I made a mkfs.ext3 on it and thus it has changed the UUID.
> My UUID is know: 9f04af4c-2e18-4fea-868f-a68991483734
> when editing fstab and mounting the partition:
> 
>    # mount /malalaka
>    mount: special device
>    /dev/disk/by-uuid/9f04af4c-2e18-4fea-868f-a68991483734 does not exist
> 
> Yes, there was no /dev/disk/by-uuid/9f04af4c-2e18-4fea-868f-a68991483734
> And the /dev/disk/by-uuid/9050842050840EE2 was still there.
> 
> I had to make a:
>    # rm /dev/disk/by-uuid/9050842050840EE2
>    # invoke-rc.d udev restart

Or, the usual way:
$> sudo /etc/init.d/udev restart

I think you did the right think by restarting udev. The reformatting of
the partition changed its UUID and a udev was required to make the
relevant changes in /dev/disk/by-uuid/<NEW UUID>

Regards.




-- 

Please reply to this list only. I read this list on its corresponding
newsgroup on gmane.org. Replies sent to my email address are just
filtered to a folder in my mailbox and get periodically deleted without
ever having been read.





More information about the ubuntu-users mailing list