Installing Arch on an existing Slackware based system

I would like to switch over to arch.  I am using Vector Linux which is essentially Slackware 10.1 with the 2.6.12 kernel.
I would like to use a more transparent package manager.  I do not like the Slackware binary packages since you do not know how they were built.  So I often end up compilng from source and creating my own packages.
pacman / abs is a much more transparent packaging system!
Can I just install the pacman manager on my existing Vector Linux system and do a system upgrade using pacman? 
Won't that be the easist way to switch to Arch?  Or do I need to reformat my partitions and use the 0.7 arch iso?
Rob

I'd suggest a new install... you could probably save your home partition, but since a lot of other stuff is different between arch and slack, it might not work too well... think of initscripts and the organization of /opt and other structural differences. Plus the packages you have installed from slack will very likely conflict with arch packages, or you will have a lot of loose slack files lying around that never get overwritten by arch packages because they are in different locations, etc.
It is probably possible to just install pacman but I suspect it would not be the *easiest* way. :-)
Dusty

Similar Messages

  • [Solved] Dual UEFI Booting Arch against pre-existing Ubuntu install

    Hi All,
    I'm new to Arch Linux and have just managed to install it on my T530 Lenovo laptop along side a pre-existing Ubuntu installation.
    However, although I did consult the dual boot posting and article here on the site beforehand, those articles seemed to be about installing Grub. Since I already have it up and working, I was nervous about deleting it and so potentially loosing my working Ubuntu installation.
    I tried installing mounting my pre existing /boot/efi partition but the pre-existing vmlinuz-linux file (no doubt from my Ubuntu installation) prevented it from working. My solution was to create the boot folder on the same partition as my Arch installation.
    I now have an installation that works (kind of) however, it appears each time I boot up, I have to edit the Grub entry for my Arch installation to update the UUID Grub points to to get it to load up Arch. I can't find where the actual file being loaded in Grub resides (the file that it appears generates this script, is itself built from a series of predefined variables).
    I admit I am playing at the moment - I'm keen to get to grips with this distro and am up for considering all options including deleting and starting again to learn to get it set up correctly. My questions are:
    How should I have done this so that my Arch linux distro was loaded via Grub called by the UEFI and had the same booting file structure as the already existing Ubuntu installation (using the BOOTLOADER partition and the /boot/efi folders on it)
    How do I edit the Grub file for my Arch distro so it stays edited (no more retyping all the UUIDs each time I load it up
    Is there a way to get to the installation I currently have to an the more ideal state
    Details taken thanks to the bootrepair application are here:
    http://paste.ubuntu.com/10682898/
    Thanks and regards,
    Simon
    Last edited by simon_sjw (2015-04-22 11:50:52)

    I don't think there are any Ubuntu kernel images on your EFI system partition (they are in /boot, not /boot/efi).
    If you want Arch to boot in an EFI system you should mount /boot (rather than /boot/efi) to the EFI system partition.
    To do this, copy the /boot folder over to /dev/sda1 and add it to your /etc/fstab (in Arch):
    /dev/sda1 /boot vfat rw,relatime,discard,nodev,nosuid,noexec,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
    It's probably best to install & configure GRUB from Arch rather than Ubuntu because Arch mounts /boot to the ESP while all other distributions mount /boot/efi so the results may get confusing (ie, GRUB may create menu entries to boot Ubuntu with your Arch kernel and vice versa); also the Arch kernel image is booted read-write whereas most other kernel images are booted read-only.
    https://wiki.archlinux.org/index.php/GRUB#UEFI_systems
    I find the os-prober script can fail sometimes so this is probably your problem here.
    Personally, I use gummiboot to boot my Debian system by copying the kernel image & initial ramdisk to the EFI system partition using these commands in Debian (this would also work in Ubuntu):
    # mount /dev/sda1 /mnt
    # cp /vmlinuz /initrd.img /mnt
    Then I make a gummiboot menu entry; your Ubuntu entry would look like this:
    title Ubuntu
    linux /vmlinuz
    initrd /initrd.img
    options root=/dev/sda2 ro
    Add any kernel parameters after "ro" and make an entry for Arch as well (you may also need to configure /boot/loader/loader.conf as per the ArchWiki page) & install gummiboot from Arch using:
    # gummiboot install
    You can then create a post-install script at /etc/kernel/postinst.d/zz-update-gummiboot in your Ubuntu system to copy over the kernel image & initrd to the ESP whenever the kernel is updated:
    #!/bin/sh
    mount /dev/sda1 /mnt
    cp /vmlinuz /initrd.img /mnt/
    umount -R /mnt
    Make this executable:
    # chmod +x /etc/kernel/postinst.d/zz-update-gummiboot
    This method will only work if you have /boot mounted to the EFI system partition (as outlined in the Beginner's Guide).

  • Not able to install Windows 8.1 Update for x64-based Systems (KB2919355)

    My laptop is dell vostro 1014.I have upgraded my laptop to windows 8.1 pro.I am not able to install Windows 8.1 Update for x64-based Systems (KB2919355)I got the following errors from windows event viewer:
    Installation Failure: Windows failed to install the following update with error 0x800F0922: Security Update for Internet Explorer 11 for Windows 8.1 for x64-based Systems (KB2964444) without KB2919355.
    Installation Failure: Windows failed to install the following update with error 0x800F0922: Windows 8.1 Update for x64-based Systems (KB2919355).
    Anyone knows how to fix this error?
    If I run the Reset Windows Update Components, I get this:

    Hi,
    Considering that the security app or third part service may block the installation, please try the clean boot to install this update manually:
    How to perform a clean boot
    http://support.microsoft.com/kb/929135
    If the issue still persists, please upload the cbs.log under
    %WinDir%\Logs\CBS\CBS.log into Onedrive or similar network drive and share the link here.
    Kate Li
    TechNet Community Support

  • CAN'T INSTALL ANY DRIVERS ON windows 10 pro x86 based system MODEL NO. HP G245 G3 NOTEBOOK

    I have Installed windows 10 pro x86 based system on my G245 G3 notepad I can't find  any drivers from HP website .
    I have tryed win 8.1 pro 64 bit drivers but they are not working with win 10 pro 32 bit operating system.
    please help me in this regard.
    Thanks & Regards
    I appreciate hp  and its supports
    Md Rayees Ahmad
    consumer
    This question was solved.
    View Solution.

    Hi,
    Nearly all hardware vendors won't release drivers for Windows 10 until Windows 10 is officially released (not preview). Windows 10 should install drivers for your machine after few updates. Windows 10 can find all drivers (except one: finger print) for my 5 years old machine. It should be able to find drivers for newer machines).
    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.

  • Automated install Arch x86_64 root-file system the "Raspberry" way..

    Dear Archers,
    I am currently deeply interested in installing Arch as dual boot on my
    current x86_64 system.
    And yes, there is plenty information regarding this subject in Arch wiki's.
    However...
    I would like to automate the installation the "Raspberry-Pi" -way.
    Details on the "Installation tab" of:
    http://archlinuxarm.org/platforms/armv6/raspberry-pi.
    As you can see, the installation steps are easy to automate, in my opinion.
    That's why I wrote an automation script for this purpose..
    The information further suggests that there is a root-filesystem for
    Arch named: 'ArchLinuxARM-rpi-latest.tar.gz.'
    Unfortunately, I don't think this root system will function on x86_64 systems..
    So I researched if there was a root filesystem for Arch x86_64 and found filenames like 'root-image.fs.sfs' 'core.db' 'core.img'.
    But I'm unsure if these archives/images really contain a rootfilesystem similar to the ArchARm system.
    Therefore my question:
    Does anybody know if there is a similar root filesystem for x86_64 so I can reproduce the "rpi-way" installation for x86_64 systems?
    Kind regards,
    Kees Epema

    You are definitely not going to be able to simply dd arch to your machine unless you create an image to do so.  Even then, that image would become old and stale pretty quickly, possibly leading to problems getting the system up to date.
    In my opinion, the raspberry pi way to simply dd'ing an image to an SD card is a disservice to the ArchlinuxARM users.  Though seemingly the proper way to get a system running on a raspberry pi, it masks the install process and leaves the user without a clue as to what would have gone into creating the system.
    Go read the beginners guide.  Use a virtual machine to practice if you need.  Shortcuts are not going to help you with Arch.

  • Unable to install Update Windows 7 x64-based system KB2952664

    Unable to install Update Windows 7 x64-based system KB2952664,  Error code 80073701.  Internet Explorer 11 for Windows 7(although IE 11 is already installed) fails to install also(at the same time)

    Hi,
    Please try to do download oracle database 11.2.0.3.0  64 bit
    Oracle Database 11.2.0.3.0 is certified on Microsoft Windows x64 (64-bit) 7
    Thanks,
    Rajasekhar

  • Possible to install arch on a system with Broadcom wireless?

    My netbook has a broadcom BCM4313 chipset. Kernel module: brcmsmac. The latest arch installer can't properly configure my network and I don't have a wired connection at this location. The system keeps spamming messages like this on the terminal every few seconds:
    ieee80211 phy1: wl_ops_bbs_info_changed: qos enabled: false (implement)
    ieee80211 phy1: brcmsmac: wl_ops_bss_info_changed: disassociated
    ieee80211 phy1: wl_ops_bbs_info_changed: arp filtering: enabled false, count 0 (implement)
    Is it even possible to install arch linux on a system with a broadcom chipset? Or is the kernel too old, should I use another module?
    Thanks for your help!

    treadlefish could you post the wifi info from "lspci -vnn"? Then I can check if we have the same card.
    edit, here is mine:
    03:00.0 Network controller [0280]: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller [14e4:4727] (rev 01)
    Subsystem: Hewlett-Packard Company Device [103c:1795]
    Flags: bus master, fast devsel, latency 0, IRQ 16
    Memory at f0200000 (64-bit, non-prefetchable) [size=16K]
    Capabilities: [40] Power Management version 3
    Capabilities: [58] Vendor Specific Information: Len=78 <?>
    Capabilities: [48] MSI: Enable- Count=1/1 Maskable- 64bit+
    Capabilities: [d0] Express Endpoint, MSI 00
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [13c] Virtual Channel
    Capabilities: [160] Device Serial Number 00-00-00-00-00-00-00-00
    Capabilities: [16c] Power Budgeting <?>
    Kernel driver in use: wl
    Last edited by Wilco (2012-02-27 22:03:37)

  • What exactly does Arch do with existing partitions at install time?

    Hi there,
    I would like ton install linux on a computer which has already ubuntu and Vista.
    I'd like to keep ubuntu and erase vista altogether.
    My partitions look like this:
    /dev/sda1               1           5       40131   de  Dell Utility
    /dev/sda2   *           6        1918    15360000    7  HPFS/NTFS
    /dev/sda3            1918       12225    82793624+   7  HPFS/NTFS
    /dev/sda4           12225       60802   390191105    5  Extended
    /dev/sda5           12225       59676   381146112   83  Linux
    /dev/sda6           59676       60802     9043968   82  Linux swap / Solaris
    sda2 is also a dell-backup partition of some sort, /sda3 is windows.
    The less intrusive for me would be to keep /sda1 and /sda2 without modifications, install arch on /sda3. I would be nice if I could add /sda6 as arch's swap, and get a dual arch/ubuntu boot.
    Now the question. When I log into the installer, in manually-configure-block-devices, does not show the types of the partitions, says something like "raw data". I chickened out. How should I proceed to only format /sda3, and keep my precious /sda5?
    Thanks!

    gabrielvc wrote:
    No, it does not work, since cfdisk can not handle my partition table:
    FATAL ERROR: Bad primary partition 3: Partition end in the final partial cylind
    Press any key to exit cfdisk
    You can try to delete partition 3 altogether, then remake it. If that doesn't work things might become more difficult.
    edit: that probably wouldn't work if you can't start cfdisk at all. Manually with "fdisk" from another TTY could work, or using parted, but those are less simple than cfdisk..
    Last edited by litemotiv (2011-07-24 14:19:46)

  • Install Arch in an USB Flash drive from an existing image

    I want to minimize the amount of writes to the flash drive by avoiding directly installing Arch into it.
    I would like to know if it would be possible to install arch into an small partition, configure it, and then make an image of it and dump it at the USB drive(like when creating the USB install).
    Does it worth the while doing so?
    Thanks!
    Last edited by cristian.rosa (2009-03-05 14:41:11)

    Sure.  You could do that, then just rsync or cp -ax it onto the Flash drive and set up GRUB.

  • REDHAT LINUX 7.3 on nForce based systems - An installation guide.

    INSTALLING REDHAT LINUX 7.3 ON NFORCE BASED SYSTEMS.
    A) Preface
    I'm a Linux newbie, just sharing my experience with installing linux on nforce.
    in my opinion Linux is a powerful but still a nascent operating system (in terms of user friendliness atleast!). many features are extremely 'release' and 'version' dependent.  this means that, what works in redhat might not work in mandrake or what works in redhat 7.3 might not work in redhat 7.1 or likewise...
    the steps i'm listing below just reflects how i went about installing RH 7.3 on my machine (K7N420D). it MAY not work for other versions or releases.
    B) BIOS SETTINGS
    1. I recommend, PnP disabled, ACPI/APIC disabled.
    for Mandrake 8.2 install on some machines (mine included), i suggest disabling audio and network in the bios till you get a stable level 3 (console without X windows) or level 5 install. for some reason, sometimes, on some boards,  Mandrake 8.2 hangs when probing audio and lan during boot.
    C) PREPARING TO INSTALL
    1. i suggest you get the three iso images from the internet and burn them into installation disks. though there are other ways of installing, this is the simplest way of doing it.
    2. if you have windows installed already, make sure you have a windows boot floppy in case of boot problems, you can also make one for linux during installation.
    3. using windows or fdisk strip off a sufficient chunk of hard disk space from an existing partition if you don't have a free partition. you need not create any partitions, just the non-allocated space would do. (as red hat can beautifully split this partition into /boot, / & swap partitions!)
    4. i recommend using GRUB (GRand Unified Boot-loader) instead of LILO for boot management. if you prefer the same way, get good documentation/how-to for grub from the net. this will be handy if you mess up your boot partition and end up in a grub prompt during boot.
    5. goto nvidia's drivers page and get appropriate drivers. i always recommend tar balls or src.rpm files instead of pre-compiled rpms. if you are using EXACT same version of the linux release as mentioned in the drivers page you can use rpms. If you wish to upgrade your kernel or use a different version of linux then make sure you have tar balls or source rpm files. make sure you also print the installation instructions from the same page.
    6. the drivers you need are
    a. NVIDIA_nforce-1.xxxx. - you need this one for audio & lan. (found in nforce link in drivers menu in nvidia site with an instruction manual)
    b. NVIDIA_kernel-xxxx AND NVIDIA_GLX-xxxx- both these for Graphics in Xwindows. these two drivers should be exactly matched. i suggest you download all of them along with a files named NVchooser.sh found on the same page. NVchooser will tell you which pair to install for your linux kernel version and CPU.
    D) LINUX INSTALLATION
    1. boot from 1st installation disk that you made. go through the GUI installer and choose automatic partitioning, it will take you to the Disk Druid and you can select the partition in which you wanna install linux. if the partition you choose is unallocated, most of the times didk druid will make three patrtions on its own, one is /boot (boot partion), /swap (partition for swap, similar to ramdisk) and / (root partition). all the three mount-points may be allocated on the same partition too.
    2. Choose GRUB (if you prefer) as boot loader and set Linux as primary boot OS and this page would've detected windows if you've already (it may appear as DOS). Choose "MBR" to install GrUB. If you get any warning ignore it. IMPORTANT: If you have NTFS partition for windows and you had windows as primary OS, there is a reported problem that says, in some versions of the linux installer, choosing MBR to install GRUB makes it hard to boot into windows. i haven't tried that option yet as i don't have a NTFS partition. If you have an NTFS partition, you may prefer to choose the other option to install GRUB or you may choose to install it later. in either case make sure you have a boot floppy to get you into linux or windows, whichever one you want.
    3. choose automatic install if you don't want to control which packages you want to install. else choose expert installation and proceed with it.
    4. when prompted to check the packages you want to install, choose "development tools" or something similar without fail. This is for installing a C compiler which is a must have for some driver installations. (this also installs perl and other dev tools, if you're an 'expert', there's an option in this page to custom select modules)
    5. somewhere you'll be asked to provide a root password, in the same page there'll be a provision to add users other than root. create atleast one user other than root at this time.
    4. somewhere you'll be shown a list of video adapters with NVIDIA Geforce 2 generic driver already highlighted. Below this screen you'll see a "Skip X install" or something similar. CHECK THIS TAB and this will NOT install the generic driver for your integrated GPU and also will not configure the GUI environment for Linux. This makes your video configuration a little easier.
    5. now linux will install, get configured and will ask if you wanna create a boot floppy. make one just in case you
    6. RH 7.3 will not recognize your APU and integrated LAN. you can install the drivers for this later.
    7. After installation boot into Linux, if you just followed the steps above you'll nicely end up in level 3 console!
    E) INSTALLING DRIVERS
    1. Assuming you got all the drivers in CD/floppy, login as 'user', type command "su" (super user) supply root password, now you are logged in as root. read the installation manual for the NVIDIA drivers and install NVIDIA_nforce-1.xxxx drivers for audio/LAN. do these series of steps from the console prompt,
    #vi /etc/modules.conf
    press INSERT key, add the following lines,
    alias eth0 mcpeth
    alias sound-slot-1 i810_audio
    alias usb-interface usb-ohci
    press ESC, (Shift) colon, wq and Enter.
    This will save the changes you made.
    2. Now install the NVIDIA_kernel-xxxx AND NVIDIA_GLX-xxxx- drivers as per instructions. follow the steps below.
    #XConfigurator
    Choose settings that are relevant to the monitor you use and mode supported. Choose custom configuration wherever possible. If your monitor is not listed, choose 'custom' all the way through and provide hardware details such as horiz/vert freq range, video memory and clock settings (choose 'recommended').
    DO NOT LET THE XCONFIGURATOR PROBE ANYTHING. sometimes this might cause a hang that is not necessary at all.
    select all videomodes and color depths that you think your monitor will support and exit XConfigurator without any probing.
    3.  Now at the prompt do the following,
    #vi /etc/X11/XF86Config-4
    Press INSERT and make following changes.
    replace line
    Driver "nv"  
    with
    Driver "nvidia"
    In the Module section, make sure you have:
            Load   "glx"
    Remove the following lines: (or put a hash before)
            Load  "dri"
            Load  "GLcore"
    and the whole
    Section "DRI" (last three lines usually, DRI may be in lower case usually)
    Press Esc, (Shift) colon, wq, Enter to save and exit.
    4. using vi make sure you have these lines in /etc/modules.conf file
    alias char-major-195 NVdriver
    5. edit /etc/rc.d/rc.local and insert
    /sbin/modprobe nvaudio
    /sbin/modprobe nvnet
    save and exit. ( this is a crude way of loading modules but it works though!)
    6. Type "reboot" at prompt and reboot your system.
    7. get into bios and load original settings. (get back ACPI if you have windows, enable PnP OS etc)
    8. During restart linux may get you into the kudzu installer to install network drivers/audio, ignore this.
    9. login as "user" and type "startx" from console, your GUI should start smooth and you'll have video, sound, USB, LAN working (you need to fiddle a little bit more to get things work perfect) !
    10. There is extensive documentation found in the internet on these topics, have fun exploring them.
    F) TWEAKING YOUR HARD DRIVE
    most of the modern hard drives support UDMA transfers and usually linux is pretty much conservative on this option. so you might want to force linux to use UDMA. the following discussion assumes that your hard drive is /dev/hda, change it to hdb, hdc etc as per your setup.
    CAUTION: The 'hdparm' utility described here is a very powerful and dangerous if used improperly. USING hdparm IMPROPERLY MIGHT CORRUPT YOUR PARTITIONS AND RESULT IN SEVERE DATA LOSS. hdparm works with IDE drives. i'm not sure how it works on SCSI drives.
    @ console,
    1. type "man hdparm" and read through the hdparm manual atleast twice before you understand what it can do. THIS IS A MUST.
    2. login as root or get into super user mode and try the following. all commands are shown after #
    3. Benchmark the hard drive
    # /sbin/hdparm -t -T /dev/hda
    this should spit out the transfer rate both cached and sustained. note this value. if these values are close to what you expect out of your drive, you are OK. you may get out of further adventures! if the transfer rates are horrible like 3.5 Mbps etc (it was on my seagate ata IV drive!), then proceed with the tweaks. the golden rule is, after each tweak, run the benchmark and record your transfer rate. if there is no significant improvement, revert back to the default settings.
    4. # /sbin/hdparm -i /dev/hda
    note down MaxMultSect, MultSect, Modes supported : PIO/DMA, especially the mode with a 'star' in front of it. (prefered mode)
    5. 32 bit I/O : to enable 32 bit I/O over the PCI bus
    # /sbin/hdparm -c1 /dev/hda
    this usually doubles your transfer rate if the drive supports. you may need to use -c3 for some chipsets.
    6. Enable DMA and set DMA mode
    if your drive supports DMA find out the prefered DMA mode using -i option.
    # /sbin/hdparm -d1 -Xab /dev/hda, where
    ab=64 + uDMA mode number (for eg. 66 for UDMA 2)
    ab=32 + DMA mode number (for multi-word DMA mode)
    you might need to prepare the chipset to enable DMA but on most of the modern hard dirves this works. refer to the "man hdparm" for details. beware, the options to 'prepare' the chipset for DMA should be used with EXTREME caution. if you do not know what you are doing, don't try it.
    7. To set multiple sector mode I/O,
    # /sbin/hdparm -m XX /dev/hda
    where XX is the MaxMultSect value obtained using -i option. if the MaxSect is already set to this value, you need not tweak this.
    after all these tweaks run the benchmark atleast three times consecutively and average the transfer rates. make sure you don't hear grinding noises in the hard drive. use these tweaks a couple of times manually and if verything appears to be working fine, add the necessary commands to the rc.local script to execute them automatically during  start up.
    G) FINAL WORDS
    I assumed that you're a total 'newbie' to linux when writing this so i followed a conservative approach. most of the things that i described can be done in many ways, it's up to you to explore them! as usual, there MIGHT be typos and other serious errors in this guide. also the driver files that i might have mentioned here are the ones that were available when i wrote this. so you might wanna try their latest equivalents. i'm open to all healthy criticism and suggestions. when i installed linux on my nforce board, i was badly looking for an article like this on the net. i missed one, if it exists at all. so am i writing this. i hope you'll get benefitted by this in some way.
    -Venk@

    Venkat,
    Thanks for this really really amazingly accurate and exhaustive post that helped me A LOT to install linux on my machine!!! Otherwise, I think I would still be hanging with a mandrake 8.2 trying to load sound...
    My system is now fully functional but, (yes, there is a little but) I was not able to make the LAN function properly. When booting, while linux tries to load the ethernet module, I get something like:
    'mcpeth device does not seem to be present, delaying eth0 initialiation'. Then, I open an X session, I try to use the network configurator, the ethernet device is there but when trying to activate, it fails... I swear I enabled the LAN in my BIOS.
    I also tried to replace 'alias eth0 mcpeth' with 'alias eth0 nvnet' in /etc/modules.conf after reading the installation notes of NVIDIA drivers. I get a slighty different result: my boot error is now 'failed to load module'.
    It is a shame I have to boot back to Windows to use my DSL connection. I think i need some insights. It will be greatly appreciated!
    Thanks,
    Chouch
    >I'm a Linux newbie, just sharing my experience with
    >installing linux on nforce.
    Not bad for a Newbie...  

  • Install arch on a read-only filesystem

    Hi to all, I have an idea about installing arch in a particular way, a way that makes the system more secure.
    I want to install a host archlinux system on a hard disk or ssd but I want no data can be written to the storage. The host system will have a predefined set of programs and should use a ramdisk to store temporary data. It is something very similar to a ISO.
    The real computation will be handled through a series of virtualbox instances of linux ( the virtualbox images will be stored on an external hard disk, a read/write volume ).
    How could I achieve this? Through unionfs? AUFS? or some other thing?
    Last edited by pabloski (2011-02-16 16:18:11)

    I want to mount my sda2 read-only and union it with a tmpfs, so the machine is secure and the file system is the same every boot.
    I installed aufs3 with 3.2.6-1-aufs_friendly, I made a hook (as some-guy94 adviced), but it doesn't work.
    The code is:
    1. mkdir -p /root/ro /root/rw
    2. mount /dev/sda2 /root/ro
    3. mount -t tmpfs root.rw /root/rw
    4. mount -t aufs -o "dirs=/root/rw=rw:/root/ro=ro" root.union /
    At 2. it says: "mount: mounting /dev/sda2 on /root/ro failed: No such file or directory" Both files exist - I can list them just before the mount.
    3. & 4. work, but it doesn't matter as sda2 gets mounted rw on / right after (by initramfs's init, I gues).
    Can you help me with this, or point some useful howtos?
    Btw: is there a better way of debugging a hook, other than making the image and rebooting each change?
    Update: This is how they did it in larch: http://git.berlios.de/cgi-bin/gitweb.cg … cpio/hooks
    mount -t ext3 /dev/sda2 /root/ro works now.
    I used exec /sbin/switch_root as in larch3 hook and for loop from /lib/initcpio/init:109 to move /proc /dev /sys /run to the new root
    So the union mount works just fine now, my sda2/sbin/init & sda2/etc/rc.sysinit run, but the latter fails with following:
    * Mounting Root Read-Only - this is actually quite acceptable
    * Starting UDev Daemon
    * Loading Modules
    * Remounting Root Read/Write - acceptable as well
    After boot X opens and system freezes immediately (no reaction to keyboard, doesn't ping). No useful information in logs. I don't think system can run well without udev/modules. So this is udev not liking / mounted rw (as tmpfs is rw) or maybe /dev /proc /sys /run fault.
    I tried to make union mount only in rc.sysinit when /dev/sda2 is already mounted on /, but mount --move / other-dir fails.
    Any ideas what can be wrong?
    My code:
    run_hook ()
    read -p "Union mount root (y/N)? " answer
    if [[ "$answer" == "y" ]]; then
    modprobe aufs
    ro="/root/ro"
    rw="/root/rw"
    un="/root/un"
    rob="${un}/ro"
    rwb="${un}/rw"
    mkdir -p $ro $rw $un
    mount -t ext3 /dev/sda2 $ro
    mount -t tmpfs -o "size=20%" root.rw $rw
    mount -t aufs -o "dirs=${rw}=rw:${ro}=ro" root.union $un
    mkdir -p $rob $rwb
    mount --bind $ro $rob
    mount --bind $rw $rwb
    mkdir ${un}/media
    mkdir ${un}/sys
    mkdir ${un}/proc
    mkdir ${un}/dev
    /bin/mknod ${un}/dev/console c 5 1
    echo "rootfs / rootfs rw 0 0" >${un}/etc/mtab
    [ -z "${init}" ] && init="/sbin/init"
    if [ -e "${un}/${init}" ]; then
    mount
    read
    for d in proc sys dev run; do
    if [ -d ${un}/${d} ]; then
    mount --move /${d} ${un}/${d}
    else
    umount /${d}
    fi
    done
    exec /sbin/switch_root -c /dev/console ${un} ${init} ${CMDLINE}
    fi
    fi
    Last edited by kaos (2012-02-22 17:14:18)

  • How to install arch 2009.08 from hard drive? Please enlighten me

    OK, I admit I am impatient for the installation from the CD drive. Whenever possible and whatever distro I wanna try, I head first to try to install it from the hard drive. I don't remember how many times and how many distros I have done the same to, ubuntu, zenwalk, sidux, fedora, opensuse and of course arch. It rarely failed as long as I followed someone's guide, sth like "install any OS from hard drive", I do not exactly remember. And I did the same in the past with arch. But after 2009.08, it simply didn't work. I've read the article "fast install arch from existing linux system" in the wiki, it didn't work either (by the way, if someone can solve my problem, I think the article should be updated). After it boots, at some stage, it says "Use Hook [archiso]", then tell me "waiting for /dev/archiso for 30 seconds ..." then when the time due, it throws me into a ramfs shell. I've hacked for a long time, but no luck. Then I went back to download the 2009.02 iso, however, it works flawlessly.
    I did find some differences in the menu.lst/isolinux.cfg between two version.
    In 2009.02, we have
    title Boot Arch Linux Live CD
    kernel /boot/vmlinuz26 lang=en locale=en_US.UTF-8 usbdelay=5 ramdisk_size=75%
    initrd /boot/archiso_pata.img
    While in 2009.08, it is
    title Boot Arch Linux Live CD
    kernel /boot/vmlinuz26 lang=en locale=en_US.UTF-8 archisolabel=ARCHISO_AHCOHH6O ramdisk_size=75%
    initrd /boot/archiso_pata.img
    I know I can install arch from usb, but I simply wanna know what's wrong here, so guys, if you have any idea, don't hesitate to enlighten me.

    Hi, vacant, thanks for the reply. I did not notice you are the author of the article. Actually I missed the head of the article which directs me to another (the amalgamated one you mentioned). I take a look at it, it seems to make things complicated. I still miss the old days: you simply download the iso, mount it and copy all the contents into a separate partition, edit your current grub, then reboot and everything works. I don't understand how Arch could be so evolved to exclude this simple installation scheme. I am not complaining the development of Arch. In my opinion, a distro as flexible as Arch should provide as much installation strategy as possible. In this respect, I think we can learn from Ubuntu or sidux (in sidux, it provides a very convenient kernel parameter called "fromiso" which allows you to install sidux from the plain iso, that means, you even don't have to mount it and copy the contents out of it to a separate partition).
    Last edited by plmday (2009-10-25 06:25:44)

  • [SOLVED] Install to BtrFS already existing (but empty) subvolume

    I currently have a Btrfs filesystem made up of /dev/sda5 and /dev/sda6. On that filesystem, there is an Ubuntu 11.10 install in the @oneiric_main subvolume and a data subvolume (with Ubuntu /home) in the @Data subvolume. Grub2 is installed in the @oneiric_main subvolume and works fine.
    I would like to install arch to a new subvolume on the existing BtrFS filesystem. I would probably make a subvolume named @arch_2011.08 to install it on. (@arch is taken--I already tried to do this myself, installing using pacman -r <subvol_mount_point> -Sy base --ignore grub. Didn't work, has no initrd, kernel panics with VFS not syncing error) I would like to then boot Arch with Ubuntu's Grub2 since that install is working off BtrFS. How do I go about doing this?
    On the install that failed, I generally tried to follow https://wiki.archlinux.org/index.php/In … Btrfs_root, but I didn't really need/want automatic snapshots, so I didn't think I wanted to install mkinitcpio-btrfs. For it my Grub2 entry is
    menuentry "Arch (on /dev/sda6)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod btrfs
    set root='(hd0,msdos6)'
    search --no-floppy --fs-uuid --set=root d551dbac-3c7f-4f8f-a0d4-2d1f242cc42f
    linux /@arch/boot/vmlinuz-linux root=/dev/disk/by-uuid/d551dbac-3c7f-4f8f-a0d4-2d1f242cc42f rootflags=subvol=@arch ro
    I've tried to chroot to the Arch install from Ubuntu and run mkinitcpio, but that gave an error that some directory was not valid. The directory it complained about had the Ubuntu kernel version in its name, so I figured I was doing something majorly wrong. Edit:I suppose it would help if I updated the /etc/fstab. I did, but I still get the same error. The first line is "Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)"
    I'm not sure if I should try to fix the first install or just start again. Either way would get the goal:Arch installed on the BtrFS subvolume, booted with Ubuntu's Grub2.
    Last edited by Azendale (2011-12-17 22:34:16)

    @Teekay:I did mount /proc, /sys and /dev into the @arch subvolume before chrooting.
    Here's what happens when I try to chroot into the Arch install to make an initrd:
    [root@dynl:~]# mount -o subvol=@arch /dev/sda5 /mnt
    [root@dynl:~]# cd /mnt
    [root@dynl:/mnt]# mount -o bind /dev dev
    [root@dynl:/mnt]# mount -o bind /sys sys
    [root@dynl:/mnt]# mount -o bind /proc proc
    [root@dynl:/mnt]# chroot .
    chroot: failed to run command `/bin/zsh': No such file or directory
    [root@dynl:/mnt]# chroot . bash
    bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
    [root@dynl /]# ls
    bin dev home lib64 mnt proc run srv tmp var
    boot etc lib media opt root sbin sys usr
    [root@dynl /]# mount
    /dev/sda5 on / type btrfs (rw,relatime)
    udev on /dev type devtmpfs (rw,relatime,size=693104k,nr_inodes=173276,mode=755)
    sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
    proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
    [root@dynl /]# mkinitcpio
    /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
    ==> ERROR: '/lib/modules/3.1.0-030100rc10-generic' is not a valid kernel module directory
    Update: I've made progress. Instead of chrooting from Ubuntu, I chooted from the arch installation live image. I was able to run mkinitcpio -p linux. I added an initrd line to grub2:
    menuentry "Arch (on /dev/sda6)" --class gnu-linux --class gnu --class os {
    insmod part_msdos
    insmod btrfs
    set root='(hd0,msdos6)'
    search --no-floppy --fs-uuid --set=root d551dbac-3c7f-4f8f-a0d4-2d1f242cc42f
    linux /@arch/boot/vmlinuz-linux root=/dev/disk/by-uuid/d551dbac-3c7f-4f8f-a0d4-2d1f242cc42f rootflags=subvol=@arch ro
    initrd /@arch/boot/initramfs-linux.img
    The new error is :
    Decompressing Linux... Parsing ELF... done.
    Booting the kernel.
    :: Starting udevd...
    done.
    :: Running Hook [udev]
    :: Triggering uevents...done.
    Waiting 10 seconds for device /dev/sda6 ...
    mount: mounting dev/sda6 on /new_root failed: Invalid argument
    ERROR: Failed to mount the real root device.
    bailing out, you are on your own. Good luck.
    sh: can't access tty; job control turned off
    [ramfs /]#
    Also, the Arch /etc/fstab is:
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    tmpfs /tmp tmpfs nodev,nosuid 0 0
    UUID=d551dbac-3c7f-4f8f-a0d4-2d1f242cc42f / btrfs defaults,subvol=@arch 0 0
    Last edited by Azendale (2011-11-05 06:43:49)

  • Connect-SPOService : The Application ID (AppID) for which the service ticket is requested does not exist on the system.

    I am trying to connect to SharePoint in my Office 365 environment by following https://support.office.com/article/Set-up-the-SharePoint-Online-Management-Shell-environment-7b931221-63e2-45cc-9ebc-30e042f17e2c and I am getting:
    Connect-SPOService : The Application ID (AppID) for which the service ticket is requested does not exist on the system.
    Is there some setting I need to change on the O365 side? Thanks.

    Hi,
    Based on your description, my understanding is that you want connect SharePoint Online using PowerShell.
    Please make sure that the following software is installed.
    Windows Management Framework 3.0
    SharePoint Online Management Shell
    And then, open the SharePoint Online Management Shell and use the Script below to test
    whether it works.
    $User = "[username]@[tenant].onmicrosoft.com"
    $Pass = "[password]"
    $creds = New-Object System.Management.Automation.PSCredential($User,(ConvertTo-SecureString $Pass -AsPlainText -Force));
    Connect-SPOService -Url https://[tenant]-admin.sharepoint.com -Credential $creds
    Get-SPOSite
    More information:
    http://blog.falchionconsulting.com/index.php/2013/01/using-powershell-to-manage-sharepoint-2013-online/
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Cannot install Arch on raid0 (kernel panics)

    I followed the Howto in the wiki to install Arch on a Raid 0 array, but when trying to boot I keep getting errors that boil down to "no filesystem could mount root" followed by a kernel panic.
    I modified the howto to my needs:
    - created a Raid 0 array using mdadm from logical partitions /dev/sda7 and /dev/sdb7. /dev/sda6 will be /boot and /dev/sdb6 will be swap (both not in raid, of course)
    - Put filesystems in place (tried Reiserfs and ext3 for the array; ext2 for /boot seems to be fine as the boot does initialize)
    - mounting of array to /mnt
    - Edit configfiles. Mkinitcpio is the important one, I feel:
    # vim:set ft=sh
    # MODULES
    # The following modules are loaded before any boot hooks are
    # run. Advanced users may wish to specify all system modules
    # in this array. For instance:
    # MODULES="piix ide_disk reiserfs"
    MODULES="pata_jmicron ata_generic ahci ata_piix sata_sil24 raid0"
    # BINARIES
    # This setting includes, into the CPIO image, and additional
    # binaries a given user may wish. This is run first, so may
    # be used to override the actual binaries used in a given hook.
    # (Existing files are NOT overwritten is already added)
    # BINARIES are dependancy parsed, so you may safely ignore libraries
    BINARIES=""
    # FILES
    # This setting is similar to BINARIES above, however, files are added
    # as-is and are not parsed in anyway. This is useful for config files.
    # Some users may wish to include modprobe.conf for custom module options,
    # like so:
    # FILES="/etc/modprobe.conf"
    FILES=""
    # HOOKS
    # This is the most important setting in this file. The HOOKS control the
    # modules and scripts added to the image, and what happens at boot time.
    # Order is important, and it is recommended that you do not change the
    # order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
    # help on a given hook.
    # 'base' is _required_ unless you know precisely what you are doing.
    # 'udev' is _required_ in order to automatically load modules
    # 'modload' may be used in place of 'udev', but is not recommended
    # 'filesystems' is _required_ unless you specify your fs modules in MODULES
    # Examples:
    # This setup specifies all modules in the MODULES setting above.
    # No raid, lvm2, or encrypted root is needed.
    # HOOKS="base"
    # This setup will autodetect all modules for your system and should
    # work as a sane default
    # HOOKS="base udev autodetect ide scsi sata filesystems"
    # This setup will generate a 'full' image which supports most systems.
    # No autodetection is done.
    # HOOKS="base udev ide scsi sata usb filesystems"
    # This setup assembles an ide raid array with an encrypted root FS.
    # Note: See 'mkinitcpio -H raid' for more information on raid devices.
    # HOOKS="base udev ide raid encrypt filesystems"
    # This setup loads an lvm2 volume group on a usb device.
    # HOOKS="base udev usb lvm2 filesystems"
    HOOKS="base udev autodetect pata scsi sata raid usbinput keymap filesystems"
    md=0,/dev/sda7,/dev/sdb7
    I also tried adding reisferfs to 'modules' and using rootfstype=reiserfs as a kernel parameters.
    - Install kernel
    - Chrooting into the basesystem and run mdadm -D -scan >> /etc/mdadm.conf
    - Editing menu.lst of an existing installation (Ubuntu, in which incidentally raid0 runs fine)
    title Arch Linux
    root (hd0,5)
    kernel /vmlinuz26 root=/dev/md0 ro md=0,/dev/sda7,/dev/sdb7
    What am I doing wrong? I know there's something about creating nodes, but I cannot find any useful information on it. Also, perhaps I am simply missing a module?
    Last edited by crakie (2007-06-05 17:31:09)

    Still no dice I cannot find anything out of order.
    lshdw:
    00:00.0 Host bridge: Intel Corporation|Memory Controller Hub (unknown)
    00:01.0 PCI bridge: Intel Corporation|PCI Express Root Port (unknown)
    00:1a.0 USB Controller: Intel Corporation|USB UHCI Controller #4 (unknown)
    00:1a.1 USB Controller: Intel Corporation|USB UHCI Controller #5 (unknown)
    00:1a.7 USB Controller: Intel Corporation|USB2 EHCI Controller #2 (unknown)
    00:1b.0 Audio device: Intel Corp.|ICH8 HD Audio DID (snd-hda-intel)
    00:1c.0 PCI bridge: Intel Corporation|PCI Express Port 1 (unknown)
    00:1c.2 PCI bridge: Intel Corporation|PCI Express Port 3 (unknown)
    00:1c.3 PCI bridge: Intel Corporation|PCI Express Port 4 (unknown)
    00:1c.4 PCI bridge: Intel Corporation|PCI Express Port 5 (unknown)
    00:1c.5 PCI bridge: Intel Corporation|PCI Express Port 6 (unknown)
    00:1d.0 USB Controller: Intel Corporation|USB UHCI Controller #1 (unknown)
    00:1d.1 USB Controller: Intel Corporation|USB UHCI Controller #2 (unknown)
    00:1d.2 USB Controller: Intel Corporation|USB UHCI Controller #3 (unknown)
    00:1d.7 USB Controller: Intel Corporation|USB2 EHCI Controller #1 (unknown)
    00:1e.0 PCI bridge: Intel Corp.|82820 815e (Camino 2) Chipset PCI (hw_random)
    00:1f.0 ISA bridge: Intel Corporation|LPC Interface Controller (unknown)
    00:1f.2 IDE interface: Intel Corporation|SATA Controller 1 cc=IDE (ata_piix)
    00:1f.3 SMBus: Intel Corporation|SMBus Controller (i2c-i801)
    00:1f.5 IDE interface: Intel Corporation|SATA Controller 2 cc=IDE (ata_piix)
    01:00.0 VGA compatible controller: nVidia Corp.|GeForce 7600 GT (vesa)
    03:00.0 Ethernet controller: Realtek Semiconductor|RTL-8168 PCI-E Gigabit Ethernet (r8169)
    04:00.0 Mass storage controller: Silicon Image Inc.|SiI 3132 PCI-X Serial ATA Controller (sata_sil24)
    05:00.0 Ethernet controller: Realtek Semiconductor|RTL-8168 PCI-E Gigabit Ethernet (r8169)
    06:00.0 SATA controller: JMicron Technologies, Inc.|JMicron 20360/20363 AHCI Controller (ahci)
    06:00.1 IDE interface: JMicron Technologies, Inc.|JMicron 20360/20363 AHCI Controller (ahci)
    07:02.0 FireWire (IEEE 1394): Texas Instruments|TSB43AB22 IEEE1394a-2000 OHCI PHY/Link-Layer Ctrlr (ohci1394)
    07:05.0 Multimedia video controller: Conexant Inc.|iTVC15 MPEG Coder (ivtv)
    005:001 USB Hub: Virtual|Hub (hub)
    005:002 USB Human Interface Devices: USB Gaming Mouse [/dev/input/mice] (usbhid)
    002:001 USB Hub: Virtual|Hub (hub)
    007:001 USB Hub: Virtual|Hub (hub)
    006:001 USB Hub: Virtual|Hub (hub)
    001:001 USB Hub: Virtual|Hub (hub)
    004:001 USB Hub: Virtual|Hub (hub)
    003:001 USB Hub: Virtual|Hub (hub)
    ---:--- Mouse: PS/2 Mouse port [/dev/psaux] (msintellips/2)

Maybe you are looking for