Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] /home umount in local.stop
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Moorenkopf
Apprentice
Apprentice


Joined: 18 Apr 2004
Posts: 189
Location: NRW

PostPosted: Mon Apr 03, 2006 12:00 pm    Post subject: [SOLVED] /home umount in local.stop Reply with quote

Hi,
ich hab meine /home-Partition mit dm-crypt verschlüsselt.

Jetzt muss ich in meiner fstab noauto an angeben,
Code:
/dev/mapper/foo  /home  reiserfs  noatime,noauto  0 0

deswegen hab' ich folgendes in die local.start geschrieben:
Code:
/bin/cryptsetup luksOpen /dev/sda4 localcrypt && mount /home

Funktioniert soweit auch wunderbar, vor dem Login wird nach dem LUKS-Passwort gefragt und entweder man weiß es, oder man steht ohne /home da :)

Mein Problem ist jetzt das umounten beim runterfahren:
Hierzu hab' ich entsprechend
Code:
umount /home && /bin/cryptsetup luksClose localcrypt
in die local.stop geschrieben.
Leider funktioniert das nur, wenn ich mich auslogge und dann mit Strg+Alt+Entf einen Reboot mache. Nicht, wenn ich als user den Rechner runterfahre. Sprich: Device busy

Deshalb wollt' ich mal fragen, wie man das richten kann.
Danke, Moorenkopf


Edit: Danke, ich hab' aus der Lösung ein kleines Howto gemacht: https://forums.gentoo.org/viewtopic-p-3230171.html


Last edited by Moorenkopf on Tue Apr 04, 2006 12:00 am; edited 2 times in total
Back to top
View user's profile Send private message
slick
Bodhisattva
Bodhisattva


Joined: 20 Apr 2003
Posts: 3495

PostPosted: Mon Apr 03, 2006 1:00 pm    Post subject: Reply with quote

Du könntest vor dem umount ein paar Zeilen in die local.stop einbinden die alle lokalen User "rauswerfen". Ist zwar nicht die schönste Variante, sollte aber funktionieren.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum