[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: udev causing data loss?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

lee wrote:

> Well, that means there is no way of telling which disk is which other
> than uuid maybe. But who says which uuid is to be which partition?

The UUID is written on the disk when the partition is created. It's
supposed to be a universally unique identifier for that partition. To
the best of my knowledge, though, there's nothing to identify the disk
itself.

> It depends. I've seen it the other way round, depending on controller
> settings: Priority is usually low to high, but when you switch it to
> high to low (in the controller BIOS), the disks are the other way
> round (very confusing). Since it depends on the controller, there is
> no way to tell: Every controller can do its own thing (and have a
> priority like "middle to low, then middle to high", or whatever).

But you can control that, and once you figure the setting you like, it
won't change.

> But I don't have an udev configuration, not one I made myself. I was
> thinking udev is to make things working right automatically ...

It works great if your system uses one or two IDE disks. Pretty well for
all SCSIs or SATAs -- just be sure there's no USB stick plugged in.

On my servers, I want to use a small fast SCSI system disk and a RAID of
SATAs for data, and I want my system disk to repeatably be called
/dev/sda. Forget it...

> How can he do that without a way of telling which device is which,
> under whatever circumstances? And if that is so, why does the
> installer write an /etc/fstab with device names in it? That would
> appear as a sure way to eventually brake things if someone plugs in an
> USB drive or unplugs it after installing. It might work on the first
> and second and fifth reboot and suddenly stop working, leaving him
> with an unbootable system and no clue what might have gone wrong.

You got it. Except that now you know what went wrong :-)

- --
Glenn English
ghe@slsware.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkfLGgACgkQ04yQfZbbTLZ4ZQCgpTP7DrjvlW6r5v4XxSswdOCX
M58An0szNPRui29YJBSj1536+BDoj7rN
=Sod3
-----END PGP SIGNATURE-----


Reply to: