How to setup a btrfs subvolume and boot onto it

I have backed up my previous laptops Arch install onto an external drive and now I have a new laptop with btrfs and I would like to rsync my previous Arch into a subvolume so I can boot into it separetely from the main current OS. Being new to btrfs, and not wanting to destroy my new installation, I was hoping someone could provide some generic step by step instructions on how to create a bootable btrfs subvolme (the rsync step is easy) and how to tweak grub to boot onto it?

Its pretty simple actually.  You create a subvolume and you can mount the filesystem from that point.  So say I were to do:
# btrfs subvolume create /rootfs
I could then mount it with:
# mount -o subvol=rootfs /dev/sda1 /mnt
Thus, to make it so that you can mount that filesystem as the rootfs, you would need pass that mount option when the machine is booting.  This is typically done in the fstab.  But there is a small problem there since the initramfs will first mount the partition looking for /sbin/init, using the kernel command line to figure out what to do.  So you will have to modify your kernel command line in order to get it to mount the proper thing.  This can be done with the rootflags= option.
Alternatively, you can specify /rootfs as the default subvolume.  This will make it so that if you pass no mount options to it, it will mount at subvol=rootfs.
You should do some reading about btrfs on the btrfs wiki (the actual btrfs wiki).  Some basic knowledge about how to use things and the various tools that ship with the progs would take you a long way.  It might also keep you from unnecessarily doing various recovery things that might totally wreck the filesystem.  Remember that btrfs is still in very active development.  Make sure you have tested backups.

Similar Messages

  • How to transfer or copy video and movie onto iphone 4s? through itune cant.

    how to transfer or copy video and movie onto iphone 4s? through itune cant. I tried.

    See this Discussion...
    https://discussions.apple.com/message/17442206#17442206

  • How to setup older Flex SDK and AIR 1.5?

    I found an older Flex app that I wanted to install.  It looks like it uses Flex 3 SDK and Adobe AIR.
    How do you setup a different SDK and use a different version of AIR?  I would think the latest version of AIR would be backward compatible but it doesn't appear to be that way.  It seems that the SDK version and the AIR version must match exactly or the app won't compile.  Is this right?
    Thanks,
    -Westside

    Thanks for your help, Flex harUI,
    The first impression that comes to mind is that FP version is indeed only for the web browser plugin. Then, why does the official Flex 4.6 mobile development documentation have a link to that page that only speaks about the supported FP version in mobiles under the title "AIR requirements"??
    This makes it way too confusing.
    Do you know whether there is something like an equivalent matrix/list of mobile devices with their supported AIR runtime versions?  I went a great deal in trying to keep my original app under 400kb... I didn't know that in the end it would end up weighing 9.5Mb... :S
    Thanks again,

  • How do I remove partitions "PV2" and "Boot Camp"?

    I tried installing Windows 7 in Boot Camp and lost power during install. I want to completely start over but have partitions "PV2" and "Boot Camp" that I can't seem to remove. I have tried to remove partitions in Disk Utility but everything is grayed out. Boot Camp Assistant says "The disk appears to have been partitioned by another utility and can't be removed."

    When I boot to recovery (Command+R) it gives me four options: Restore with Time Machine Backup, Reinstall OS X, Get Help Online, and Disk Utility. I am assuming I should erase the drives usings Disk Utility. I am able to select the PV2 and Boot Camp but when I select the "partition" tab the +/- buttons on the bottom is grayed out. I am not sure how exactly to "erase the entire drive." If you couldn't tell, I am a novice imac owner. I did make a backup using Time Machine earlier today. 

  • How do I bypass my hd and boot to my os x 10.4 disk

    I have two older iMacs and I don't have the passwords anymore.  How do I bypass the HD when booting up and boot using the OS X 10.4 disk

    Hi Niel,
    I've tried 10.6 as this is what I have on my Mac Pro but it will not let me boot up or install 10.6 onto this iMac.  I don't have 10.5 in my possession, although I believe I saw one at his house (about a 2 hour drive).  I'll be there tomorrow and I will look for it.  Thanks.

  • How to setup ftp with dreamweaver and windows server 2003

    Does anyone know if there is a tutorial/article on settinp up Dreamweaver cs3 to use Windows server 2003 as an FTP server...
    any assistance would be greatly appreciated...

    I was able to figure out how to setup the ftp connection, connect to my home server, however,whenever i tried to upload the contents of my website to my server, nothing gets uploaded to the site. I tried putting one page at a time, nothing. tried everything, and still no joy. I can see everything on my local server which is a XAMP package, but nothing on my remote server. Do i maybe need to maybe have a WAMP or XAMP on the Windows Server 2003 or that should not matter. This is new to me so i am learning as i go along.
    Another thing, i was able to create a subfolder in my c:\www.ftproot folder, i can see that folder on my local machine, i'm just not seeing the files in that folder when i do my 'put' with my files.

  • Problems with my account. How to setup a new one and copy all data in it?

    I've had this Admin account called 'Alex' since my TiBook days. It was on a freshly installed Panther, but for some reason it had a few problems. Just within my own account, that is. My 'Alex' account happened to be the only Admin account; all the other accounts, three in number if I'm not mistaken, were Std accounts.
    Problems I had back then included certain installers not running, or rather starting to bounce and then quitting before doing anything at all. I remember I had to use another account to install Final Cut Express 1.01.
    When I got this new Powerbook I used Migration Assistant when first turning it on, and transfered my home folder using FW cable from the TiBook. Trouble is, the problems I had up to then got transferred, too! For example, now I cannot click on 'Burn' within iDVD5, or the whole thing will collapse (iDVD that is, not the OS!). Also, bought FaxSTF Pro X from Smith Micro, and I can't fax out anything! But, switch to another account on my Powerbook, things are smooth as silk.
    I am contemplating the solution of setting up a new account for me and transferring all my files to that account, then delete my current, problematic one. I want the new account to also be called 'Alex' for short, to have the same long name (my full name, just like my current Admin account). I also would like it if it was possible to copy my Dock configuration, instead of having to re-compose it from scratch. I've got used to using it over the months, and would like to keep it for GUI reasons.
    So, what would be the right order of doing things? Rename my current, bad, account, then create a fresh admin account, then change the ownership and privileges in everything in my home folder and move to the new account, then verify and finally delete my current account? Does all this make sense? Am I setting myself up for some sort of digital tragedy?
    Thanks, people.

    You know, I was thinking if I went ahead and just created a new account, then shipped all my Home folder under the new account and used chown to fix the ownership details, then most likely the problems of my current account would be transferred to the new one.
    How about skipping all .plist files and other preferences? What if I only transferred my actual work documents from all software that I use, plus emails and what have you? Would that tend to minimize the chances of problems re-manifesting themselves in the new environment?

  • How to setup WebLogic Admin Server and Managed Server

    Hi,
    I working to setup a Weblogic admin and managed server but fail.
    May i know the correct steps to setup the system ?
    Tx.

    TX. I will proceed to upload more logs here later.
    Anyway I notice that after i follow the guide to setup the admin and managed server, I only able to access the web apps on admin server. I can not access web apps for managed server.
    I setup the admin server using port 7001 and managed server using port 7003 based on oracle guide.
    I found weird here. when I browse to http://adminserver:7001/apps, it works. But when i browse to http://managedserver:7003/apps it does not work.
    But funny thing is when i browse to http://adminserver:7003/apps, it works.
    I confuse that which configuration I have done is incorrect and have this result???
    besides that I notice that in the nodemanager setting...the listening address is set to localhost and it works. If i configure it to IP address, it will give me errors.
    Edited by: Wilson78 on Dec 22, 2008 12:29 PM

  • Just got an iphone 4, but have a dell computer at home.  I plan to use the calendar on the phone.  How can I download my contacts and calendar onto my home computer to make sure there is a back up in case the phone is lost?  Thanks!

    I just got an iphone 4, but use a dell computer (microsoft) at home.  I plan to use the phone's calendar.  How do I backup my calendar and phone contacts on my desktop as a safety net in case the phone is lost or destroyed.  Thanks.

    The iphone is designed to be synced to your cpmputer regularly.
    Sync your contacts and calendars as designed.
    iPhone User Guide (For iOS 4.2 and 4.3 Software)

  • How do i put my apps and music onto my new computer

    How do I put apps and music onto my new computer.

    If your apps are stored on an iPhone, iPod touch, or iPad read here.
    iOS: How to transfer or sync content to your computer
    Backup your iTunes media, instructions here.
    How to back up your media in iTunes
    That way you always have a backup.

  • How to setup Mail on iPhone and iPad so that thd inbox is identically as on my MacBook

    Hi Guys
    I have an own business plus private email accounts + my email account for my other job all installed on both my MacBook and my iPhone, and also on the iPad. In the beginning, everything was fine, but now each time I get an email, which I read and delete or put in the right folder, I have to delete it again on iPhone and on iPad.
    How can i setup mail mail accounts so that if I read the email on for example the MacBook Mail, and put it in a folder, the email won't show up in the iPhone and iPad inbox? This really would save me a lot of time!
    Thanks!
    Bob

    Hi carlos.latorre,
    You can directly download your PDF files from Acrobat.com account using this link:https://cloud.acrobat.com/folder/3073b35e-9266-46b0-a2cb-18105ac3b878
    Take a look at this screen shot.
    Select the files you want to download to your iPhone and iPad and then click on 'Download' button.
    Regards,
    Florence

  • UCM - How to setup synchronize between DR and Primary site

    Hi all.
    As mentioned on title, we have a primary UCM site and a clean DR site. I want to ensure that end-users have ability to work with DR site for a short time when the Primary site is unavailable. To make DR site available to serves when the primary is down, we can do:
    - setup auto-export archive on primary site
    - target to destination archive on DR site
    - auto-transfer from primary to DR site
    - with data in Database, we can use Golden Gate to sync Primary and DR site
    So, with these settings, I can ensure that the DR is ready to run when the Primary is down. But, if the primary takes a long time to recovered, the DR site has many new contents. How to transfer it back to primary site when the primary is came back ? In other words, how to synchronize contents (vault and native files) between new Primary (old DR) and new DR (old Primary) site ?
    Thank for your attention.
    Sorry for my bad English.
    Cuong Pham

    Hi Cuong (and guys),
    I'm afraid the issue is not that simple. In fact, I think that the Archiver could be used for DR only by customers who have little data and few changes. Why do I think so?
    a) (Understanding System Migration and Archiving - 11g Release 1 (11.1.1)) "Archiver: A Java applet for transferring and reorganizing Content Server files and information." This means that you will use a Java applet to Export and Import your data. With a lot of items (you will need to transfer all the new and updated items!), or large items it will take time (your DR site will always be "few minutes late"). Besides, the Archiver transfers are based on batches - I don't think you can do continuous archiving - and will have impacts on the performance.
    b) Furthermore, (Exporting Data in Archives - 11g Release 1 (11.1.1)) "You can export revisions that are in the following status: RELEASED, DONE, EXPIRED, and GENWWW. You cannot export revisions that are in an active workflow (REVIEW, EDIT, or PENDING status) or that are DELETED." This means that the Archiver cannot be used for all your items.
    Therefore, together with FMW DR Guide (Recommendations for Fusion Middleware Components) I think other techniques should be considered:
    - Real Application Clusters (RAC), Weblogic Clustering, cluster-ware file system: the first, almost error-free, and relatively cheap option is having your DR site as other nodes in DB and MW clusters. If any of your node goes down, the other(s) will still serve your customers (no extra work needed), plus, you can benefit from "united power" of multiple nodes. RAC is available also in Oracle DB Standard Edition (for max. 2-nodes db cluster). The only disadvantage of this configuration is that it is not available for geo-clustering (distance between RAC nodes must be max. some hundreds meters), so it does not cover DR scenarios like "location goes down" (e.g. due to networking issues)
    - Data Guard and distributed file system: the option mentioned in the guide is actually this one. It is based on Data Guard, a free option of the Oracle Database Enterprise Edition, which can run in both asynchronous (a committed transaction on the primary site is immediately transferred to the DR site) and synchronous (a transaction is not committed on the primary until processed by the DR site - if sites are far, or a lot of data is being sent, this can take quite long) modes. So, if you store your content in the database the Data Guard can resolve a lot. Unfortunately, not everything - the guide also mentions that some artifacts (that change!) are also stored on the file system (again, workflow updates, etc), so you have to use file system sync techniques to send those updates. In theory, you could use file system to send also updates in the database, which is nothing but a file(s) (in this case you will need the Partitioning option to split your database into smaller files), but db guys hate this way since it transfers also inconsistencies, so you could end up with an inconsistent database in the DR site, too.
    This option will require some administrative tasks - you will have to resolve inconsistencies resulting from DG/file system sync, you will need to redirect your users to the DR site, and re-configure the DG to make primary site from your DR one. Note that once your original primary site is up again, you can use DG to transfer (again, immediately) changes done in the meantime.
    As you can see, there is no absolute solution, so you need to evaluate your options, esp. with regards to your needs.
    Jiri

  • How to setup ADSL moden router and Airport Express 802.11n (1st Generation) to provide internet and airplay connections to multiple devices?

    I have a Netgear wireless ADSL modem router (wireless + four ethernet out ports)  that i'd like to connect to a 1st gen Airport Express to create a small home network to provide internet access for a MacBook, iPhone and Apple TV, and to provide Airplay connection to the Apple TV and Airport Express audio output jack.
    I'd like to turn off the wireless function of the ADSL modem router, and to have from one of its ethernet out ports an ethernet cable providing internet directly connected to my MacBooks ethernet port.
    Then from one of the other ethernet outs on the ADSL modem router an ethernet cable connected to the Airport Express's ethernet port. This would be to provide wireless internet connection for the Apple TV and iPhone via WiFi from the AE.
    At the same time as the MacBook is receviing internet soley via the ethernet in port, i'd like it to have WiFi connection to the AE to provide Airplay connection to the Apple TV and the AE's audio out jack.
    Is this all possible? How should I go about to configure this? How should the AE's ethernet port be configured?
    Any special modes the ADSL modem router or Airport Express should be in? ie bridge or client?
    Thanks

    On the ADSL modem router web-based interface, should I set any security setting? I think not as there'll be no wireless signal coming from it, only wired ethernet connections to both MacBook and AE. Security should only be set on the AE to prevent someone from accessing its WiFi signal. Is this assumption correct?
    These are all correct!
    How should I go about setting up security for this network?
    First I would recommend that you configure the AirPort Express for WPA2 Personal. This will provide you with the greastest level of security while still providing excellent bandwidth performance.
    You would configure wireless security for the Express by using the AirPort Utility on a Mac, PC, or iOS device. Using your MacBook Pro as an example, you would do so as follows:
    Run the AirPort Utility.
    Select the Express, and then, click on Edit.
    Select the Wireless tab to enable it.
    Set the Wireless Security option to: WPA2 Personal
    Enter the desired password in both the Wireless Password & Verify Password fields. Note: Use of a "strong" password is encourage here. By strong, I mean use a mix of upper/lowercase letters, numbers, & punctuation marks. Try not to use common dictionary words. If you operate your wireless in an area where security is of an utmost concern, I would further suggest that you change the wireless security password every 60-90 days. Also don't forget to change the default AirPort Base Station Administrator password as well.
    Click on Update and allow the Express to restart.

  • How to setup the article master and link up with the image file of that art

    I nteed help to setup the article master to display article image.
    Can someone guide me with the details?
    Thanks

    Hi Colin,
    In MM41/42/43 from the Main menu select System->Services for Object. Now select Create to Attach any file (the article Photo).
    You can view the Photo by going to same transactions and select System->Services for Object. Now select Attachmetn List.
    This is one of the method to attach document to an object in SAP.
    Another standard way is to do it using DMS module. I have done it before but do not remember the exact process. Will let you know if and when I get details.
    Regards,
    Arun Devidas

  • How to setup User-level LaunchDaemons and scp/rsync

    We are trying to rsync/scp scripts from a Xserve 10.6 (just installed) to an Xserve 10.4, both of which which run scientific models, and transfer output files between systems automatically. These scripts must start automatically on reboot. This is easily done via cron jobs on our older Xserves.
    Taking the plunge into converting cron jobs to launchd jobs has, for the most part, gone relatively smoothly. However, I am unable to locate instructions/examples on how to do the following:
    While it is possible to set up a LaunchDaemon *.plist on a System(root) level by placing it in /Library/LaunchDaemons, it is unable to do an scp or rsync (without needing the password), because it does not have a root id_dsa.pub installed on the remote Xserve (I really do not want to do that!). An scp/rsync job should be done at the user level.
    According to the man pages, there is no such thing as a ~user/Library/LaunchDaemons, only ~user/Library/LaunchAgents, which if I understand correctly, are only executed when the user logs in.
    So how do I permit user-level scp/rsync operations (easily done in cron) using launchd?

    Thank you for your comment and suggestion. I will give your suggestion a try. However, it seems the question is still open:
    If a user wants to write a program/script that does an scp/rsync that transfers a file from one host to another (assuming the .ssh keys are properly set up), and put it into a launchd process that executes like it would under a cron (i.e., they do not need to be logged in, and it persists after a reboot), how is this accomplished without using the root-level /Library/LaunchDaemon?
    Am I miss-informed that a users LaunchAgents are executed only when the user logs in?
    At least in the scientific arena, using a cron to transfer files is a very regular practice. It would be a major headache if the system administrator had to manually add each users launchd files to /Library/LaunchDaemon

Maybe you are looking for