[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

Andreas Pakulat wrote the following on 29.04.2006 22:45:

<snip>

>> Nach der Aktion mit "gparted" habe ich rebootet und der Rechner wollte nicht 
>> mehr starten. Also habe ich mit einer ubuntu live-cd gebootet und 
>> herausgefunden, dass mein root-Verzeichnis sich nur noch unter /dev/hda6 
>> mounten ließ?
> 
> Was sagt fdisk -l?
> 
>> Doch ab hier hört's bei mir auf mit meinem Latein:
>>
>> Warum wird "/" nun als /dev/hda7 angezeigt?
>>
>> sarge:~# mount
>> /dev/hda7 on / type ext3 (rw,errors=remount-ro)
> 
> Weil du deine fstab nicht angepasst hast? Die Frage ist aber: Wenn dein
> root-fs wirklich auf hda7 liegt, was liegt dann auf hda6? Auch ein
> Linux?
> 
> Andreas

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.
- ------------------------------------------------------------------------

Bei mir siht das jetzt z.B. so aus (/etc/fstab):
- ------------------------------------------------------------------------
UUID=a649fbed-ebf8-40bb-9c55-d436b4920693 / ext3
defaults,errors=remount-ro,noatime,nodiratime,commit=21  0   1
- ------------------------------------------------------------------------

oder manuell:

mount -t ext3 -o noatime,nodiratime,commit=21
UUID=64ce1400-303b-4f34-9faf-c2cf2d0cb9a6 /mnt/ubuntu1


Die UUID bekommst du raus mit:
# tune2fs -l /dev/hda1

(dritte Zeile oben)


HTH 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

iD8DBQFEVDOhgkdHiUpBHgkRA8tKAKCqOgev37U6O2MV77GpPdw0r75l4ACfdlUS
1mfzmeLFJyAAIaa9qEjZZlo=
=uKjn
-----END PGP SIGNATURE-----



Reply to: