| Vorheriges Thema anzeigen :: Nächstes Thema anzeigen |
| Autor |
Nachricht |
newbie
Starter  
Anmeldungsdatum: 24.03.2007 Beiträge: 10
|
Verfasst am: 07 Apr 2007 22:59 Titel: im uml /swap erzeugen? |
 |
|
Hallo,
ich habe auf dem ct-Server das uml-image gemountet (mit mount -o loop ...) und dann einige gz-Files vom System- Update und snort-Update gelöscht) und dann versehentlich auch /swap gelöscht.
Wie kann ich /swap neu herstellen?
Ich kenne mich mit uml nicht aus und weiss nicht, ob ich da erst ein Filesystem erzeugen muss, und wenn ja, wie und auf welchem device.
Besten Dank für Hilfe!
Mike |
|
| Nach oben |
|
 |
ralkrame
Starter 
Anmeldungsdatum: 19.09.2005 Beiträge: 25
|
Verfasst am: 08 Apr 2007 15:51 Titel: |
 |
|
Hi,
versteh ich nicht ganz. Willst du swapspace in der uml anlegen?
mfg.
ralf |
|
| Nach oben |
|
 |
newbie
Starter  
Anmeldungsdatum: 24.03.2007 Beiträge: 10
|
Verfasst am: 08 Apr 2007 18:46 Titel: |
 |
|
Danke für die Antwort. Ich sehe schon, mein Problem liegt woandersw. ich habe in der UML irgendwas gelöscht, weiss aber nicht mehr was. Nun läuftz der ipcop nicht mehr. Daher meine folgende Bitte: kann jemand mal die folgenden Kommandos auf dem Server eingeben und mir das Ergebnis mitteilen, damit ich wenigstens sehe, was ich gelöscht habe...
Mit einer ssh auf den Server einloggen als root. Dann folgender Input:
cd /var/lib/uml/ipcop/
mount -o loop ipcop.img /mnt/tmp/
cd /mnt/tmp
ls -al
Mein Output ist dann:
insgesamt 32
drwxr-xr-x 16 root root 1024 2007-04-04 13:14 .
drwxr-xr-x 4 root root 1024 2007-04-02 22:41 ..
drwxr-xr-x 2 root root 1024 2007-03-09 01:57 bin
drwxr-xr-x 2 root root 1024 2007-01-18 23:30 boot
drwxr-xr-x 11 root root 3072 2007-04-02 23:03 dev
drwxr-xr-x 16 root root 2048 2007-04-02 23:01 etc
drwxr-xr-x 4 root root 1024 2007-01-02 23:18 home
drwxr-xr-x 4 root root 2048 2007-03-09 01:57 lib
drwx------ 2 root root 12288 2005-01-19 07:51 lost+found
drwxr-xr-x 2 root root 1024 2005-01-02 14:36 mnt
dr-xr-xr-x 2 root root 1024 2005-01-03 22:27 proc
drwxr-xr-x 3 root root 1024 2005-05-05 01:22 root
drwxr-xr-x 2 root root 1024 2007-01-02 23:18 sbin
drwxrwxrwt 11 root root 2048 2007-04-02 23:20 tmp
drwxr-xr-x 8 root root 1024 2005-01-19 07:51 usr
drwxr-xr-x 12 root root 1024 2005-01-19 07:51 var
Zum Abschluss noch das Kommando
cd /
umount /mnt/tmp
Bei mir muss da nun irgendwas fehlen. Wenn ich nur wüsste, was... Danke. |
|
| Nach oben |
|
 |
GblubbR
Golden User 
Anmeldungsdatum: 29.03.2006 Beiträge: 643 Wohnort: Würzburg
|
Verfasst am: 08 Apr 2007 19:57 Titel: |
 |
|
Hallo,
bei mir gibts da tatsächlich ein swapfile.
Wie man das aber anlegt ist mir nicht ganz klar.
| Code: | root@ipcop:/ # ls -la
total 131618
drwxr-xr-x 16 root root 1024 2005-04-09 18:39 .
drwxr-xr-x 16 root root 1024 2005-04-09 18:39 ..
drwxr-xr-x 2 root root 1024 2007-03-25 17:54 bin
drwxr-xr-x 2 root root 1024 2007-03-25 17:24 boot
drwxr-xr-x 11 root root 3072 2007-04-07 12:20 dev
drwxr-xr-x 16 root root 2048 2007-03-25 17:54 etc
drwxr-xr-x 4 root root 1024 2006-10-11 21:08 home
drwxr-xr-x 4 root root 2048 2007-03-25 17:54 lib
drwx------ 2 root root 12288 2005-01-19 07:51 lost+found
drwxr-xr-x 2 root root 1024 2005-01-02 14:36 mnt
dr-xr-xr-x 47 root root 0 2007-04-07 12:20 proc
drwxr-xr-x 8 root root 1024 2007-03-25 17:19 root
drwxr-xr-x 2 root root 2048 2006-10-11 21:08 sbin
-rw------- 1 root root 134217728 2005-01-19 07:52 swapfile
drwxrwxrwt 15 root root 1024 2007-04-08 01:20 tmp
drwxr-xr-x 8 root root 1024 2005-09-22 22:21 usr
drwxr-xr-x 12 root root 1024 2005-01-19 07:51 var
root@ipcop:/ #
|
blubb |
|
| Nach oben |
|
 |
etux
Power User  
Anmeldungsdatum: 24.10.2005 Beiträge: 137 Wohnort: Berlin
|
|
| Nach oben |
|
 |
shadowrun
Golden User 
Anmeldungsdatum: 23.05.2006 Beiträge: 907
|
Verfasst am: 08 Apr 2007 22:54 Titel: |
 |
|
| Wollte ich gerade poste ^^^^ |
|
| Nach oben |
|
 |
|