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

Re: Devicenamen vertauscht nach Löschen einer Partition? GRUB?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Michael Lansche wrote the following on 30.04.2006 10:48:

<snip>

>> Du kannst die Partition auch anhand der UUID mounten.
>>
>> $ man fstab
>> ------------------------------------------------------------------------
>> Instead of giving the device explicitly, one may indicate the (ext2  or
>> xfs)  filesystem that is to be mounted by its UUID or volume label (cf.
>> e2label(8) or  xfs_admin(8)),  writing  LABEL=<label>  or  UUID=<uuid>,
>> e.g.,   ?LABEL=Boot?   or  ?UUID=3e6be9de-8139-11d1-9106-a43f08d823a6?.
>> This will make the system more robust: adding or removing a  SCSI  disk
>> changes the disk device name but not the filesystem volume label.
>> ------------------------------------------------------------------------
> 
> Komisch, das von DIr erwähnte Kommando zeigt folgendes an:
> 
> sarge:~# e2label /dev/hda6
> /
> 
> Aber mount nach wie vor folgendes:
> sarge:~# mount
> /dev/hda7 on / type ext3 (rw,errors=remount-ro)


Das Problem ist ja eigentlich bereits gelöst.

Ich wollt nur anmerken, dass ich von
- -------------------------------------
Die UUID bekommst du raus mit:
# tune2fs -l /dev/hda1
- -------------------------------------
und nicht von e2label sprach.

Das ext2/3 Label muss erst manuell gesetzt werden und steht nur bei der
Root-Partition per default auf "/" .
Die UUID wird automatisch beim Anlegen der Partition vergeben und ist
absolut eindeutig.

tune2fs -l /dev/xyz

zeigt dir alle Informationen zu der betreffenden Partition an.
(z.B. wann das letzte mal gemountet, wann wird der nächste fsck
durchgeführt usw.)

> Ich blicks grad nicht mehr...
> 
> Michael

Bei mir war es so, dass die neu angelegte Partition das letzte Device
(/dev/hda8) bekam. Alle anderen Partition sind dadurch "um eins nach
vorn gerutscht" und zwar durch die Bank.
Da ich hier ja nicht aufhöre zu experementieren ;) mounte ich jetzt
anstatt anhand des Device-Namens anhand der UUID.
Die UUID ist einmalig, und ändert sich erst, wenn die Partition gelöscht
wird und dann auch nur für diese eine.

Falls du interesse hast schau hier mal rein:
- ----------------------------------------------------------
Some ext3 Filesystem Tips
http://forums.gentoo.org/viewtopic-t-305871.html

hier gibt es noch einige sehr nützliche Erweiterungen dazu:
http://forums.gentoo.org/viewtopic.php?p=3252486#3252486
- ----------------------------------------------------------

Have a nice day...

Thilo
- --
i am on Ubuntu 2.6 KDE
- - some friend of mine

gpg key: Ox4A411E09

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

iD8DBQFEVK4mgkdHiUpBHgkRA0LmAKDOe26E9kUVFOO1XRfbFnWVVuIEgwCg1cn6
mwTQVaVeuUMYk3Eah+/g+gY=
=yoP4
-----END PGP SIGNATURE-----



Reply to: