[SOLVED] Clarification on LUKS system installed on USB Flash Drive

I'm trying to install Arch with LUKS on a flash drive. To do that, I have partitioned it as follows:
# blkid
/dev/sdb1: UUID="EA15-01CE" TYPE="vfat"
/dev/sdb2: UUID="23b2be0d-7eb8-48e1-9da6-bd56f7bfd741" TYPE="ext2"
/dev/sdb3: UUID="1bf28f95-fd45-4b02-806b-2338f95eb22d" TYPE="crypto_LUKS"
/dev/mapper/cryptroot: UUID="30d10da4-62d3-440d-af9e-0bd79b6fb8fb" TYPE="ext4"
/dev/sdb1 is a 600 MB FAT32 partition for data, /dev/sdb2 is an ext2 /boot partition, and /dev/sdb3 contains the encrypted root.
The wiki article on installing Arch Linux on a USB key states that I need to have udev rules for specially mounting th root filesystem, since the drive mappings can change (https://wiki.archlinux.org/index.php/In … ash_memory). Do I really need to do that, since it is already being mounted into /dev/mapper? My grub2 configuration looks like this, does it seem right?
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX="cryptdevice=/dev/disk/by-uuid/1bf28f95-fd45-4b02-806b-2338f95eb22d:cryptroot"
... rest is the default /etc/grub/default/ ...
I've already added the "encrypt" hook to mkinitcpio.
Also, here is my fstab:
# /etc/fstab: static file system information
# <file system> <dir> <type> <options> <dump> <pass>
/dev/mapper/cryptroot / ext4 defaults,noatime 0 1
/dev/disk/by-uuid/23b2be0d-7eb8-48e1-9da6-bd56f7bfd741 /boot ext2 defaults, noatime 0 2
My question is, does this seem okay? I cannot test this right now since I only have access to an old Fedora machine which I am not allowed to reboot.
Last edited by nagaseiori (2013-03-19 03:19:45)

Well I think it looks ok, but I would change fstab into this:
# /etc/fstab: static file system information
# <file system> <dir> <type> <options> <dump> <pass>
UUID="30d10da4-62d3-440d-af9e-0bd79b6fb8fb / ext4 defaults,noatime 0 1
UUID=23b2be0d-7eb8-48e1-9da6-bd56f7bfd741 /boot ext2 defaults, noatime 0 2
Probably your GRUB_CMDLINE_LINUX will work too.
Altough I use this in my grub.cfg
linux /vmlinuz-linux root=/dev/mapper/ch-ro ro cryptdevice=/dev/sda2:ar ro quiet

Similar Messages

  • How to install (using usb flash drive) os x snow leopard on 10.5?

    i have a version 10.5 (leopard), but i would like to install snow leopard (10.6). i tried using bootable usb flash drive using the "utility drive". However, it did not quite work as i expected. Does anyone know how to use bootable usb flash drive to install snow leopard on leopard?

    How to Install OS X Updates Successfully
    A. Repair the Hard Drive and Permissions:
    Boot from your current Leopard installer DVD. After the installer loads select your language and click on the Continue button. Then select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer. Now restart normally. 
    If DU reports errors it cannot fix, then you will need Disk Warrior (4.0 for Tiger) and/or TechTool Pro (4.5.2 for Tiger) to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    B. Make a Bootable Backup Using Restore Option of Disk Utility:
    Open Disk Utility from the Utilities folder.
    Select the destination volume from the left side list.
    Click on the Restore tab in the DU main window.
    Check the box labeled Erase destination.
    Select the destination volume from the left side list and drag it to the Destination entry field.
    Select the source volume from the left side list and drag it to the Source entry field.
    Double-check you got it right, then click on the Restore button.
    Destination means the external backup drive. Source means the internal startup drive.
    C. Important: Please read before installing:
    If you have a FireWire hard drive connected, disconnect it before installing the update unless you will boot from this drive and install the update on it. Reconnect it and turn it back on after installation is complete and you've restarted.
    You may experience unexpected results if you have installed third-party system software modifications, or if you have modified the operating system through other means. (This does not apply to normal application software installation.)
    The installation process should not be interrupted. If a power outage or other interruption occurs during installation, use the standalone installer (see below) from Apple Downloads to update.  While the installation is in progress do not use the computer.
    D. To upgrade:
    Insert the USB flash drive.
    Restart the computer.
    Immediately after the chime press and hold down the "OPTION" key.
    Release the key when the boot manager screen appears.
    Select the icon of the USB flash drive and click on the arrow button below the icon.
    When the installer finishes loading follow the onscreen instructions.

  • Installed itunes - usb flash drive no longer recognized

    hi,
    I installed itunes, loaded up the ipod with music, and now my computer will no longer read the files off my usb flash drive. the computer sees the "mass storage device" when I plug my drive in, but the volume/files are not coming up.
    any suggestions?
    thank you!

    Are you sure the files are still on your Flash drive.? Can you locate them in a folder on you flash drive just by going to the iTunes\iTunes Music folder and viewing the array of folders? If they are there, go back to the iTunes icon on the desktop, bring up the list of tunes, highlight them all, delete them, and go back to the Flash drive, highlight all the folders, drag them over to your blank iTunes screen and drop them. You won't get any indication anything is happening right away but they are reloading. For some reason iTunes cannot update itself with the correct pathways.
    Hope this helps, Dave.

  • Boot camp install from USB Flash Drive

    Hi Folks,
    I recently purchased a new Macbook Air. It has 10.8.3.
    I used the Boot Camp Assistant to set up the computer for Boot Camp. It went through all the steps: First, it formatted my USB Flash Drive. Next, it copied Windows installer crap from the my ISO to the USB Drive. Next, it downloaded the Apple Drivers and put them on the USB drive. Next, it restarted in order to boot from the USB drive.
    This is where I hit a wall. The computer will not bpt from the Flash Drive. It is as if the control panel has set the startup disk to "BOOTCAMP" instead of the flash drive. So when the computer restarts, it just says "No bootable device - insert boot disk and press any key."
    How can I get it to boot from the flash drive?
    Thanks In Advance
    Andy
    Corrected the error message to exact phrase.

    Hmmm... interesting... My sites I found suggested otherwise. I tried three diferent brands of jump drives and none of them actually booted the Macbook Air. The Boot Camp Assistant used them all just fine, but booting was the issue. Glad you got it to work. Would you mind posting what brand you used so other reading this thread in the future could learn?
    Also, were you just using the BCA or, did you do some other process to make it bootable first? Since the BCA formats the drive, I would think any process done ahead of time would be thwarted (as mine were).
    Thanks!

  • Installing from USB flash drive

    I am trying to install arch on my Eee PC 900ha but am having some trouble.
    I downloaded the 2008.06 usb .img install and copied it to my USB stick using dd command as shown in the wiki.  I cant get arch to load from it though.
    I have two different usb sticks I have tried this from.  The first is a kingston 8GB drive.   When I try to boot from that, it flashes a quick message that I believe says something about no OS but it flashes to quick to read.  Then just boots to windows.
    The second is actually an SD card in a USB reader.  When I try to boot from that, I am left with just a flashing cursor in the upper left and nothing else ever loads.
    Is there something else I need to do?  Does anything need to be done to the drives  before I copy arch to it?
    Thanks,
    Joe

    Here is one possible cause for the BIOS not seeing the OS.
    What are you using for the of?   something like /dev/sdb or /dev/sdb1
    You need to use dd in the form
    dd if=path_to_.iso of=/dev/sdb
    sdb points to the device, and this will properly install the MBR
    sdb1 points to a partition on the device and using it will not allow the USB stick to boot properly because the MBR will be in the wrong place.
    Pudge
    EDIT:  This is already stated in the Wiki so this probably isn't your error
    Last edited by Pudge (2008-12-31 04:25:38)

  • Mounting NTFS,FAT32 and USB FLASH drive

    Problem and problem!!
    I am going to fade up with Solaris 10. Please somebody help me!!
    Problem is with mounting my FAT32, NTFS partitions and USB flash drive (twinmos).
    How can I mount FAT32, NTFS file system and my USB flash drive in Solaris 10??

    cN: the N'th disk controller installed in the system
    tN: the SCSI TARGET id. Also used for atapi, firewire and usb mass
    storage device, but it's always 0. Use to identify a specific disk
    device on the disk controller.
    dN: the SCSI LUN id. For atapi devices this is 0 for master device,
    1 for the slave device. For usb mass storge devices this field could
    contain a value > 0 - for example usb flash card readers often
    present the slots for the various flash card formats as multiple LUNs. For simple usb flash memory sticks, this should be
    LUN 0.
    sN: the slice N from the SunOS disk label. On a media without a
    disk label, slice 2 can be used to access all of the medias contents. Solaris SPARC supports slices s0 - s7, Solaris x86
    slices s0 - s15.
    pN: on Solaris x86 only: p0 is the whole disk (similar to slice s2,
    when there's no SunOS disk label), p1 - p4 are the four primary
    fdisk partitions.
    The ":c" suffix assumes the media contains the fat filesystem in
    a separate fdisk partition, searches the fdisk partition table for
    the first partition containing a fat filesystem, and mounts the
    filesystem from that partition. On Solaris x86, instead of using
    "p0:c" you could also use one of the p1 - p4 device; but the pN
    fdisk slices don't exist on Solaris SPARC.

  • [Solved]USB Flash Drive inaccessible.

    Hi there.
    I have installed Arch Linux on my Sony laptop and I have configured it so that most stuff works. The only problem I'm facing now, is that my USB Flash Drive won't show up when I plug it in. I have tried restarting ehci service, but it does not solve anything. I had this problem many years ago with another computer running Linux, but I can't remember how it got solved. Connecting a USB-mouse works perfectly but not a flash drive. The drive is a FAT32 formatted Kingston.
    This is my dmesg log:
    [ 109.300651] usb 2-1.3: new high-speed USB device number 4 using ehci_hcd
    [ 109.613294] Initializing USB Mass Storage driver...
    [ 109.613459] scsi7 : usb-storage 2-1.3:1.0
    [ 109.613577] usbcore: registered new interface driver usb-storage
    [ 109.613579] USB Mass Storage support registered.
    [ 110.614456] scsi 7:0:0:0: Direct-Access Generic Flash Disk 8.07 PQ: 0 ANSI: 2
    [ 110.616674] sd 7:0:0:0: [sdc] 8237056 512-byte logical blocks: (4.21 GB/3.92 GiB)
    [ 110.617821] sd 7:0:0:0: [sdc] Write Protect is off
    [ 110.617835] sd 7:0:0:0: [sdc] Mode Sense: 03 00 00 00
    [ 110.618550] sd 7:0:0:0: [sdc] No Caching mode page present
    [ 110.618561] sd 7:0:0:0: [sdc] Assuming drive cache: write through
    [ 110.621899] sd 7:0:0:0: [sdc] No Caching mode page present
    [ 110.621908] sd 7:0:0:0: [sdc] Assuming drive cache: write through
    [ 110.787723] sdc: sdc1
    [ 110.880634] sd 7:0:0:0: [sdc] No Caching mode page present
    [ 110.880647] sd 7:0:0:0: [sdc] Assuming drive cache: write through
    [ 110.880655] sd 7:0:0:0: [sdc] Attached SCSI removable disk
    Running openbox with PCManFM. Any clues how to solve this?
    Last edited by light (2013-03-17 21:26:26)

    s1ln7m4s7r wrote:
    For what i can see from the log  there is no problem.
    Have you tried to manually mount it? To see if it is a PCManFM issue. Also, have you checked this:
    https://wiki.archlinux.org/index.php/PC … ge_devices
    Hi.
    I tried installing gvfs, apparently I uninstalled it for some reason before.   But it did not help mounting the flash drive. So I tried mounting it manually and it worked (Yaay!). But it complained that my flash drive was not mentioned in fstab. So I looked in fstab and the only ones listed is my root partion "/" and "/home". So how do I add USB mounting to fstab? I'm a little bit confused.
    And one off-topic question: Shouldn't my "/var" partion also be mentioned in fstab?
    Thanks for helping me
    Edit: This is how fstab looks right now
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    # /dev/sda2 LABEL=/
    UUID=ed07bdb6-61c6-4cc7-b98d-122a869046f1 / ext4 rw,relatime,data=ordered 0 1
    # /dev/sda4 LABEL=/home
    UUID=7448100b-682b-430f-9e59-327ce6f9f22c /home ext4 rw,relatime,data=ordered 0 2
    Last edited by light (2013-03-17 20:54:38)

  • How to install USB flash drive in windows 7

    Could anyone please help to install USB flash drive to Windows 7. This will enable me to hook up keyboard and mouse to my laptop. Thank you so very much for any assistance.   

    Hi,
    Could you please help us to know what is your computer, Please use the following instructions for find out the model/product of your machine:
      http://h10025.www1.hp.com/ewfrf/wc/document?lc=en&​cc=us&docname=c00033108
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • [solved] Suddenly no permissions on specific USB flash drive

    Hi,
    since yesterday I can't delete or create new files on my primary USB flash drive.
    I then tried my other USB drive and it works without a problem.
    Both are from the same manufacturer and formated with the FAT16 file system. When I check the permissions of the files/folder I see myself as owner with read/write permissions on both drives.
    the error message on the console is:
    rm: cannot remove 'foo': Read-only file system
    I'd really like to give you more information but honestly I don't know where to look since one works and the other suddenly stopped working.
    \edit: Checked dmesg:
    [ 769.912866] FAT-fs (sdb1): error, fat_get_cluster: invalid cluster chain (i_pos 123716903)
    [ 769.912871] FAT-fs (sdb1): Filesystem has been set read-only
    Seems to be the problem. Any ideas?
    Thanks in advance!
    Last edited by Barghest (2012-06-20 07:06:48)

    I wasn't aware that FAT filesystems had a concept of file permissions or ownership...
    First of all, reboot if you recently updated your system. Because the linux package (the kernel) was also updated. Then install and use gparted to format the drive.

  • How do i install and boot mac os 10.4 on a usb flash drive?

    i want to make a bootable flash drive for my powerbook g4 and i have a mac os 10.4 on a install disk.. i want to be able to boot from the flash drive.

    At some point in the past, when the hardware was more recent, some said they
    were able to make it work. To boot a PowerPC G4 iBook (USB2.0 ports) from a
    USB flash drive memory device. The read/write speed of the USB flash had to
    be optimal and the capacity large enough to accommodate the booting and also
    the necessity for Virtual Memory to run on the USB flash drive, as with a HDD.
    Some suggested they made a clone of a working system, boot from USB flash.
    https://www.google.com/?gws_rd=ssl#q=ibook+g4+boot+from+usb
    There still are some bits and pieces of information pointing to discussions or
    other topics of similar concept; some of the older sites aren't online any more
    where claims and 'proof' were given that this worked out OK. Figuring the older
    Apple portables were adapted to use CF or other camera memory cards, for use
    in systems prior to OS X...
    Sounds like a fun diversion, to take ones mind off weather, and other incidentals.

  • [SOLVED] Clone Archlinux to USB flash drive

    Hello,
    I want to clone an existing Archlinux installation (x86-64)  from a hard drive to a 32 GB USB flash drive. I want to be able to boot from the USB stick on my Win7 labtop.
    I already took some measures to prepare my hard drive (with gparted). After moving all movies, pics etc to external stores and shrinking the home drive (sda4), it now looks like this:
    - sda1 Boot (small)
    - sda2 Swap (small)
    - sda3 Root ( ca.8GB)
    - sda4 Home (ca. 22GB)
    I tried to take an image of the entire hard-disk (ca. 250GB) with clonezilla and restore it to the USB flash drive, but got an error message - original disk to big (250GB vs 32GB), besides only ca 30GB of the 250GB being assigned to partitions.
    Now I'm looking for a way to bring only the necessary partitions from the harddisk to the USB stick, hoping to have exactly the same Archlinux configuration as a bootable installation on the USB stick afterwards (bootable on a Win7 labtop ... and maybe from my main Archlinux machine too). There is a wiki article about the topic, but its rather about installing a fresh system than cloning an existing system. The related questions on the forum (searching in 'installation' for 'clone usb') did not answer my question.
    Maybe somebody did successfully what I'm planning to do and can give me some tips?
    Last edited by 4on6 (2012-04-16 12:57:01)

    4on6 wrote:Create two new partitions - with gparted p.ej.? And do I have to worry about the filesystems - must they be the same like for the original partitions on my hard-disk?
    I prefer Gparted, it's easy as cake
    The filesystems don't have to be the same as the original partitions. I prefer ext4 (universally supported) or jfs (uses very little CPU), but I recommend you ext4.
    In fact, you can use a hard drive instead of a flash drive and this is how you clone a Linux installation manually!
    4on6 wrote:So I mount both - source and destination partitions (/mnt/dest/ suggests it ...)?
    Yes. I mount the source partition in /mnt/source and the destination partition in /mnt/dest, and then I issue
    rsync -av /mnt/source/ /mnt/dest
    and wait for it to finish. Then I unmount the partitions and mount the other ones and repeat the same thing.
    4on6 wrote:I create that /boot folder on the flash drives root partition, right? Won't that cause problems later on with rsync, when I update the installation and there is an additional folder on the target partition?
    Since the root directory you'll aready copy on the flash disk won't have the /boot directory, simple do a
    mkdir /mnt/dest/boot
    while your destination partition is still mounted. Unmount the source root partition, mount the boot one and then type:
    rsync -av /mnt/source/ /mnt/dest/boot
    and GRUB and the kernel will be copied to the /boot folder on the destinaton partition on the flash disk.
    Make sure that in /mnt/dest/etc/fstab you comment out the line for mounting the /boot partition, if any.
    4on6 wrote:I've seen those UUIDs as output of a linux command (mount? fdisk?), but I don't recall which one - how do I get these UUIDs?
    Use Gparted, right click any partition and click Information. In the window that appears, in the middle you can double-click the UUID and press Ctrl-C to copy it. Then you can paste it in the text editor and use it for /etc/fstab or /boot/grub/menu.lst. That's why I love Gparted for such stuff.
    4on6 wrote:Do I send this command from the live Arch-CD, and is it the only command necessary (I have not much experience with grub)?
    Yes, since Arch uses GRUB 1 on the installation CD you can uste the command I gave you to reinstall GRUB on the flash disk with the settings you already entered for the /boot/grub/menu.lst file.
    Make sure you boot the CD in 64 bit mode if the Arch you installed is 64 bit. Just to be safe.
    4on6 wrote:I will ...
    Be very careful, I didn't and lost ALL my files by mistake in typing. Triple-check the directory you are currently working in! ALWAYS make a backup!
    4on6 wrote:Great that this is possible, hope I manage to get it done. Thanks again.
    You're welcome. Please inform me if this little tutorial suited you so I can make a wiki entry for it, if the admins allow.

  • Install Arch on USB flash drive (partitioning and UEFI)?

    I am trying to install Arch on a USB flash drive. However I have few questions... in particular about pratitioning and UEFI.
    What partition table should I use? dos or gpt? and from this... what partitioning tool should I use? (cfdisk, parted, gdisk... etc)?
    Also... I am going to be using this USB flash drive with a new computer that has a UEFI BIOS. Should I do anything different because of this? (Have a different boot flag?)

    I think you need to read up on UEFI.  Depending on what partitioner you use the boot flag can mean something entirely different. 
    MBR(dos) or GPT is a personal preference, so asking that is like asking someone else what your favorite soap should be.  There is one exception though.  I have heard of some systems that have firmware bugs that won't allow GPT/bios and some that won't allow MBR/UEFI.  There are also some machines that won't do a damn thing if they aren't MBR partitioned, but those all tend to not be UEFI.
    As far as the tool to use, if you want to use GPT then use gdisk and friends, of you want to use MBR(dos) use fdisk and friends.  Or you can learn how to use parted, which can apparently handle both.  But, for example gdisk offers a number of different tools that can all achieve the same thing.  Again, it is like asking someone else if you should prefer boxers or briefs...

  • Usb flash drive read only problem [solved]

    Hi, im using spacefm, i have udevil and udisks2 installed, i can read my USB flash drive but i cannot delete files, i tried gparted that use spacefm as well and i can delete files from the usb flash drive with no problems, any ideas?
    i solved i installed ntfs-3g and i can delete files again
    thanks
    Last edited by adcdam (2013-04-08 01:01:22)

    I installed it and got this error : now my Macbook wont even see the flash drive...

  • Installing Leopard from USB flash drive

    Basically i need to install Leopard from a USB flash drive on my Macbook, but i will sum up my issue: (I'm afraid i'm not a computer-"geek", so bear with me when i try to explain the issue :-))
    My macbook hdd recently died on me, so put in a new, clean hdd. I now need to install Leopard on the new hdd from a DMG-file.
    So, i have an 8GB USB flash drive and DMG-file of Leopard.
    I formatted the USB flash drive to NTFS, and copied the 6+GB DMG-file onto the flash drive.
    I tried booting from the flash drive by holding down the option key, but a blank screen shows up with a mouse pointer. There is no Flash drive or install icon to select.
    Can anyone tell me, what i'm doing wrong?

    Hi Dweepe;
    On top of everything else the other posters pointed out, I would suggest that formatting the USB flash drive to NTFS is not doing you any favors either. NTFS is a propriety file system from Microsoft which the Mac can only read with special software install.
    My suggestion is to replace your optical drive. A new one can probably be purchased for much less then the problems you are creating for yourself in your attempts to work around replacing it.
    Allan

  • HT201250 Hello i am using TimeMachine to back-up entire Mac image (data + system) on an usb-local drive. I would like (on top of it) add a specific plan to back up some files on a remote network drive. Does TimeMachine support multiple back-up plans ? How

    Hello i am using TimeMachine to back-up entire Mac image (data + system) on an usb-local drive. I would like (on top of it) add a specific plan to back up some files on a remote network drive. Does TimeMachine support multiple back-up plans ? How ?

    Time Machine is capable of backing up to multiple locations, and can be used to back up to both a local hard drive and a networked drive (provided that that drive is in or connected to a Time Capsule or another Mac that is sharing it over the network). The catch, though, is that you can't specify different things to back up to different destinations. Whatever you exclude from Time Machine backups is excluded from ALL backups, and whatever is included is included on all.
    So, get a large enough drive that you can back up everything you want in all locations, or use something else for maintaining the network backup.
    More information on these topics can be found here:
    How do I set up Time Machine to a shared drive on another Mac?
    How do I set up Time Machine to a Time Capsule or Airport Extreme?
    "Rotating" Time Machine backup disks

Maybe you are looking for

  • Dup in tool bar

    Getting Started, Yahoo, Most Visted are dups

  • Installing Microsoft Office properly

    When I bought my mac macbook pro I bought it without office. It had on it already preinstalled a 30 day trial of office that I never used. I recently installed Microsoft for mac on my mbp. Therefore I had both the 30 day trial and the newly installed

  • How many Objects created??

    Hi Friends, I am really confused with this question,can someone please tell me how many objects would be created by the following code??My answer is two("java" on the heap and the normal new String() Object),am i right??? public class Objects{   publ

  • I accidentally put the wrong email while setting up my iTunes account. How do I fix this please help?!

    My credit card information is on there and I'm afraid the person might use that and buy songs or movies off of it. I can't see anything to do about it becaus eyou have to verify it thrpugh your email. Please please help! Thank you!

  • Droplet overwriting created file when saving

    I having issues with my droplet.I'm using CS4. I created an action that opens the pdf file, resizes it to 500 width, saves to a drop folder (NOT the same as original image folder) and then closes. I created a droplet for this action. I have overides