LVM + LUKS + TRIM @ root partition

Hi.
I'm installing a fresh arch linux PC right now with LVM + LUKS and TRIM because i have one SSD , and UEFI mobo.
SSD has a physical partition for the /boot and the rest one used with LVM where a virtual group created called "lvmRootPool" which contains two logical volumes ("lvmRootPool-root" and "lvmRootPool-swap")
The lvmRootPool-swap was kept for swap and
the lvmRootPool-root for /.
Here comes the question. I want to enable TRIM for that disk (i know the security risk) and following this guide i have to add a specific line with discard keyword in /mnt/etc/crypttab (i'm before chroot). But when i open the /mnt/etc/crypttab it has a note saying
Do not list your root partition here, it must be set up beforehand by the initramfs (/etc/mkinitcpio.conf)
So what i supposed to do ? Should i add that line at crypttab file or not ?
lvmRootPool-root /dev/sda2 none luks,discard
Also , is it possible to use TRIM for swap ? I think that isn't but maybe something have been changed that i don't know.
Thank you.
Last edited by netpumber (2015-05-24 18:06:40)

maybe your missing pieces are: https://wiki.archlinux.org/index.php/So … IM_for_LVM and https://wiki.archlinux.org/index.php/Dm … encryption
In a nutshell:
For encryption you need to change the kernel parameter in your bootloader, add encryption and resume hook to mkinitcpio.conf. If the hooks are at the right spots, it just works for swap as well.
For LVM passthru there is a setting described in the link above
You still need the discard flags in your fstab.

Similar Messages

  • [solved] kernel 2.6.27 - open LUKS encrypted root partition fails

    Hi,
    after updating to kernel 2.6.27 the passphrase for my LUKS encrypted root partition does not work anymore.
    I get this error messages:
    Enter LUKS passphrase:
    device-mapper: table: 254:0 crypt: Error allocating crypto tfm
    device-mapper: ioctl: error adding target to table
    device-mapper: ioctl: device doesn't appear to be in the dev hash table.
    Command failed: No key available with this passphrase.
    Enter LUKS passphrase:
    With a old (2.6.25) vanilla kernel it works.
    any ideas?
    EDIT
    Solved.
    The Problem was that I had this line in my mkinitcpio.conf to get rid of the padlock-error-message at boot.
    #CRYPTO_MODULES="aes_i586 aes_generic sha256_generic"
    With kernel 2.6.27 there are new / more modules needed to open the LUKS encryptet root partition.
    So I removed the line from mkinitcpio.conf and deletet the padlock modules in /lib/modules/2.6.27-ARCH before regenarating the initrd image.
    Thanks to GerBra for the tip.
    Last edited by SiD (2008-10-22 11:41:56)

    I'm not shure, but think ... yes.

  • Trouble with luks non root partition

    hello,
    today i struggled with creating an encryptet archlinux installation.
    what i want is to encrypt my root and all other partitions with luks.
    basically i used the guide on the archwiki ( https://wiki.archlinux.org/index.php/Dm-crypt_with_LUKS ),
    but iam always failing at the same point.
    my setup is a bit more complex, but to describe my problem i want to use a simple testcase
    /dev/sda with 2 partitions
      /dev/sda1    as /boot
      /dev/sda2    as crypto_LUKS
    /dev/sdb with 1 partition
      /dev/sdb1    as crypto_LUKS
    /dev/sda2 should be / and /dev/sdb1 f.eks. /home
    iam using passphrases for both partitions.
    i edited the HOOKS line in mkinitcpio.conf and added "encrypt" before "filesystems",
    and i also edited the crypttab to somethink like this:
    sdb1_crypt /dev/sdb1 none luks
    my fstab entry for /home looks like
    /dev/mapper/sdb1_crypt /home ext4 rw,relatime,data=ordered 0 1
    so far so good, when iam booting iam prompted for passphrases 2 times. first time to encrypt and mount the root-partition, which works fine.
    second time for the /home partition, but then the boot process stucks and systemd times out
    [ OK ] Found device /dev/mapper/sdb1_crypt
    [ OK ] Started Cryptography Setup for sdb1_crypt
    [ OK ] Reached target Encryptet Volumes
    [ TIME ] Timed out waiting for device dev-mapper/sdb1_crypt
    [ DEPEND ] Dependency failed for /home
    [ DEPEND ] Dependency failed for Local File Systems
    iam thrown to emergency shell then.
    /dev/mapper/sdb1_crypt exists, but when iam trying to mount it with
    mount /dev/mapper/sdb1_crypt /mnt
    it says
    mount: special device /dev/mapper/sdb1_crypt does not exist
    cryptsetyp says , that /dev/mapper/sdb1_crypt is inactive.
    anyway i can luksOpen it manually with
    cryptsetup luksOpen /dev/sdb1 foo
    enter passphrase again and now iam able to mount /dev/mapper/foo
    what am i missing in my here?
    thanks for helping !
    ineb

    I just worte this. It dose not cover the LVM part. However, you do not need to do anything for that.
    Just add this between "keymap encrypt" and "filesystems" in the HOOKS= array
    lvm2
    Also, becuase you have more then mone parition that is encrypted and needs to be decrypted at boot, you may need to have this the the /etc/default/grub instead of what what I put in the post I linked to.
    GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda2:root cryptdevice=/dev/sdb1:home"
    The `grub-mkconfig -o /boot/grub/grub.cfg` command WILL find all your LVM2 lv's with no problem and configure grub.cfg correctly. You just need to edit /etc/default/grub and use that command to rebuild the grub.cfg
    Other then that this post should solve your problems.
    https://bbs.archlinux.org/viewtopic.php … 2#p1209702
    Last edited by hunterthomson (2012-12-25 02:40:23)

  • Can't get lvm/luks to boot - cannot find root partition

    Hi,
    I'm trying to get a dm-crypt on top of lvm to boot but without success so far. I followed http://wiki.archlinux.org/index.php/Sys … r_dm-crypt and http://wiki.archlinux.org/index.php/Ins … AID_or_LVM, everything works fine (I can mount the partition) but when I try to boot from it, it cannot find the crypted partition and fails.
    USELVM="yes"
    HOOKS="base udev usb usbinput lvm2 encrypt filesystems"
    root=/dev/mapper/sda2 cryptdevice=/dev/sda2:root2-lvol0 ro
    jan@jan ~/src/xf86-video-ati $ ll /dev/mapper/
    insgesamt 0
    crw-rw---- 1 root root 10, 62 21. Feb 2008 control
    brw------- 1 root disk 254, 0 21. Feb 2008 root
    brw------- 1 root disk 254, 1 21. Feb 2008 root2-lvol0
    brw------- 1 root disk 254, 2 21. Feb 2008 sda2
    /dev/mapper/root is my current encrypted / without lvm
    The boot process successfully identifies the lvm /dev/mapper/root2-lvol0 and continues with hook 'encrypt' but doesn't ask me for a passphrase but goes on to hook 'filesystems' and fails then because it can't mount the correct root-partition obviously.
    There's only /dev/mapper/root2-lvol0 and /dev/mapper/control when I'm in the rescue sh from initrd.
    Anyone got that combination to work?
    - Jan

    Reboot, at the sound of the chime (not before) depress the option key, when the startup manager appears choose OSX.

  • Attempting to resize my root partition on LVM

    My root partition is currently full, so I want to resize it.  I'm using LVM and the filesystem is ext4, so I assumed it should be easy enough. My plan was to reduce my /home to make space.  However, when following the instructions in the wiki get the following error:
    # resize2fs /dev/vg/syshome 450G
    resize2fs 1.42.4 (12-June-2012)
    Filesystem at /dev/vg/syshome is mounted on /home; on-line resizing required
    resize2fs: On-line shrinking not supported
    According to https://ext4.wiki.kernel.org/index.php/ … esystem.3F however, online resizing should be possible.
    What am I missing?
    Last edited by phunni (2012-08-03 20:37:26)

    First, install and use ncdu to check what's eating up all the space.
    $ ncdu / --exclude /home --exclude /media
    Maybe it's easily fixed, like a log file or something. Speaking of which, learn2logrotate. Here's my /etc/logrotate.conf.
    Then if you still want to grow the root partition, try this: https://wiki.archlinux.org/index.php/LV … cal_volume
    Next time please specify in the title that it's about LVM.

  • LVM+LUKS+GPG-encrypted keyfile?

    Hello everyone!
    I'm coming from Gentoo (just can't handle the compiling-without-distcc anymore!), where I had an LVM+LUKS+GPG-encrypted keyfile setup for my root partition, and would like to continue that with Arch here.
    I know with LUKS you can append keys/passwords, so I just went ahead with the "password" install method that was well documented. 
    Is there any current easy-method for going about the route I'm looking for?  I've been searching around and mostly finding "it can be done" but not necessarily how to do it.   Would anyone have any information for me on this? 
    Thanks in advance!

    The best info on LVM2/Luks I have found so far:
    http://sunoano.name/ws/public_xhtml/lvm.html
    http://sunoano.name/ws/public_xhtml/dm-crypt_luks.html

  • [CLOSED + MOVED]Activate lvm2 on ext3 root partition

    Hello guys,
    I want to move to lvm2 on my arch installation, I haven't used any lvm before. So here's what I did so far:
    1. shrink root partition using gparted to 7 gigabytes
    2. created an lvm partition with size 8 gigabytes
    3. migrated all files from the root partition to the lvm partition (in single user mode: # rsync -axSX / /newpartition)
    4. added lvm2 hook before the filesystems hook in /etc/mkinitcpio.conf according to http://wiki.archlinux.org/index.php/Con … #Using_lvm
    5. regenerated the initramfs image using # sudo mkinitcpio -g /boot/kernel26.img
    5a. added a grub entry with root=/dev/vg/root (I have no idea what the difference is between that and /dev/mapper/vg-root)
    5b. edited /etc/fstab to use /dev/vg/root (again, no idea if /dev/mapper/vg-root would have been more appropriate) as root mountpoint "/"
    6. Rebooted
    7. Unfortunately, I cannot copy-paste the output, but upon reboot, the initramfs loads fine, it seems to recognize to lvm2 volume, but then says "trying to open console - not found" or something like that and then kernel panics on me.
    Any ideas?
    thanks!
    CLOSED+MOVED:Moving this question elsewhere, as this topic seems too advanced for this subgroup.
    Last edited by awayand (2010-01-13 12:44:11)

    I used reiserfs for many years, many partitions, many distros and had no problems. Every now and then I'd use ext3 but there were a few issues. I got a new laptop in January and decided to take the plunge: shrunk vista, small ext2 /boot and the rest set up as an encrypted partition with LVM2, all logical volumes set up as ext4 (except swap!). I've been very impressed with ext4 stability.
    Oh, and step (5) edit fstab to reflect the new file systems, make sure /etc/mtab doesn't exist.

  • Extending root partition

    Hi
    We have installed an Oracle VM server. We have 3 VM 's in it. In one of the machine we have installed two database.
    The root partition is 5gb. which is now 99% full.
    My question is, how can I extend the root partition.
    this is result of df-h command:
    Filesystem Size Used Avail Use% Mounted on
    /dev/xvda2 3.0G 2.9G 1.3M 100% /
    /dev/xvda1 92M 37M 50M 43% /boot
    tmpfs 5.4G 7.7M 5.4G 1% /dev/shm
    /dev/xvdb1 237G 201G 24G 90% /u01
    /dev/xvdd 296G 229G 53G 82% /u03
    Appreciate your help
    Thanks
    Edited by: dba88 on 5 Jun, 2013 6:50 PM

    Hi,
    I have a littel experience with XEN, but when i think like a Linux administrator it is not possible to extend the disk xvda directly because the full size of disk xvda is used and you are not using the LVM concept.
    i advice you to create a new partion in the disk xvdb (xvdb2) and move your home directory to this partition (you can add the mount in the fstab file).
    I hope this can help you
    Best Regards

  • [solved] Encrypted root partition decrypts, not recognised on boot

    Hello everyone
    As per the wiki entry on system encryption with LUKS, I have an unencrypted boot partition (sda1) and a second encrypted partition (sda2) containing everything else, including root. This is on an eeepc 901 (I'm posting here, though, as I understand this as a mounting issue rather than laptop/netbook specific).
    I have just done a full system upgrade, including moving to kernel 2.6.34-ARCH. Now, although I am prompted for the passphrase, which is accepted. I subsequently see the following:
    ::Checking Filesystems [BUSY] fsck.ext2: No such file or directory while trying to open /dev/mapper/root
    /dev/mapper/root:
    The superblock could not be read or does not describe a correct ext2 filesystem.
    If the device is valid and it really does contain an ext2 filesystem (and not swap or
    ufs or something else), then the superblock is corrupt, and you might try running
    e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
    Runnig ecfsck -b 8193 /dev/mapper/root simply results in that error message being repeated. Googling and searching the forum only really found this thread to be anything similar. As per the suggestions there, the encrypted partition is last in /etc/fstab and the <options> value is populated:
    /dev/sda1 /boot ext2 defaults 0 1
    /dev/sdb1 /mnt/sdb1 vfat rw #This is an sdhc card permanently inserted
    /dev/mapper/root / ext2 defaults 0 1
    /etc/crypttab is entirely commented out, as it advises the root partition needs to be defined in the initramfs.
    I can decrypt and open the partition using systemrescuecd, and fsck confirms the partition is clean. Equally, I can access the decrypted partition from the maintenance shell I get dumped into.
    I'd be very grateful for any suggestions.
    Last edited by Sagittar (2010-07-17 03:40:49)

    Thanks for responding. I can confirm /dev/sda2 is ext2: after mounting both partitions with the -r flag, df -T reports ext2 file systems. (The theory is that ext2 helps prolong the life of the SSD in the eee pc. Not that that's entirely relevant here.)
    I can't see a way of booting off sysresccd with root=/dev/sda2 without decrypting /dev/sda2 first. I am able to do that from Grub. Is there something I'm missing?
    However, when I pay more attention to what happens on sysresccd when I decrypt the partition, I get the following:
    % cryptsetup luksOpen /dev/sda2 root
    Enter passphrase for /dev/sda2:
    device-mapper: remove ioctl failed: Device or resource busy
    Key slot 0 unlocked.
    So, although I can then mount /dev/sda2 (or, to be precise, /dev/mapper/root) as normal, my guess is that the third line is a big clue as to why my normal boot process fails. I am pursuing that now.

  • Smallest possible root partition?

    I'm trying to remotely (SSH) convert a machine from Ubuntu Server to Arch Linux.
    The owner of the machine does not have any external storage available (e.g., flash drives) - he switched over to using Apple products almost exclusively and has been using cloud services and such to store everything.
    The machine's partition table currently looks like:
    # fdisk -l
    Disk /dev/sda: 320.1 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x000af6e3
    Device Boot Start End Blocks Id System
    /dev/sda1 * 2048 499711 248832 83 Linux
    /dev/sda2 501758 625141759 312320001 5 Extended
    /dev/sda3 625141760 625142447 344 83 Linux
    /dev/sda5 501760 625141759 312320000 8e Linux LVM
    Disk /dev/mapper/Pauls--Ubuntu--Server-root: 317.8 GB, 317785636864 bytes
    255 heads, 63 sectors/track, 38635 cylinders, total 620675072 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00000000
    Disk /dev/mapper/Pauls--Ubuntu--Server-root doesn't contain a valid partition table
    Disk /dev/mapper/Pauls--Ubuntu--Server-swap_1: 2009 MB, 2009071616 bytes
    255 heads, 63 sectors/track, 244 cylinders, total 3923968 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00000000
    Disk /dev/mapper/Pauls--Ubuntu--Server-swap_1 doesn't contain a valid partition table
    # parted /dev/sda print
    sda sda1 sda2 sda3 sda5
    james@Pauls-Ubuntu-Server:~$ sudo parted /dev/sda print
    Model: ATA WDC WD3200AAJS-0 (scsi)
    Disk /dev/sda: 320GB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos
    Number Start End Size Type File system Flags
    1 1049kB 256MB 255MB primary ext2 boot
    2 257MB 320GB 320GB extended
    5 257MB 320GB 320GB logical lvm
    3 320GB 320GB 352kB primary ext4
    Would it be possible, via a creative combination of fstab and symlinks, to have a root partition of ~200 MB? What issues might arise?

    Depends on what you have on it. If /var, /home, /usr, /boot, /etc, and /opt are on on their own partitions, you could probably get away with a root that was just a few MB. Each of those that is on the root partition will add to the requirements, generally /etc doesn't take too much, /boot can, depending on how many kernels you have, and /opt depends completely on whether you use any programs that get installed there; I have none. /srv is something else to consider if you run apache or something.
    Of course, putting /usr and /var on their own partitions creates some other challenges, and those will be two of your larger dirs.
    Last edited by Scimmia (2013-12-05 18:27:51)

  • Copied my Arch root partition to a new one but I can't boot [SOLVED]

    I booted to my arch live cd and copied my Arch / partition (/dev/sda1) to an empty partition (/dev/sda9) via a cp -a command.  The new partition should now contains an exact copy of my old root partition.  I also modified the /etc/fstab in the new partition to reflect the new block device for the root filesystem.  I also added a line to my menu.lst to boot it.  I didn't do something right because I get a kernel panic when grub boots into the new partition.
    menu.lst entry:
    title Arch Testing
    root (hd0,8)
    kernel /boot/vmlinuz26 root=/dev/sda9 ro quiet vga=773 acpi_enforce_resources=lax vga=773
    initrd /boot/kernel26.img
    Ideas?
    EDIT: Just read this wiki page
    The fix as root:
    mount /dev/sda9 /mnt
    cd /mnt/dev
    rm console ; mknod -m 600 console c 5 1
    rm null ; mknod -m 666 null c 1 3
    rm zero ; mknod -m 666 zero c 1 5
    mount -o bind /dev /mnt/dev
    mount -t proc none /mnt/proc
    mount -o bind /sys /mnt/sys
    cd /
    chroot /mnt /bin/bash
    mkinitcpio -p kernel26
    Last edited by graysky (2009-12-05 15:14:01)

    Since you can't delete Apple IDs and having multiple Apple IDs can cause confusion, what you may want to do is rename your existing Apple ID to the new email (desired Apple ID).  That would in effect do what you want, get rid of the old and give you the new.
    See "Apple ID: Changing your Apple ID"
    ivan

  • Root partition suddenly full while updating packages with Pacman

    Hello
    I'm not sure if this is a problem with Pacman, but my root partition seems to have become completely full while updating my system using pacman -Syu. Before updating anything, there seems to have been an update to a new version of Pacman (3.3.1-1) that needed to be installed before updating packages.
    In the middle of the updates, I got this error:
    error: error writing to file '/var/cache/pacman/pkg/openoffice-base-3.1.1-2-x86_64.pkg.tar.gz': No space left on device
    Also, I don't know if this is related, but I got a lot of 'not found' errors after that.
    The entire output from everything:
    ~ $ sudo pacman -Syu
    Password:
    :: Synchronizing package databases...
    core 34.6K 101.4K/s 00:00:00 [#####################] 100%
    extra 427.5K 394.3K/s 00:00:01 [#####################] 100%
    community 374.7K 362.2K/s 00:00:01 [#####################] 100%
    :: The following packages should be upgraded first :
    pacman
    :: Do you want to cancel the current operation
    :: and upgrade these packages now? [Y/n] y
    resolving dependencies...
    looking for inter-conflicts...
    Targets (1): pacman-3.3.1-1
    Total Download Size: 0.60 MB
    Total Installed Size: 2.10 MB
    Proceed with installation? [Y/n] y
    :: Retrieving packages from core...
    pacman-3.3.1-1-x86_64 618.9K 455.6K/s 00:00:01 [#####################] 100%
    checking package integrity...
    (1/1) checking for file conflicts [#####################] 100%
    (1/1) upgrading pacman [#####################] 100%
    ~ $ sudo pacman -Syu
    :: Synchronizing package databases...
    core is up to date
    extra is up to date
    community is up to date
    :: Starting full system upgrade...
    resolving dependencies...
    looking for inter-conflicts...
    Targets (42): taglib-extras-1.0.1-1 qt-4.5.3-2 liblastfm-0.3.0-4
    loudmouth-1.4.3-1 libmtp-0.3.7-1.1 amarok-2.2.0-1 apr-1.3.9-1
    db-4.8.24-1 apr-util-1.3.9-3 apache-2.2.13-3 bluez-4.54-1
    python-2.6.3-1 dbus-python-0.83.0-2.1 device-mapper-2.02.53-1
    eclipse-3.5.1-1 gpm-1.20.6-3 perl-5.10.1-3 groff-1.20.1-3
    vim-7.2.266-1 gvim-7.2.266-2 heimdal-1.2.1-7 inkscape-0.46-13
    iproute2-2.6.29-2 lib32-db-4.8.24-1 lib32-heimdal-1.2.1-7
    libical-0.44-1 libsasl-2.1.23-2 lm_sensors-3.1.1-2
    lvm2-2.02.53-1 nexuiz-data-2.5.2-1 nexuiz-2.5.2-1
    redland-1.0.9-4 openoffice-base-3.1.1-2 pam-1.0.4-2
    php-5.3.0-5 pstoedit-3.50-1 ruby-1.9.1_p243-2 soprano-2.3.1-1
    texlive-bin-2009.4-1 texlive-core-2009.15574-1 wget-1.12-1
    xchat-2.8.6-5
    Total Download Size: 1354.95 MB
    Total Installed Size: 2035.02 MB
    Proceed with installation? [Y/n] y
    :: Retrieving packages from core...
    db-4.8.24-1-x86_64 4.7M 432.0K/s 00:00:11 [#####################] 100%
    device-mapper-2.02.... 479.0K 287.9K/s 00:00:02 [#####################] 100%
    gpm-1.20.6-3-x86_64 173.2K 243.7K/s 00:00:01 [#####################] 100%
    perl-5.10.1-3-x86_64 13.5M 412.5K/s 00:00:33 [#####################] 100%
    groff-1.20.1-3-x86_64 4.1M 365.7K/s 00:00:12 [#####################] 100%
    heimdal-1.2.1-7-x86_64 2.8M 368.5K/s 00:00:08 [#####################] 100%
    iproute2-2.6.29-2-x... 489.0K 303.8K/s 00:00:02 [#####################] 100%
    libsasl-2.1.23-2-x86_64 118.5K 252.4K/s 00:00:00 [#####################] 100%
    lvm2-2.02.53-1-x86_64 930.3K 327.3K/s 00:00:03 [#####################] 100%
    pam-1.0.4-2-x86_64 537.8K 289.5K/s 00:00:02 [#####################] 100%
    wget-1.12-1-x86_64 672.4K 308.0K/s 00:00:02 [#####################] 100%
    :: Retrieving packages from extra...
    qt-4.5.3-2-x86_64 26.9M 418.8K/s 00:01:06 [#####################] 100%
    liblastfm-0.3.0-4-x... 223.4K 252.0K/s 00:00:01 [#####################] 100%
    loudmouth-1.4.3-1-x... 80.8K 183.8K/s 00:00:00 [#####################] 100%
    libmtp-0.3.7-1.1-x86_64 439.4K 309.5K/s 00:00:01 [#####################] 100%
    amarok-2.2.0-1-x86_64 10.9M 486.0K/s 00:00:23 [#####################] 100%
    apr-1.3.9-1-x86_64 328.5K 332.4K/s 00:00:01 [#####################] 100%
    apr-util-1.3.9-3-x86_64 237.6K 322.3K/s 00:00:01 [#####################] 100%
    error: failed retrieving file 'apache-2.2.13-3-x86_64.pkg.tar.gz' from archlinux.unixheads.org : Connection timed out
    error: failed retrieving file 'apache-2.2.13-3-x86_64.pkg.tar.gz' from mirror.cs.vt.edu : Not Found
    error: failed retrieving file 'apache-2.2.13-3-x86_64.pkg.tar.gz' from mirror.cs.vt.edu : File unavailable (e.g., file not found, no access)
    bluez-4.54-1-x86_64 671.6K 361.7K/s 00:00:02 [#####################] 100%
    python-2.6.3-1-x86_64 15.2M 442.0K/s 00:00:35 [#####################] 100%
    dbus-python-0.83.0-... 177.4K 225.6K/s 00:00:01 [#####################] 100%
    eclipse-3.5.1-1-x86_64 162.0M 457.1K/s 00:06:03 [#####################] 100%
    vim-7.2.266-1-x86_64 8.6M 437.9K/s 00:00:20 [#####################] 100%
    gvim-7.2.266-2-x86_64 1115.4K 216.9K/s 00:00:05 [#####################] 100%
    inkscape-0.46-13-x86_64 18.4M 464.6K/s 00:00:41 [#####################] 100%
    libical-0.44-1-x86_64 281.3K 283.7K/s 00:00:01 [#####################] 100%
    lm_sensors-3.1.1-2-... 133.2K 228.9K/s 00:00:01 [#####################] 100%
    redland-1.0.9-4-x86_64 307.4K 275.7K/s 00:00:01 [#####################] 100%
    error: error writing to file '/var/cache/pacman/pkg/openoffice-base-3.1.1-2-x86_64.pkg.tar.gz': No space left on device
    error: failed retrieving file 'openoffice-base-3.1.1-2-x86_64.pkg.tar.gz' from mirror.cs.vt.edu : Not Found
    error: failed retrieving file 'openoffice-base-3.1.1-2-x86_64.pkg.tar.gz' from mirror.cs.vt.edu : File unavailable (e.g., file not found, no access)
    error: error writing to file '/var/cache/pacman/pkg/php-5.3.0-5-x86_64.pkg.tar.gz': No space left on device
    error: failed retrieving file 'php-5.3.0-5-x86_64.pkg.tar.gz' from mirror.cs.vt.edu : Not Found
    error: failed retrieving file 'php-5.3.0-5-x86_64.pkg.tar.gz' from mirror.cs.vt.edu : File unavailable (e.g., file not found, no access)
    error: error writing to file '/var/cache/pacman/pkg/pstoedit-3.50-1-x86_64.pkg.tar.gz': No space left on device
    error: failed retrieving file 'pstoedit-3.50-1-x86_64.pkg.tar.gz' from mirror.cs.vt.edu : Not Found
    error: failed retrieving file 'pstoedit-3.50-1-x86_64.pkg.tar.gz' from mirror.cs.vt.edu : File unavailable (e.g., file not found, no access)
    error: error writing to file '/var/cache/pacman/pkg/ruby-1.9.1_p243-2-x86_64.pkg.tar.gz': No space left on device
    error: failed retrieving file 'ruby-1.9.1_p243-2-x86_64.pkg.tar.gz' from mirror.cs.vt.edu : Not Found
    error: failed retrieving file 'ruby-1.9.1_p243-2-x86_64.pkg.tar.gz' from mirror.cs.vt.edu : File unavailable (e.g., file not found, no access)
    error: error writing to file '/var/cache/pacman/pkg/soprano-2.3.1-1-x86_64.pkg.tar.gz': No space left on device
    error: failed retrieving file 'soprano-2.3.1-1-x86_64.pkg.tar.gz' from mirror.cs.vt.edu : Not Found
    error: failed retrieving file 'soprano-2.3.1-1-x86_64.pkg.tar.gz' from mirror.cs.vt.edu : File unavailable (e.g., file not found, no access)
    error: error writing to file '/var/cache/pacman/pkg/texlive-bin-2009.4-1-x86_64.pkg.tar.gz': No space left on device
    error: failed retrieving file 'texlive-bin-2009.4-1-x86_64.pkg.tar.gz' from mirror.cs.vt.edu : Not Found
    error: failed retrieving file 'texlive-bin-2009.4-1-x86_64.pkg.tar.gz' from mirror.cs.vt.edu : File unavailable (e.g., file not found, no access)
    error: error writing to file '/var/cache/pacman/pkg/texlive-core-2009.15574-1-any.pkg.tar.gz': No space left on device
    error: failed retrieving file 'texlive-core-2009.15574-1-any.pkg.tar.gz' from mirror.cs.vt.edu : Not Found
    error: failed retrieving file 'texlive-core-2009.15574-1-any.pkg.tar.gz' from mirror.cs.vt.edu : File unavailable (e.g., file not found, no access)
    error: error writing to file '/var/cache/pacman/pkg/xchat-2.8.6-5-x86_64.pkg.tar.gz': No space left on device
    error: failed retrieving file 'xchat-2.8.6-5-x86_64.pkg.tar.gz' from mirror.cs.vt.edu : Not Found
    error: failed retrieving file 'xchat-2.8.6-5-x86_64.pkg.tar.gz' from mirror.cs.vt.edu : File unavailable (e.g., file not found, no access)
    warning: failed to retrieve some files from extra
    error: failed to commit transaction (File unavailable (e.g., file not found, no access))
    Errors occurred, no packages were upgraded.
    ~ $
    Also, I haven't restarted my system yet. Should I try and see what happens?
    Thanks!

    This happened to me recently. I could not restart my laptop properly due to lack of space on my root partition.
    The error during boot was along the lines of:-
    Starting D-BUS system messagebus   - Failed
    Failed to start message bus: Failed to close "var/run/dbus.pid": No space left on drive
    Hardware Abstraction Layer - Failed
    everything else during the boot was as normal till I started to type in my username - but couldn't because the keyboard was inactive.
    I used a Wolvix live CD to investigate and found a QT4 file in the packman cache which was 6.9GB in size (compared to the normal 27mb size). Once that was deleted and the drive/partition error checked everything was back to normal. So before you reboot I would definitely recommend clearing any oversize file out of your packman cache, or just clearing the whole cache.
    Last edited by Nixie (2009-10-05 17:16:13)

  • How big of a root partition should I have?

    I am new to Archlinux and Linux in general. I recently installed my first Arch system but I have not yet installed a desktop environment for I am trying to learn the command line.  I was planning on using this weekend to set up a desktop environment but I cannot decide which one to use, so I will try them all (or at least Gnome and Xfce).  My question is how big of a root partition should I have to give me ample space to play around including having more than one desktop environment installed at once.  I currently have a 20 GB hard drive with my root partition set to 4 GB.
    Thank You
    Morgan Smith

    If you care, here is mine:
    Name                            Flags                          Part Type                  FS Type                                     [Label]                               Size (MB)
              sda1                            Boot, NC                        Primary                   Linux ext2                                                                            41.13                     
              sda2                                                            Primary                   Linux swap / Solaris                                                                 271.44
              sda3                                                            Primary                   Linux                                                                              39851.49
              sda4                                                            Primary                   Linux                                                                              39859.71
    Where /dev/sda1 is /boot,
    /dev/sda2 is swap,
    /dev/sda3 is root, and
    /dev/sda4 is /home

  • [solved] unable to boot to the root partition on my new (usb) HDD

    hello,
    i got a "unable to determine major/minor number of root device" error message when the system try to find the root partition (after it succefully boot on the boot partition).
    Shuttle XPC SB65G2 (Mainboard FB65), usb HDD: Intenso INIC-1608L, Linux ctkarch 2.6.37-ARCH #1 SMP PREEMPT, grub legacy.
    sdb1: /boot (ext2), sdb2: swap, sdb3: / (ext4), sdb4: /home (ext4)
    of course i have a kernel compiled with usb in HOOKS in mkinitcpio.conf.
    i tried to install with sdb1: / (ext4), sdb2: swap, sdb3: /home (ext4)
    but i got another error: it can't find the file /dev/blabla (root partition) (after it succefully boot on the partition!).
    at last i found the solution: i have to comment "root (hdx,x)" in menu.lst for grub legacy!:
    # (0) Arch Linux
    title Arch Linux
    # root (hd1,0)
    kernel ... by-uuid...
    you don't need this line when you define by uuid, by label, or so...
    it seems this line perturbs the behavior of the system.
    if this can help...

    You do not need the "raw". If you do:
    ok devalias
    it will show you how other aliases are formed
    do ls -l /dev/dsk/c0t2d0s0 and you'll see the "non-raw" device path
    ok reset
    will "lock" your alias in NVRAM but it will attempt to boot from boot-device (normally disk) the next time unless auto-boot? is set to false
    ok setenv auto-boot? false
    My guess is that it could not understand "raw", reset, and booted from boot-device.
    You can:
    ok setenv auto-boot? false
    ok nvunalias altboot
    ok nvalias altboot /pci@1f,0/ide@d/dad@2,0
    ok reset
    ok boot altboot

  • [SOLVED]root partition read only after update systemd

    After update systemd today, the systemd-remount-fs.service fail to start. Root filesystem is read only I tried add rw to fstab mount option, but the root parition is still  read only. I noticed that util-linux package are installed and udev package is dropped , Does it related to my problem?
    Please advice me.
    Sorry for my bad English.
    Update
    After downgard util-linux package, the system work again 
    Update 2
    UUID in grub.conf and fstab  are inconsistent, Thanks to  tomegun for point out this problem.
    Last edited by aduser (2012-06-08 04:05:59)

    output of systemctl status systemd-remount-fs.service
    systemd-remount-fs.service - Remount Root and Kernel File Systems
    Loaded: loaded (/usr/lib/systemd/system/systemd-remount-fs.service; static)
    Active: failed (Result: exit-code) since Sun, 03 Jun 2012 01:17:42 +0800; 5min ago
    Process: 132 ExecStart=/usr/lib/systemd/systemd-remount-fs (code=exited, status=1/FAILURE)
    CGroup: name=systemd:/system/systemd-remount-fs.service
    fstab
    UUID=55326b3a-eec9-498e-8e20-0a7ddd8daf9a / btrfs rw,compress=lzo,space_cache,autodefrag 0 1
    UUID=54c17991-716b-496e-a89b-4e978f2d92a4 /boot ext2 defaults 0 1
    systemctl
    UNIT LOAD ACTIVE SUB JOB DESCRIPTION
    proc-sys...misc.automount loaded active waiting Arbitrary Executable File Formats File System Automount Point
    sys-devi...d-card1.device loaded active plugged RV630 audio device [Radeon HD 2600 Series]
    sys-devi...d-card0.device loaded active plugged 82801I (ICH9 Family) HD Audio Controller
    sys-devi...et-eth0.device loaded active plugged RTL8111/8168B PCI Express Gigabit Ethernet controller
    sys-devi...dd-sdd1.device loaded active plugged ST3120213A
    sys-devi...dd-sdd2.device loaded active plugged ST3120213A
    sys-devi...ock-sdd.device loaded active plugged ST3120213A
    sys-devi...da-sda1.device loaded active plugged WDC_WD6400AAKS-22A7B0
    sys-devi...da-sda2.device loaded active plugged WDC_WD6400AAKS-22A7B0
    sys-devi...da-sda3.device loaded active plugged WDC_WD6400AAKS-22A7B0
    sys-devi...da-sda5.device loaded active plugged WDC_WD6400AAKS-22A7B0
    sys-devi...ock-sda.device loaded active plugged WDC_WD6400AAKS-22A7B0
    sys-devi...db-sdb1.device loaded active plugged WDC_WD1002FAEX-00Z3A0
    sys-devi...db-sdb2.device loaded active plugged WDC_WD1002FAEX-00Z3A0
    sys-devi...db-sdb3.device loaded active plugged WDC_WD1002FAEX-00Z3A0
    sys-devi...db-sdb4.device loaded active plugged WDC_WD1002FAEX-00Z3A0
    sys-devi...db-sdb5.device loaded active plugged WDC_WD1002FAEX-00Z3A0
    sys-devi...ock-sdb.device loaded active plugged WDC_WD1002FAEX-00Z3A0
    sys-devi...dc-sdc1.device loaded active plugged ST980811AS
    sys-devi...dc-sdc2.device loaded active plugged ST980811AS
    sys-devi...ock-sdc.device loaded active plugged ST980811AS
    sys-devi...y-ttyS1.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS1
    sys-devi...y-ttyS2.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS2
    sys-devi...y-ttyS3.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS3
    sys-devi...y-ttyS0.device loaded active plugged /sys/devices/pnp0/00:07/tty/ttyS0
    -.mount loaded active mounted /
    boot.mount loaded active mounted /boot
    dev-hugepages.mount loaded active mounted Huge Pages File System
    dev-mqueue.mount loaded active mounted POSIX Message Queue File System
    sys-kernel-debug.mount loaded active mounted Debug File System
    tmp.mount loaded active mounted /tmp
    xs-big.mount loaded active mounted /xs/big
    xs-dev-\...pace\x5d.mount loaded active mounted /xs/dev/[workspace]
    xs-dev.mount loaded active mounted /xs/dev
    xs-dl.mount loaded active mounted /xs/dl
    xs-file.mount loaded active mounted /xs/file
    systemd-...d-console.path loaded active waiting Dispatch Password Requests to Console Directory Watch
    systemd-...word-wall.path loaded active waiting Forward Password Requests to Wall Directory Watch
    console-...daemon.service loaded active running Console Manager
    console-...-start.service loaded failed failed Console System Startup Logging
    dbus.service loaded active running D-Bus System Message Bus
    [email protected] loaded active running dhcpcd on eth0
    gdm.service loaded active running Gnome Display Manager
    [email protected] loaded active running Getty on tty1
    systemd-journald.service loaded active running Journal Service
    systemd-logind.service loaded active running Login Service
    systemd-...unt-fs.service loaded failed failed Remount Root and Kernel File Systems
    systemd-sysctl.service loaded active exited Apply Kernel Variables
    systemd-...-setup.service loaded active exited Recreate Volatile Files and Directories
    systemd-...rigger.service loaded active exited udev Coldplug all Devices
    systemd-udev.service loaded active running udev Kernel Device Manager
    systemd-...nlevel.service loaded failed failed Update UTMP about System Runlevel Changes
    systemd-...ssions.service loaded active exited Permit User Sessions
    systemd-...-setup.service loaded active exited Setup Virtual Console
    dbus.socket loaded active running D-Bus System Message Bus Socket
    systemd-initctl.socket loaded active listening /dev/initctl Compatibility Named Pipe
    systemd-journald.socket loaded active running Journal Socket
    systemd-shutdownd.socket loaded active listening Delayed Shutdown Socket
    systemd-...control.socket loaded active listening udev Control Socket
    systemd-...-kernel.socket loaded active running udev Kernel Socket
    basic.target loaded active active Basic System
    cryptsetup.target loaded active active Encrypted Volumes
    getty.target loaded active active Login Prompts
    graphical.target loaded active active Graphical Interface
    local-fs-pre.target loaded active active Local File Systems (Pre)
    local-fs.target loaded active active Local File Systems
    multi-user.target loaded active active Multi-User
    network.target loaded active active Network
    remote-fs.target loaded active active Remote File Systems
    sockets.target loaded active active Sockets
    sound.target loaded active active Sound Card
    swap.target loaded active active Swap
    sysinit.target loaded active active System Initialization
    systemd-...es-clean.timer loaded active waiting Daily Cleanup of Temporary Directories
    LOAD = Reflects whether the unit definition was properly loaded.
    ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
    SUB = The low-level unit activation state, values depend on unit type.
    JOB = Pending job for the unit.
    74 units listed. Pass --all to see inactive units, too.
    grub2 conf
    menuentry 'Broken' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-ck kernel-true-852c733e-be0d-4375-8668-d7ae049295a9' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 54c17991-716b-496e-a89b-4e978f2d92a4
    else
    search --no-floppy --fs-uuid --set=root 54c17991-716b-496e-a89b-4e978f2d92a4
    fi
    echo 'Loading Linux ck kernel ...'
    linux /vmlinuz-linux-ck root=UUID=852c733e-be0d-4375-8668-d7ae049295a9 ro rootflags=subvol=broken quiet add_efi_memmap elevator=bfq
    echo 'Loading initial ramdisk ...'
    initrd /initramfs-linux-ck.img
    The update packages
    core/btrfs-progs 0.19.20120328-2 2 -> 3
    core/device-mapper 2.02.95-4 4 -> 6
    core/cryptsetup 1.4.2-1 1 -> 2
    core/gpm 1.20.6-7 7 -> 8
    core/lvm2 2.02.95-4 4 -> 6
    extra/libglapi 8.0.3-1 1 -> 2
    extra/libgl 8.0.3-1 1 -> 2
    extra/ati-dri 8.0.3-1 1 -> 2
    extra/bluez 4.99-2 2 -> 6
    extra/consolekit 0.4.6-3 3 -> 4
    extra/gvfs 1.12.3-1 1 -> 2
    extra/gvfs-obexftp 1.12.3-1 1 -> 2
    extra/libatasmart 0.18-1 1 -> 2
    extra/libcanberra 0.28-4 4 -> 5
    extra/libpulse 2.0-1 1 -> 2
    extra/libcanberra-pulse 0.28-4 4 -> 5
    extra/mesa 8.0.3-1 1 -> 2
    extra/pulseaudio 2.0-1 1 -> 2
    extra/xf86-video-ati 6.14.99-0.20120517 0.20120517 -> 1.20120517
    community/libvirt 0.9.12-7 7 -> 8
    community/ttf-ubuntu-font-family 0.80-2 2 -> 3
    multilib/lib32-libglapi 8.0.3-3 3 -> 3.1
    multilib/lib32-libgl 8.0.3-3 3 -> 3.1
    ==> Software upgrade (new version) :
    core/util-linux 2.21.1-2 -> 2.21.2-1
    core/e2fsprogs 1.42.2-2 -> 1.42.3-1
    core/libpipeline 1.2.0-2 -> 1.2.1-1
    core/libsystemd 44-7 -> 184-2
    core/procps-ng 3.3.2-2 -> 3.3.3-1
    core/systemd 44-7 -> 184-2
    core/systemd-sysvcompat 3-1 -> 184-2
    extra/pixman 0.24.4-1 -> 0.26.0-1
    extra/xorg-server-common 1.12.1.902-1 -> 1.12.2-1
    extra/xorg-server 1.12.1.902-1 -> 1.12.2-1
    community/libuser 0.57.1-2 -> 0.57.6-1
    community/os-prober 1.49-3 -> 1.53-1
    community/systemd-arch-units 20120412-6 -> 20120528-3
    repo-ck/linux-ck-corex 3.3.7-1 -> 3.4-1
    repo-ck/linux-ck-corex-headers 3.3.7-1 -> 3.4-1
    ==> New package :
    core/systemd-tools 184-2 (required by systemd)
    Does the systemd not support btrfs subvolume as root partition??
    Last edited by aduser (2012-06-02 17:45:39)

Maybe you are looking for

  • XML Loader Exception

    I get the following exception whenever I run the XMLLoader class. Error loading stylesheet file:/C:/Documents and Settings/mfortner/jbproject/MedlineXMLLoader/medline.xslt oracle.xml.parser.v2.XSLException: XSL-1009: Attribute 'xsl:version' not found

  • Hangs up (problem with jdk?)

    Hi, we are developing an application using the Java API with Ifs 1.1.9 on Sun Solaris, Oracle 8.1.7. We parse files and an invoke perform some actions with the parsed data. Java Api and Parsing workd fine, until I encountered the following problem: I

  • Index file missing from flash web galleries

    Hi All, I usually make a flash web gallery for my clients to view and select from online. For some reason now I can't get the web module to work correctly. It is acting a little funny from the start but mainly when I export it creates the file withou

  • All my music - gone from my iPhone! What the ... is going on!?

    Twice now since upgrading to iOS6 my iPhone has "lost" all my music. This seems to happen randomly when I sync with iTunes on my PC. I went on a journey today looking forward to catching up on my audiobook and it wasn't there! This is made worse by m

  • Install

    Apps say I need Flash Player after upgrade.  I have Windows 7, IE 11 and adequate system.  Install said complete but a check from Adobe site says it isnt installed. I have uninstalled and run install again.  Same response.  What am missing?