Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: GentooForum.de. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

18.05.2008, 15:46

mounten ins home verzeichnis

Hallo,

ich habe zwecks sicherheit nun eine partition nur mit daten, diese möchte ich in mein homeverzeichnis mounten.

Das habe ich dann in die /etc/fstab eingetragen, dann bin ich aber nicht mehr in der Lage mich einzuloggen.
Es fehlen alle Verzeichnisse /home/antivalent/.* woran liegt denn das?
Wenn ich es bspw. die platte nach /home/antivalent/data mounte klappt alles, das will ich nur nicht!

Sowas schonmal jemandem untergekommen?

Mfg
Thinkpad T61
Intel Core Duo 2.00 GHz
KDE
linux-2.6.28-gentoo-r5/ gcc-4.1.2

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »antivalent« (19.05.2008, 08:23)


2

18.05.2008, 15:54

Hallo,
kannst du mal bitte deine fstab posten?
Hört sich so an als wolltest du eine Partition nach /home/antivalent mounten. Wenn du dass machen wilsst mußt du vorher alle Daten aus deinem home ordner auf die neue Partition kopieren.

3

18.05.2008, 16:30

also die Zeile um die es geht ist diese:

Quellcode

1
/dev/sda3    	/home/antivalent/				reiserfs	defaults		0 0


ich vermute im Moment, dass das auch noch ein rechte problem ist.
Die Dateien, sollte ich alle kopiert haben.
(bzw. wie würdest du die Dateien alle kopieren, vllt. habe ich auch da was falsch gemacht?)


Mfg
Thinkpad T61
Intel Core Duo 2.00 GHz
KDE
linux-2.6.28-gentoo-r5/ gcc-4.1.2

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »antivalent« (18.05.2008, 16:41)


4

18.05.2008, 16:53

Kann schon an den Rechten liegen, ich habs damals mit einer tar pipe gemacht.

Quellcode

1
2
cd ~/
tar c * | tar x -C /mnt/usb/

Die neue Dest Partition ist unter /mnt/usb gemountet. Tar hat den Vorteil dass die Erstellungsdaten unangetastet bleiben. Wenn nötig kannst du noch ein '-p' dazu packen, aber bei mir gings auch ohne.

5

18.05.2008, 16:55

Hi,

vielleicht hat sich auch der Pfad zum Heimatverzeichnis geändert, dann mußt Du auch die /etc/passwd anpassen ...

Kopieren würde ich mit "cp -av"

6

18.05.2008, 17:14

Ich würde auch tippen, dass /home/antivalent/ momentan einem anderen gehört, als antivalent.
Ein "ls -l /home" würde dir das wohl schnell zeigen.

Ansonsten kann ich eigentlich empfehlen, nicht ein einzelnes Benutzerverzeichnis, sondern das komplette /home als eigene Partition zu setzen. Das mache ich schon immer so.
Also eine Partition für / und eine für /home, dann sind immer alle Home Verzeichnisse vom System getrennt.

mfg pyjo

7

18.05.2008, 18:56

Poste mal bitte Deine komplette fstab und die ausgabe von Mount.

ls -la /home bitte auch mal posten.

Viele Grüße

8

18.05.2008, 20:00

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
# <fs>			<mountpoint>					<type>		<opts>			<dump/pass>

/dev/sda1		/boot						ext2		defaults		1 2
/dev/sda2		/						reiserfs	defaults		0 1
/dev/sda4		none						swap		sw			0 0
/dev/sda3		/home						reiserfs	rw,user,auto		0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for 
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)

none			/dev/shm					tmpfs		defaults 		0 0
none 			/proc 						proc 		defaults 		0 0


so dass mal die fstab, also KDE hab ich jetzt hinbekommen, bootet alles korrekt nur mit den Rechten scheint noch was nicht zu stimmen, bspw. wenn ich ne kompiliertes c++ prog starten will erhalte ich permission denied (sowohl als user wie auch als root)


Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# ls -la /home
total 68
drwxr-xr-x 30 root   	root    	1248 May 18 19:25 .
drwxr-xr-x 22 root   	root     	544 Apr 26 00:29 ..
-rw-r--r--  1 root   	root      	53 May 18 16:13 .DCOPserver_ibmT61_:0
-rw-r--r--  1 antivalent antivalent	53 May 18 15:35 .DCOPserver_ibmT61__0
-rw-------  1 antivalent antivalent   189 May 18 15:35 .ICEauthority
drwx------  4 root   	root      	96 Apr 17 16:14 .Trash-0
drwxr-xr-x  2 antivalent antivalent   136 Apr 10 11:35 .VirtualBox
-rw-------  1 antivalent antivalent   100 May 18 15:35 .Xauthority
drwx------  3 antivalent antivalent	80 Apr  4 00:21 .adobe
-rw-------  1 antivalent antivalent 11294 May 18 16:34 .bash_history
-rw-r--r--  1 antivalent antivalent   127 Apr  3 18:43 .bash_logout
-rw-r--r--  1 antivalent antivalent   193 Apr  3 18:43 .bash_profile
-rw-r--r--  1 antivalent antivalent   551 Apr  3 18:43 .bashrc
drwx------  5 antivalent antivalent   120 May 16 16:41 .config
-rw-------  1 antivalent antivalent	26 Apr  3 18:45 .dmrc
drwxr-xr-x  4 antivalent antivalent   136 Apr 24 10:16 .eclipse
drwxr-xr-x  2 antivalent antivalent   688 Apr 25 19:36 .fontconfig
drwxr-xr-x  2 antivalent antivalent   336 May 16 15:09 .freemind
drwxr-xr-x  3 antivalent antivalent   104 Apr  3 21:31 .fullcircle
drwxr-xr-x 22 antivalent antivalent   928 May  8 10:51 .gimp-2.4
drwxr-xr-x  2 antivalent antivalent	48 May 16 13:22 .helix
drwxr-xr-x  2 antivalent antivalent	80 Apr 11 21:44 .imagej
drwxr-xr-x  3 antivalent antivalent	80 Apr 22 14:14 .java
lrwxrwxrwx  1 root   	root       	7 May 18 16:16 .kde -> .kde3.5
drwxr-xr-x  4 antivalent antivalent   224 May 18 16:37 .kde3.5
-rw-------  1 antivalent antivalent   160 Apr  3 18:45 .kderc
drwx------  3 antivalent antivalent	72 Apr  3 18:46 .local
drwx------  3 antivalent antivalent	80 Apr  4 00:21 .macromedia
drwxr-xr-x  3 root   	root     	168 May  7 16:56 .mc
drwx------  6 antivalent antivalent   176 Apr  8 18:57 .mozilla
drwxr-xr-x  2 antivalent antivalent   200 Apr  7 10:45 .mplayer
-rw-r--r--  1 antivalent antivalent   339 May  1 12:40 .nvidia-settings-rc
drwxr-xr-x  3 antivalent antivalent	72 May  9 14:58 .ooo-2.0
drwx------  5 antivalent antivalent   280 May 16 14:11 .purple
drwxr-xr-x  2 root   	root     	176 May 18 15:35 .qt
-rw-------  1 antivalent antivalent  1153 May  9 14:58 .recently-used
-rw-r--r--  1 antivalent antivalent  2100 May 16 16:53 .recently-used.xbel
drwx------  2 root   	root      	80 Apr  9 10:42 .ssh
drwx------  4 antivalent antivalent	96 Apr 14 13:30 .thumbnails
drwxr-xr-x  3 root   	root      	96 May 16 16:15 .vlc
drwxr-xr-x  2 antivalent antivalent   200 May 16 13:54 .xine
-rw-------  1 antivalent antivalent   909 May 18 16:38 .xsession-errors
drwxr-xr-x 37 antivalent antivalent  1600 May 18 19:59 antivalent


Mfg
Thinkpad T61
Intel Core Duo 2.00 GHz
KDE
linux-2.6.28-gentoo-r5/ gcc-4.1.2

9

18.05.2008, 20:30

Hallo

Ich verstehe zZt nicht so ganz was du eigentlich genau vor hast, wenn es ein "Umzug" deines /home Verzeichnis auf eine andere Partition werden soll, so gibt es auch hierfür eine Gentoo Anleitung.
Schau mal hier:
http://www.gentoo.org/doc/en/articles/partitioning-p1.xml

10

18.05.2008, 21:00

ok, die Anleitung ist ja ganz nett, aber hilft mir nicht weiter.

Mit meinem Home Verzeichnis sollte eigentlich alles in Ordnung sein, mein verbleibendes Problem ist nun, vermutlich ein Rechte Problem.
Wie ich oben schon beschrieben hatte habe ich nun folgendes Problem, bspw. wenn ich ein kompiliertes c++ prog starten will erhalte ich permission denied (sowohl als user wie auch als root) als Fehlermeldung.
Mir ist nur nicht so ganz klar, woran das jetzt noch liegt!

Mfg
Thinkpad T61
Intel Core Duo 2.00 GHz
KDE
linux-2.6.28-gentoo-r5/ gcc-4.1.2

11

18.05.2008, 22:53

Hm.. so wie es nach deinem ls -la /home ausschaut hast du dein home Verzeichnis nach /home kopiert, statt nach /home/antivalent

Mal zum vergleich, bei mir schaut es so aus, mein User heißt josefg

Quellcode

1
2
3
4
5
6
kraftwerk josefg # ls -la /home
insgesamt 2
drwxr-xr-x  3 root   root     96 26. Okt 2007  .
drwxr-xr-x 22 root   root    592 18. Mai 02:46 ..
drwxr-xr-x 35 josefg josefg 1904 18. Mai 21:17 josefg
-rw-r--r--  1 root   root      0 17. Apr 2007  .keep


Zitat aus deiner fstab

Quellcode

1
/dev/sda3	 /home	 reiserfs  rw,user,auto  0 0
ändere dies bitte mal zu:

Quellcode

1
/dev/sda3      /home  reiserfs  defaults,users   0 0


Wenn du so immer noch nicht weiter kommst, dann poste doch bitte noch die Ausgabe von

Quellcode

1
mount
wie bereits von Planeshift gefordert.

MfG
josef.95

12

19.05.2008, 06:58

Gut möglich, das mount ohne angabe von der exec/noexec Option, die Partition als noexec mounted. Macht sicherheitstechnisch Sinn.

Dann kann auf dieser gemounteten Partition nicht mal root Apps ausführen.

Das ist genauso, wie wenn mount per default die Partition read-only mounted. Auch dann kann root nicht drauaf schreiben, hm?
http://www.dyle.org
IM-Account (Jabber!) sind auf meiner HP ...
There is no place like /home

http://www.gentooforum.de
http://www.gentoofreunde.org

<div>how to annoy a web developer?</span>

13

19.05.2008, 08:23

@josef.95

also mit

Quellcode

1
/dev/sda3      /home  reiserfs  defaults,users   0 0

läuft wieder alles glatt!

Danke an alle
Thinkpad T61
Intel Core Duo 2.00 GHz
KDE
linux-2.6.28-gentoo-r5/ gcc-4.1.2