[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.

Similar Messages

  • [solved] How to convert fs from ext2 to ext3 on root partition?

    Hello there!
    Edit: It seems that the plan works! apparently it worked for alleyoopster also on a mounted fs.
    As the title says, I want to convert my fs on / from ext2 to ext3. After some research I think I know what
    to do, but want to make sure that I don't mess anything up....
    So here is the plan:
    boot with an install disc and leave the root partition unmounted (I know that in theory the conversion should
    work on a mounted fs, but it feels awkward to me and I want to avoid it....).
    Then use the
    tune2fs -j /dev/xxx
    command (the defaults for the forced checks are ok with me). Then reboot with the CD still in place, but use
    this time root=/dev/xxx. Then I can change my /etc/fstab (ext3 should have been able to be mounted as ext2 at
    the moment). Finally I have to rebuild my initrd image with
    mkinitcpio -p kernel26
    Then I should be able to boot into my system. And now the question: Can anyone verify that this is a valid approach
    and will work? Or knows a better way to do it?
    I'm grateful for any input
    Last edited by alafanky (2007-11-26 15:41:35)

    Have a look at the man for tune2fs and mkinitcpio
    man tune2fs
    man mkinitcpio
    I am looking at doing the same and as far as I can figure out it goes like this, BUT this is not a proven method just what I am thinking of doing, Maybe someone else can correct or add to this or confirm that it will work.
    1. Add journal parameter like this:
    tune2fs -j /dev/sda1
    2. Change the partition type from ext2 to ext3 in /etc/fstab
    3. For a standard  kernel re-create ramdisk with preset parameters (no good for custom kernel)
    mkinitcpio -p kernel26
    As the system is mounted it will create the journal inode in the top level, don't delete this, it will get hidden into the filesystem on reboot.
    Let me know if you make some progress. I may get brave and try it later.
    So in answer, yes pretty much the same but I think you can do it with the fs mounted.
    Last edited by alleyoopster (2007-11-26 12:44:29)

  • 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)

  • 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.

  • [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)

  • 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)

  • Corrupted root partition - a possible rescue?

    Hello everyone, and thanks in advance for your help.
    I have an Arch box which since a few hours ago contained also Ubuntu. Then I decided to increase the size of my Arch /home partition to solve a space issue, and since I didn't use Ubuntu anymore since I installed Arch, I thought I could remove the Ubuntu partitions to make some room for my /home.
    So booted from an Ubuntu live cd and used gparted to remove the unwanted partitions. After the removal my partition table looked like this:
    /dev/sda5  /
    /dev/sda6  /boot
    /dev/sda7  /home
    /dev/sda8  /swap
    /dev/sda9   /var
    /dev/sda10 /tmp
    /dev/sda11 /usr
    /dev/sda12 /opt
    All of the above partitions used by Arch.
    Since the Ubuntu partitions were on the left of my Arch partitions, the / and /boot partitions had to be moved to the left in order for the /home partition to be grown.
    So here's the problem: while moving the root partition the system froze. I had to reboot. Then, Grub wouldn't load Arch anymore, and obviously Ubuntu did no longer exist. I loaded the Ubuntu live CD again and checked the root partition via gparted, and found that it was corrupted and not even mountable.
    And the question is: since all the other Arch partitions were left untouched, is there a possible way to reinstall only the needed files in the root partition?  Unfortunately, I didn't backup the partitions, so yes, I think I pretty much screwed it beyond repair, but I figure asking doesn't hurt.
    So thanks again for any help, and I hope I didn't miss any obvious wiki page or something. And sorry for my bad english too.

    I'd boot up a LiveCD and fsck the partition if you haven't already.
    If you have no luck there.  I've not tried it, but I can't see any reason why you couldn't:
    1) mkfs /dev/sda5 and mount it then unpack pacman and it's dependencies
    2) mount /dev/sda9 ro (or under something other than /var to preserve it and point pacman to the path of the syncdb) and mount proc, sys and dev from the livecd.
    3) chroot and 'pacman -S $(pacman -Qq)'
    4) prune the contents of directories for which a mountpoint exists
    Keep in mind that if you choose to go this way you could very well have two separate versions of packages installed (the latest under /, a previous version elsewhere).  Unless you confirm that all versions are identical to that which was installed previously, you're likely to run into trouble.
    Unless you have a reason not to, I think it would be better to have all partitions on their correct mountpoint before reinstalling packages.

  • [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.

  • Convert ext3 root to jfs

    Hello all,
    I would like to convert my root file system from ext3 to jfs. I made a first unsuccessful attempt. This is what I did:
    - Booted my laptop with systemrescue cd and mounted my root partition (/dev/sda3).
    - Copied all data from it to another partition using cp -a (except /proc and /sys).
    - Unmounted the root partition.
    - Created a jfs file system on it using 'mkfs.jfs /dev/sda3'.
    - Mounted the root partition.
    - Copied back all files to it using cp -a.
    - Created empty /proc and /sys directories.
    - Edited the /etc/fstab file and changed ext3 to jfs for the root file system.
    - Unmounted the root partition again.
    - Rebooted.
    The laptop boots, but fails to mount the file system. It says the partition is of type jfs, but then I get:
    kinit: Cannot open root device sda3(8,3)
    kinit: init not found
    Kernel panic - not syncing: Attempted to kill init!
    Can anyone see what I did do wrong? My boot partition is ext2.
    Regards,
    Kimmo

    Well, proc and sys would have been empty anyways, so it would have been OK to copy them, would have saved some steps, but that is not really relevant.
    Did you try the rescue (fallback) ramdisk? JFS is not built into the kernel. As far as that goes, I don't think any FS is is built into the kernel. You may need to rebuild the initrd, if you can boot with the rescue one.
    Hmmm... Init not found. That makes me think the directory structure did not get replicated identically.
    The procedure should have gone something like this (replace old, spare, new as need be)
    # boot rescue CD and get a root prompt
    mkdir /mnt/old
    mkdir /mnt/new
    mkdir /mnt/spare
    mount /dev/sda3 /mnt/old
    mount /dev/spare /mnt/spare
    cp -a /mnt/old/* /mnt/spare/
    umount /mnt/old
    mkfs.jfs /dev/sda3
    mount /dev/sda3 /mnt/new/
    cp -a /mnt/spare/* /mnt/new/
    umount /mnt/spare
    umount /mnt/new

  • Adding unallocated space to root partition

    Root partition is too small, so I wanted to add more space from unallocated space.
    Problem is, that I can't expand root partition and add unallocated space to it. How can I fix it?
    P.S. I used Live CD for that, but this screen is from current system (on Live CD, partitions was not locked). That's so, because it was too hard to make screenshot from Live CD.
    Last edited by daGrevis (2012-07-04 14:32:22)

    bohoomil wrote:As your sda4 seems mostly free, you can a) backup its content, b) delete it entirely, c) expand sda3, d) re-create sda4. You can as well play with moving / resizing partitions, but the previous option seems better to me. Of course, create backups and use a Live CD so that all the partitions are modified when unmounted. The only thing you should remember to do afterwards is correct your fstab with valid UUIDs.
    I'd second this. You could also (after you delete sda4 and increase the size of sda3) make an extended partition out of all the remaining space and then create a logical partition for (what is now) sda4 (it will get a different number when you do this).
    Right now your unallocated space could only be used to add to sda4, because you have used up all your primary partitions. If you make a new extended partition and then put sda4 in it as a logical partition, you will be able to make more logical partitions out of the unallocated space.
    If this is too confusing just go with bohoomil's original suggestion
    Last edited by 2ManyDogs (2012-07-04 15:50:14)

  • 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

  • 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

  • Cannot resize root partition

    i used gparted live in order to maximize the size of root partition but i can't
    Device Boot Start End Blocks Id System
    /dev/sda1 2048 718847 358400 7 HPFS/NTFS/exFAT
    /dev/sda2 * 718848 586656347 292968750 7 HPFS/NTFS/exFAT
    /dev/sda3 612048894 976771071 182361089 5 Extended
    /dev/sda4 586657792 612046847 12694528 83 Linux
    /dev/sda5 967215104 976771071 4777984 82 Linux swap / Solaris
    /dev/sda6 612048896 967213055 177582080 83 Linux
    Number Start End Size Type File system Flags
    1 1049kB 368MB 367MB primary ntfs
    2 368MB 300GB 300GB primary ntfs boot
    4 300GB 313GB 13.0GB primary ext4
    3 313GB 500GB 187GB extended
    6 313GB 495GB 182GB logical ext4
    5 495GB 500GB 4893MB logical linux-swap(v1)
    i minimize the size of sda6(home folder) in order to give more space to my root partition sda4 but i can't .gparted don't give the option to add the unallocated space to sda4.when i tried to adjust the partitions the swap partition was off
    Last edited by kosgeter (2014-04-30 21:52:13)

    That's a no-no, you can't do that
    To increase the size of sda4, there must be continuous free space after it.
    In your case it's like
    sda4
    sda5
    sda6
    You first reduce sda6 and you get free space after it, you need to move sda6(not just resize it). Also you will need to delete sda5(which is your swap) and remake it.
    Example:
    sda4 - 10GB
    sda5 - 4GB
    sda6 - 100GB
    delete sda5 and resize sda6:
    sda4 - 10GB
    4GB free space
    sda6 - 50GB
    50GB free space
    move sda6:
    sda4 - 10GB
    50GB free space
    sda6 - 50 GB
    4GB free space
    resize sda4 and create swap(sda7):
    sda4 - 60GB
    sda6 - 50 GB
    sda7 - 4GB
    Might I suggest that you use console tools instead of gparted(imho gparted is buggy). The tools in the arch install iso should do fine. Also you can't resize mounted partitions,  so you shouldn't try to touch your arch root partition while using it
    Last edited by rand_x0r (2014-05-01 16:06:31)

  • How would you split a 10 GB root partition? Would you?

    The system seems to be booting a little slow lately (been using Arch for more than a year now) and I was thinking of splitting the root partition to improve performance.
    Right now the entire OS is on a single partition. I don't have a /home partition but I can see it's usefulness:
    - files on /home are, in general, more frequently written (browser cache especially), which means less fragmentation for the root partition
    - having a noexec flag for /home so no potentially dangerous software will run from there (and why would you need to run software from /home?)
    - my /var folder takes up 102 MB, 9.706 files in 4.846 folders. Is there a filesystem that will deal well with many small files ? ReiserFS maybe ?
    So how would you split (gigabyte-wise) a 10 GB partition into /, /home and /var ? And would you ? I've been told from the IRC channel that it makes zero sense. At least not for desktop use.
    PS: I'm also switching from i686 to x86_64, so please take that into account as well. For instance I noticed that 64 bit software usually takes up more space than 32 bit.
    Last edited by DSpider (2011-05-29 11:32:04)

    Here is what's happening on my Arch box:
    . 2,1TiB [##########] /mnt
    . 61,0GiB [ ] /home
    5,2GiB [ ] /usr
    . 2,9GiB [ ] /var
    126,0MiB [ ] /opt
    83,1MiB [ ] /lib
    . 14,1MiB [ ] /boot
    10,0MiB [ ] /sbin
    . 7,3MiB [ ] /etc
    5,3MiB [ ] /bin
    . 3,0MiB [ ] /tmp
    192,0kiB [ ] /run
    20,0kiB [ ] /srv
    ! 16,0kiB [ ] /lost+found
    4,0kiB [ ] /dev
    4,0kiB [ ] /lib64
    ! 4,0kiB [ ] /root
    . 0,0 B [ ] /proc
    0,0 B [ ] /sys
    < 0,0 B [ ] /media
    Generated with ncdu.
    I have big stuff installed like a full texlive and libreoffice and I never clean my package cache. This is /var:
    . 2,6GiB [##########] /cache
    . 153,2MiB [ ] /lib
    57,1MiB [ ] /abs
    . 31,3MiB [ ] /log
    7,4MiB [ ] /tmp
    . 592,0kiB [ ] /spool
    . 132,0kiB [ ] /run
    8,0kiB [ ] /lock
    e 4,0kiB [ ] /opt
    e 4,0kiB [ ] /local
    e 4,0kiB [ ] /games
    ! 4,0kiB [ ] /enigma
    4,0kiB [ ] /empty
    @ 0,0 B [ ] mail
    And this is /var/cache
    2,6GiB [##########] /pacman
    10,9MiB [ ] /pkgtools
    3,0MiB [ ] /man
    320,0kiB [ ] /cups
    280,0kiB [ ] /fontconfig
    252,0kiB [ ] /samba
    ! 4,0kiB [ ] /ldconfig
    e 4,0kiB [ ] /hald
    /usr
    2,8GiB [##########] /share
    1,7GiB [###### ] /lib
    415,2MiB [# ] /bin
    153,9MiB [ ] /include
    149,8MiB [ ] /lib32
    15,3MiB [ ] /src
    13,7MiB [ ] /sbin
    104,0kiB [ ] /local
    I think I have a very typical desktop here: Mostly web/office stuff and some multimedia.

Maybe you are looking for

  • Apple TV no longer plays iPhoto slideshows (individually)

    I have been using AppleTV for a couple of years, primarily to play iPhoto slideshows to music on our TV's. With a recent update (either to Apple TV, iTines or iPhoto, not sure, but I think it changed after an Apple TV update) we can no longer watch o

  • Impact of Logging INDEX on Nologging object(TABLE) at the time of Recoveryt

    Hi All, If I have a TABLE which is of NOLOGGING Mode and the index on this table is of LOGGING Mode. If I want to Recover this table in case of its lost. How It will impact? Will it give any Error? Please Explain..... Thanks in Advance.

  • Sony Bridge don't detect my iphone backup

    As you can see on the screenshot i have a backup the 13/09/2014 on itunes on the right that is not detect by soy bridge for mac on the left the latest backup is the 20/10/2012. Please help me to get my old iphone backup on my new xperia Z3 compact.

  • IWeb not publishing to MobileMe

    Hi there Every time I go to publish my website to MobileMe in iWeb it tells me to sign in. I've done some research on this and the only thing I can find is messing around with the keychain. This is what I've done Apple Menu > MobileMe and clicked on

  • Question on iTunes libraries on external drives

    Back a few years ago I put my itunes music library lived in a NAS drive. If the drive was not mounted however when you launched iTunes the library would reset resulting in a blank iTunes. This was such a deal breaker for me in the end I ditched the n