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

Similar Messages

  • "File ... already exists, but it is inconsistent with this one." error

    I've previously used ALPC to profile a Zuiko 12-60 on a E520 and I had no trouble at all. I had 33 different sets of 9 pictures each, and they all merged nicely into one consistent profile. The profile worked perfectly and corrected lens distortion better than any other software I've used. Now I'm trying to profile my Nikkor 10-24 on a Nikon D7000, but as soon as I try to append the 2nd set to the 1st one (same focal length and focus distance, different aperture), I get this message: "File <filename> already exists, but it is inconsistent with this one. Please select a different location or use a different file name.".
    My brother has been having this same issue and he's also using a Nikon D7000, but with a Sigma 17-70 2.8-4.0. Any ideas why this is happening? Some sort of D7000 raw conversion issue, maybe? I used ACR to convert NEF to DNG. The first profile is created and works well, though apparently not very accurate.
    I tested the one profile that is saved, at 10mm and f/3.5, and it's not very good. Distortion is clearly over-corrected. The one difference between the profile I did for the Olympus and this one is that I refocused after every shot for this one (since the wide angle really throws corner focus off when you reframe it). Could this be it? If not, what else?
    I'm using an A4 13x21 chart. It's enough to fill the frame with 9 shots at minimum focus distance.

    I am having the same problem with my d7000.  This happens regardless of software used to convert NEF files, so if I had to guess at why this is happening I would say that the d7000 maybe has a different format for its makernotes, which is where the lens information is stored, and the lens profile creator doesn't read it.
    Here's what happened when I tried to profile my 50mm f1.8 nikkor: I took 9 pictures at f1.8 and nine at f2.8. The profiling worked fine on both. So I ran it first on the f1.8 set, and saved it. Did the same for the f2.8 set and tried to save it, but it wouldn't allow me to append the file to the existing one, giving me the "inconsistent" error discussed here. I then save the second profile separately.
    I opened both on windows notepad, and this is the lensID inconsistency already discussed here:
    The profile I did with the f1.8 set had this line in it:
    <stCamera:LensID>76</stCamera:LensID>
    And the profile I did with the f2.8 set had this line:
    <stCamera:LensID>179</stCamera:LensID>

  • [svn:fx-trunk] 14009: DataGroup.getVirtualElementAt() needs to revalidate the element when the IR already exists but the data changes .

    Revision: 14009
    Revision: 14009
    Author:   [email protected]
    Date:     2010-02-05 12:53:05 -0800 (Fri, 05 Feb 2010)
    Log Message:
    DataGroup.getVirtualElementAt() needs to revalidate the element when the IR already exists but the data changes. 
    The element also needs to revalidate if it is resized, whether or not the IR existed before.  This wasn't part of the bug but Hans realized this when he did the code review.
    QE notes:
    Doc notes:
    Bugs: SDK-25354
    Reviewer: Hans
    Tests run: checkintests
    Is noteworthy for integration:
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-25354
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataGroup.as

    Please can u answer it fast

  • Install Error: SID already exists

    Hello,
    I uninstalled 9i whose SID is, say, BLNG. Now I am installing 10gR2 and I'd like to use the same SID name. But install says:
    The SID you have specified already exists on this machine. Please specify a different SID.
    I need to use the same SID. How do I get install to accept a previously used SID? Which files / registry entries do I need to change or delete.
    Thanks,
    gk

    It is much safer/better to drop a database before you uninstall Oracle software.
    Now that you have uninstalled without dropping you need to clean every single trace manually since the uninstall was not legal or complete.
    Before following these steps backup your PC and registry
    1- start your PC in safe mode, delete the parent Oracle folder from your drive.
    2- Restart in Normal mode.
    3- Open the registry using regedit.exe from start/run/
    4- delete from the registry the following entries/keys
    HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE
    HKEY_LOCAL_MACHINE/SYSTEM
    Controlset001/services/%oracle_services%
    Controlset002/services/%oracle_services%
    Now you need clean the legacy entries from your registry.
    If your OS is not Win XP you need to use regedt32.exe. If Win XP then use the regedit.exe.
    To remove the legacy entries you have to be the Administrator and change the security on the legacy keys so you can delete it.
    HKEY_LOCAL_MACHINE/SOFTWARE/SYSTEM/Controlset001/ENUM/Root/Legacy%Oracle_services%
    and the same for Controllset002.
    I suggest you’d be VERY CAREFUL with the registry, one single mistake and bye-bye Windows.
    and also drop the database with dbca before you uninstall the software, and use oradim to remove the services.
    Hope this helps
    Tony Garabedian
    If you have other Oracle products installed on you machine, make sure you delete only the uninstalled database entries/keys from the registry.
    Message was edited by:
    Tony Garabedian

  • Install error: J2E already exists

    I had to abort my first installation of the Java Sneak Preview, because my C: drive was running out of space. I am using a 2nd disk for the database. After carving out some more room on C:, I tried to cleanly and thoroughly wipe out all traces of the failed install before trying again. Unstalling MaxDB from Windows's Add/Remove Programs wouldn't work (I don't remember the exact error, but it was running the uninstall script with -all and reported it couldn't do this because I needed to get rid of an instance first ???). Since the database was on my removable D: drive, I finally got rid of it the old fashioned way: I reformatted the disk. I also deleted any trace of "J2E" I could find in the Windows XP registry. Nevertheless, my retry of the Sneak Preview install fails on a sapdb_db_create statement, with the root problem as reported in XCMDOUT.LOG that J2E already exists:
    > Subprocess starts at 20051107193441
    Execute Command : d:sapdbprogramspgmdbmcli.exe  -R d:sapdbj2edb db_create J2E CONTROL,CONTROL
    Execute Session Command : exit
    > Subprocess stops at 20051107193441
    ERR
    -24953,ERR_DBEXIST: database instance already exists
    Since I literally wiped out the database, can anyone tell me where the installation is still detecting the existence of J2E? How can I get rid of all traces?
    And since the initial problem I had was too little free disk space on my C: drive, and since I bought a second hard drive precisely to get around this problem, is it possible to direct not just MaxDB but the Was 6.40/J2EE Engine itself to my D: drive (it seemed to install on C:\usr\... without my having any choice in the matter)?

    Roland,
    That worked: After dropping the instance, I was able to cleanly deinstall MaxDB and try the Sneak Preview installation from scratch. I've rewarded points accordingly.
    However, I then ran into another problem perhaps you can help with. I will explain it here, but please let me know if you would like me to post it in a new thread, so you can potentially get separate points for this one :-).
    So here's the new problem: The installation hung during the 22nd task, Load Java Database Content. I let it run about 12 hours, before giving up, clicking Log Off, and rebooting my laptop. In jload.java.log, there are entries for the first couple minutes after that task began, then nothing. So after rebooting my machine, I crossed my fingers and tried to recontinue the installation, but I get an error, the root cause of which seems to be that the database needs to be restarted?:
    java version "1.4.2_10"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03)
    Java HotSpot(TM) Client VM (build 1.4.2_10-b03, mixed mode)
    Nov 9, 2005 12:29:51 PM com.sap.inst.jload.Jload main
    INFO: Jload -sec J2E,jdbc/pool/J2E,C:usrsapJ2ESYSglobal/security/data/SecStore.properties,C:usrsapJ2ESYSglobal/security/data/SecStore.key -dataDir D:/SP/NW04SneakPrevJavaSP11/NW04SneakPrevJavaSP11/NWSneakPreviewSP11/SAP_NetWeaver_04_SR_1_Installation_Master_DVD__ID__51030843IM01_NT_I386....SneakPreviewContentJDMP -job C:Program Filessapinst_instdirNW04SR1WEBAS_COPYONE_HOST/IMPORT.XML -log C:Program Filessapinst_instdirNW04SR1WEBAS_COPYONE_HOST/jload.log
    Nov 9, 2005 12:29:52 PM com.sap.inst.jload.Jload main
    SEVERE: couldn't connect to DB
    com.sap.dbtech.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: Cannot connect to jdbc:sapdb://IBM-GIBBONS/J2E [Restart required].
    Any idea why the 'load database content' task hung? (By the way, I have 1 GB of RAM - should be enough?) And should I manually restart the database and try to continue? If so, how do I manually restart the database from the command line?
    (Again, let me know if I should repost this in a new thread. Thanks in advance.)

  • Lightroom not putting folders in subdirectories as directed on import; then not letting me move folders to clean up because "folders already exist" (but they don't!) Please help!

    I have used Lightroom for years and have never had issues importing until a few weeks ago. I have a very organized system of files for my portraits - "Portraits" > "Babies & Families" > "2014" > "(Surname)". While importing I create a subfolder using the family surname under "Destination" in LR. It shows an italicized folder in the correct place prior to clicking "Import," but when I go to "Library" mode to select the folder, all the newly created folders are now on the root directory. I try to then drag and drop them to their proper place, but I'm told that a folder by this name already exists in that destination and won't allow the move. Tried emailing a contact at Adobe, and then followed up with a phone call, but haven't heard back. Desperately need help before my entire file system becomes one big mess. Any thoughts or advice graciously welcomed.
    Thanks,
    Anita

    Thanks for the tip. That partially took care of the problem. Now all the orphans are back together, but a new root folder called "Photos" has been created as the parent of a new set of "Portraits" > "Babies & Familes" > "2014". So now I have Root folder > "Portraits" > "Babies & Familes" > "2014" > "Surname" AND "Portraits" (at root) > "Babies & Familes" > "2014". I've tried to drag the Surname folders into the preexisting "2014" but it says they already exist, so then I tried dragging "2014" under the preexisting "Portraits" and was able to do that but it somehow screwed up the original "2014" folder which now has a "?" next to "2014" and all it's contents! It's getting worse! What now?

  • I can't access my email.  I have joined iCloud.  The phone asks for my Apple ID and Password.  I put them in to be told the account already exists, but that's as far as I get.  What do I do?

    I can't access my email.  I have joined iCloud.  When I press mail I get a series of providers.  I click iCloud.  It asks for my Apple id and password.  I provide these to be told this account already exists and I can get no further.  What am I doing wrong?

    Sorry everyone - I have solved my own question - needed to go through Hotmail account of course.

  • Cannot create a file when that file already exists, but should overwrite

    Hi,
    I need the same file name which is at Sender side and when it reaches to Receiver directory without timestamp.
    for eg., Sender side : Yeswanth.txt
    and also receiver side   :  Yeswanth.txt
    but, here it should overwrite the existing file (because, the sender side file name is always constant) at receiver directory when the job schedules for each time.
    Processing parameters i has given on Receiver side:
    File Construction Mode  :  Create
    put file  : Use Temporary File
    and I enabled the Adapter Specific Message Attributes at Sender side and Receiver side.
    Error getting receiver side at communication channel :
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException:
    Yeswanth.txt: Cannot create a file when that file already exists. : com.sap.aii.adapter.file.ftp.FTPEx: 550
    Yeswanth.txt: Cannot create a file when that file already exists.
    Reward points for useful answers.
    Regards,
    Yeswanth.
    Edited by: YeswanthRaj Kumar on May 23, 2008 8:20 AM

    Hi Yeswanth
    Then you can try with a "Add Counter". This will create new file each time with the same name but a counter will be added to the file name at the end specifying the number of times it is created.
    You can also the specify the format to create the counter once select this option u can correspondingly fill the Format and step fields.
    Will this be fine.
    Regards
    Ashmi

  • Installing Bootcamp onto already existing drive

    Looking to install Bootcamp then WinXP onto an already existing MacBookPro that is in daily use. Can this be done w/o having to backup, wipe clean and restore my Mac side?
    I will of course backup my Mac data just to be safe, just wondering if I have to reformat my entire internal drive just to set up a Windows partition?
    TIA

    That is exactly how it is done and that is WITHOUT having to wipe out your Leopard installation. You would run Boot Camp while in Leopard and create a Windows partition on your current HD. Ensure that you have enough space to do so.
    The installation guide (which you should print out and read) is available [HERE_|http://manuals.info.apple.com/en/Boot_CampInstall-Setup.pdf].
    Axel F.

  • Facebook account "already exists" - but not visible

    Hi. I have a new Mac Mini running 10.8.2.
    When I first got the computer I entered my FAcebook details and then, when my Contacts and Calendars were populated in a terrifying way, I deleted the Facebook account. Now I realize I was being hasty and I could have just unchecked "Contacts" and "Calendars" in the Mail, Contacts & Calendars panel of the Settings.
    However, when I now try to add my Facebook account I am getting the error message that that "Facebook account already exists." It is not in the list of mail accounts. Do I need to delete a p list file or something? I hate to do that because I use Google authentication and it's a pain to enter the new ap-specific password. But I would like Facebook integration.
    Thanks!
    Meghan
    PS Is there any way to select which contacts we'd like to populate? THat would be cool.

    I had the same problem, what LousyFool suggested fixed my problem:
    LousyFool wrote:
    Go to ~/Library/Facebook and move the file(s) in that directory to a different location, e.g. Desktop. Then log out and back in, and see if the "Facebook account allready exists", still.
    This facebook user account files are under Users/yourusername/Library/Facebook . When you find this file you can just rename the ending ".plist" file in this folder with a ".bak" for backup copy. When you complete the account set up and log out a new ".plist" will be created. 
    *Note: In Mountain Lion 10.8.3 this "Library" folder is hidden. But if you go to the Finder "Go" menu and click option key the Library will be visable in the list.
    thanks all.

  • Installing PIP on Already existing FP

    Hi ,
    Can we install PIP(Version 2.0) on already existing FP(Version 2.0). will the setup wizard skip FP installation if AIAFP is already installed .
    Thanks
    Mohan

    Hi Mohan,
    You may install PIP and FP separately for AIA 2.x and future PIPs. However, the version 2.0 PIPs were not installed on top of a Foundation Pack. Could you please share which PIP you are trying to install. Please feel free to email me offline and we can discuss. (rohit.x.agarwal at oracle dot com).
    Regards
    Rohit

  • I cannot install itunes 10.5 on my XP laptop, the error says that it cannot create the folder for apple software update as it already exists but there is no sign of the folder, any new ideas?

    can anyone help with this issue that comes up during an Itunes 10.5 install on an XP laptop?
    i have tried the installer suggestions
    thanks

    I was finally able to install this POS.
    Here is what I did:
    I tried to install an even older version than 1.5
    I went to filehippo.com and downloaded the oldest version I could find there which was the version 1.0.7
    Here is the link to that page: http://www.filehippo.com/download_adobe_air/3853/
    Thank God that old version installed on my computer.
    After that the installation of current version (2.5) of this POS worked as well.

  • Won't allow me to register. Says email already exists but when I use Forgot PW it says no email act

    Just got a new HP Officejet Pro 8600.
    Want to ePrint, but need acct.
    Won't let me register as NEW acct saying I already have an acct.
    When I use my ONLY email, it says, not recognized.
    Vicious circle.  HELP.  Tx

    Hello,
    It may be that you have a SnapFish.com account. Alot of long time customers of HP have SnapFish.com accounts and do not realize it. One of the printer software releases signed customers up automatically, and most people did not know, or forgot, because they never used it. Try going to SnapFish.com and using the forgot password link at the log in screen there. Once you have the password reset, go to ePrintCenter.com and use the SnapFish.com log in information to log in. If that does not help you may need to contact SnapFish.com directly to have them delete the account, or use a different email to register with.
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • Images imported from a digital camera were viewable and editable at first but later disappeared! They cannot be re-imported from either the camera or the iCloud as iPhoto indicates that they already exist, but cannot locate them. Please help!

    On holiday I have been uploading my photos to iphoto on my macbook pro every few days, the latest batch appeared and I was able to edit them, flag, merge events etc. However, later that day when I went back to the images they could not be found in my library. They had been removed from 'latest import', however were viewable on the icloud photo stream. I have attempted to re-import the images from both the digital camera and my photostream but iphoto indicates that the images had already been imported and would not import them again. I was able to locate the master images using finder, but Iphoto tells me that these files are unreadable (they are .jpg) when I try to re-add them this way. I have also tried to 'unhide' all images in case I had accidentally hidden them but this didn't work either.
    Any other suggestions?

    a best practice to is to never have any computer program (including iPhoto) delete the photos from the card but to import the photos and keep them and then after at least one successful backup cycle has completed and then reformat the card --  I use three very large (32 GB) cards in rotation so I do not reformat for typically a year or more giving me one more long term backup of my photos
    Back up your iPhoto library, Depress and hold the option (alt) and command keys and launch iPhoto - rebuild your iPhoto library database
    LN

  • Stuck in a F'fox 9 Sync configuration loop - account already exists but can't manage account-

    I'm stuck in a loop trying to configure and use Firefox 9's Sync feature.
    On System "A", I have used the Set Up Sync tool to create a Sync account: I belive the account is valid insofar as I can use the email address and password supplied to the Set Up Sync tool to log in to the Web-base Sync portal.
    But if I then use Tools —> Options —> Sync to manage my Sync Account or Add a device, all I see is a Set Up Sync button; no Manage Account button or features. AND if I try to re-create my Sync account, the tools reports that the email address is already in use.
    On system B, the behavior is essentially identical. I can't CREATE a Sync account with the same email address as System A, but I also can't manage or add devices.
    I've been using computers since 1981, and generally can work through these issues. But I'm completely confounded: It seems I've successfully created a Sync account, but on two computers Firefox 9 refuses to permit me to manage or otherwise use that account.

    Thanks for the solution. It was *definitely* helpful.
    I must say that having worked through the configuration, I did NOT experience the usual "doh!" or even an "ah ha!" moment ala "Oh, I was so thick not to figure this out".
    That is to say that, thanks to you, I now have a better understanding of how to make Firefox Sync work, but the steps and controls still seem a bit convoluted and opaque to me.
    That notwithstanding, thanks again for your help.

Maybe you are looking for

  • Backing up ipad mini to MacBook Air

    how to synch or back up files and photos (mostly) ?  When plug in to USB port on Mac it does not show up as a storage device.  I am not using the cloud storage. I've read the iPad will be visible as a storage device by plugging in.

  • Manual Standby on Standard Edition

    Hey, I try to setup a manual standby on standard edition 10gR2. Source is a RAC database (standard edition on sles10 sp3) I created a node and created a oracle instance on this node. This node is using the filesystem for the oracle files. I did a hot

  • .icd File Syntax

    Is there somewhere a source for the sysntax of the .icd-files discribing camera functions ? | Dipl.-Ing. Rainer Rawer | Institut für Technik der Informationsverarbeitung (ITIV) | Universität Karlsruhe (TH) ____ ______ ____ _ __ | Postfach 6980 / _/ /

  • Roll back my OS to 7.1.2

    I Hv 4s iPhone 64 hv and I want to roll back back to 7.1.2 version as my phone is hanging after upgrading to 8th version.

  • Transport Functionality

    Hi Team, what is the status of transport mechanism within S&OP?  Is this the recommended approach? Which objects can be transported and which can't?  Can objects with LCode be transported? thanks- Kamala