LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 08-02-2009, 12:07 AM   #1
itags.org
LQ Newbie
 
Registered: Jul 2009
Location: Peking
Distribution: none
Posts: 4

Rep: Reputation: 0
Talking Encrypted root and swap on thumbdrive


Hello! I'm attempting a rather unusual install of Ubuntu, and have run into an issue. I'm trying to make a very multi-purpose thumbdrive, and I'll try to quickly explain that before the issue. Right now the thumbdrive is laid out as...

0: GRUB (legacy, MBR)
-----------
1: NTFS (24gb)
2: ext4 (1gb, /boot, active)
3:extended partition containing...
4: ext4 (15gb, /, encrypted)
5: ext4 (15gb)
6: raw (linux-swap, encrypted)

The eventual goal is to have a working portable Ubuntu, along with GRUB being able to boot some liveCDs from partition 5. The reason for NTFS is because apparently Windows XP can only handle one partition per 'removable media' and always only mounts the first, so it's still a good storage thumbdrive too.

I can do all that, I believe, but I'm having a problem with encrypted filesystems. I used the 9.04 alternate installer, created my encrypted filesystems, and installed Ubuntu on 4. When I boot to it, GRUB Stage 1 fires off, pushes to 1.5, and 2, and the next thing I see is the Ubuntu splash asking for the password to the drive with a certain UUID, which I have confirmed to be partiton 4. I type in the password, it takes it and says it's right then... nothing. It hangs forever. Without the splash in the way, I can see it is hanging at... "Begin: Waiting for encrypted device... ...".

Originally, in the initrd, it had /conf/conf.d/cryptroot containing targets for both / and swap, and only / was called by UUID, while swap was called by /dev/sda6 (a bug in the alternate installer's creation of the ramdisk?), which was incorrect on the system I was booting it on. I changed it to be that partition's UUID, and still... nothing. Not sure what to try now! Any help would be appreciated! Please don't just advise against installing it on a thumbdrive... I know it's not the 'best' idea!
 
Old 08-02-2009, 05:04 PM   #2
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,058

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
Mmmmm...
well, other Members can help with all the encryption stuff

I have a couple 3 questions if'n you don't mind...


Never seen a partition layout like that for a USB

I thought swap on a usb was a no-no??

What do you mean by "portable" ubuntu?
frugal install or full hd install?

You could use fat32 for the 1st partition too, I think?

There's many many Ubuntu based security distro's
which ubutntu?
just reg ubuntu?

Just wondering as I just use the whle usb on mine
new 8gb ext3 and have many distro's there
 
  


Reply

Tags
encrypted, root, thumbdrive


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Swap : Is it there? Is it encrypted? yeehi Linux - General 2 04-09-2009 09:42 AM
thumbdrive is auto mounting as both cd-rom & thumbdrive scott1042 Fedora 2 04-27-2007 05:03 PM
encrypted root fs ankscorek Linux - Security 4 02-03-2006 10:50 PM
automatic encrypted swap system 90-60-90 Linux - Security 2 02-09-2005 04:56 PM
Mounting USB Thumbdrive as non-root? ernestteo Linux - Hardware 6 12-24-2004 09:49 AM


All times are GMT -5. The time now is 10:39 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration