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

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



Am Sonntag, 30. April 2006 05:48 schrieb Thilo Six:
> Genau das gleiche ist mir auch vor einigen Tagen passiert.
> Eigentlich wollte ich auf einer Partition nur ein system neu aufspielen,
> aber dabei hats die devices durcheinander gebracht.
> Sprich was vorher mal /dev/hda5 war ist jetzt /dev/hda8 obwohl es auf
> der Platte an der selben liegt.
>
> Ich hab ganz schön dumm geguckt als ich das Backup-System gebootet hatte
> und das was vorher mein home war (/dev/hda6) plötzlich den Inhalt von
> /var/cache/apt/archives/ hatte.
>
> Anyway
>
> 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)

Und das verstehe ich nicht:

sarge:~# e2label /dev/hda7

Logisch, dass keine Ausgabe entsteht, da hda7 ja nicht gemountet ist, oder 
doch?

Ich blicks grad nicht mehr...

Michael



Reply to: