Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved-please edit wiki]dm-crypt luks - drive failing
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
virtguru
Tux's lil' helper
Tux's lil' helper


Joined: 14 Aug 2010
Posts: 144
Location: Eire

PostPosted: Tue Aug 09, 2016 10:28 pm    Post subject: [solved-please edit wiki]dm-crypt luks - drive failing Reply with quote

why is this page constantly changing? Sorry if Ive missed something here , smartd gave a notice that my /home is finally failing after 7 years .

-its encrypted luks
-its xfs
-i have no lvm
-i have no desire to go lvm

what now is an ok procedure to encrypt a single drive with a single partition , i dont need lvm any containers or what not.

i looked at the https://gitlab.com/cryptsetup/cryptsetup FAQ.

directly running it on /dev/sdc and then encrypting sdc only (no sdc1) and mounting /dev/sdc through dmcrypt works. data is there.

Problem is my box when lightdm tries to access the new /home on /dev/mapper/home which is on /dev/sdc locks everything up. logging in any user will lock the box up (except root since root has /root)

am i missing something ? can we not now directly luks to /dev/sdX ? still need /dev/sdX1 ? cant remember how this was done a few years back-

cheers


Last edited by virtguru on Fri Aug 12, 2016 6:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2968
Location: Germany

PostPosted: Tue Aug 09, 2016 10:34 pm    Post subject: Reply with quote

I would not use sdx directly, not for anything, regardless if it's a filesystem, LUKS, mdadm, LVM, ...

Always use a partition table. Otherwise sooner or later something will trip you up (as soon as any partition program creates a partition table, your LUKS header is shot).

There should be nothing wrong with using filesystem on LUKS, without LVM.

If your box locks up entirely it could also be a hardware issue.
Back to top
View user's profile Send private message
virtguru
Tux's lil' helper
Tux's lil' helper


Joined: 14 Aug 2010
Posts: 144
Location: Eire

PostPosted: Tue Aug 09, 2016 10:40 pm    Post subject: Reply with quote

frostschutz wrote:
I would not use sdx directly, not for anything, regardless if it's a filesystem, LUKS, mdadm, LVM, ...

Always use a partition table. Otherwise sooner or later something will trip you up (as soon as any partition program creates a partition table, your LUKS header is shot).

There should be nothing wrong with using filesystem on LUKS, without LVM.

If your box locks up entirely it could also be a hardware issue.


I always backup the luks headers, its a rather large /home which i synced to /newdrive

/newdrive only luksformated on /dev/sdc directly as the faq (its not a hardware issue, I even formatted the new drive without luks on /dev/sdc and its fine, it doesnt lock up.

I would like to do it the old way luks on it but open the filesystem on /dev/sdc1 , although I cannot find any gentoo docs on this they have all evaporated since this was done years ago.

Any insight , Im re copying the last data off my old /home to backup but want to avoid any loss.

Thanks
Back to top
View user's profile Send private message
virtguru
Tux's lil' helper
Tux's lil' helper


Joined: 14 Aug 2010
Posts: 144
Location: Eire

PostPosted: Fri Aug 12, 2016 6:05 pm    Post subject: Reply with quote

Thanks frostschutz you did point me in the right direction I needed a partition table, sorry if a came over a bit cross its the state of our wiki.. Finally found the old way over on Arch wiki sigh , thanks for heads up

Cheers
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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