Move /var/log to HDD from SSD

Hi guys
I just installed arch for the first time and made the mistake of having /var/log on my SSD. How do I "move" it to my HDD? Someone on #archlinux told me to symlink it but I don't know how to do that in a way so the logs get written directly to the HDD but not the SSD.
Any ideas?

I didn't much care when I set this box up about /var being on my SSD, but now I've been wondering. So, having had experience with moving filesystems in the past (/usr, /tmp, ...) on running machines I figured /var wouldn't be much problem. Here is what I did:
First, I dual boot and the 2 HDD's are setup in RAID0 and are for local misc. storage so it was setup in only 2 partitions, 1 1GB one for Linux swap, and 1 massive partition for everything else. That big partition is for my misc. Windows stuff, so it's NTFS and unusable for the purpose at hand. I simply used GParted to slice off a 4GB piece at the end of the drive. This is what I will be using for /var.
I then made a directory under / named 'var.tmp' (ie: /var.tmp). This I used for a temporary mount point for my new /var partition. I also edited my /etc/fstab to add in the new partition and mount point, ie: /dev/mapper/pdc_bggaahdef3 /var ext4 defaults,user_xattr,noatime 0 1
From here I mounted the new partition on /var.tmp and ran the following command chain:
cp -av /var/* /var.tmp && umount /dev/mapper/pdc_bggaahdef3 && mv /var /var.old && mkdir /var && mount /var
So as fast as possible I'm copying the current contents of /var onto the new drive (using the archive flag which retains all permissions, symlinks, etc), unmounting that new drive (for later remounting), moving the current /var to /var.old (in case something bad happens or gets missed I can revert back), and finally re-making the /var directory and mounting the new drive.
I did restart a few services just in case as I don't want to reboot at the moment, and confirmed via /var/run and /var/run/daemons that processes are still keeping track of themselves, and also /var/log is logging current events. The system seems happy, but any quirks encounted should be fixable by a reboot so everything can properly refresh.
If you already have a mount on a HDD that you're using under Linux, instead of making a dedicated partition just for /var as I did, you could (as suggested) use the symlink method. This is basically just mv'ing /var to that partition and then ln -s /new/location/of/var /var
Hope this helps!

Similar Messages

  • Move /tmp and /var/log off SSD and on to HDD

    Hi guys,
    I would like to move the above filesystems off my SSD boot drive and on to my HDD in order to reduce numerous small write/erase cycles.
    I'm a unix dummy, so if someone can help me out with this, that would be great.
    I found a link via google for using a RAM disk, but I do not want to go that route... and also didn't really get what they were doing enough to modify it to work the way I'd like.
    Thanks for any help.
    10.6.7.... Lion next month

    I'm not so sure. MLC flash only has 3000 estimated erase cycles. And even a small file like a 20kb log file, if it needs to be erased, will be erased in 512KB chunks. So lots of small writes to the drive will do two things:
    1. With wear leveling, every time that 20kb file is updated or rotated, it'll be written to an unused or least used Flash cell.
    2. Eventually the original location and the "Wear leveled" cells are going to be needed as so 512KB of cells will needlessly be erased for the sake of 20KB.
    /tmp isn't so bad, most of my data in there hasn't been hit in a few days.
    But the things in /var/log get hit many times a day. Thats a lot of writes.
    To be honest, I don't even need logging. I don't recall the last time I read a log! If there were a way to disable logging entirely during boot, I'd even do that.

  • Going from hdd to ssd

    I would like to change a hdd to ssd on macbook pro (mid 2010). If I use time machine backup from old system on new ssd will it be copied with the old disk faults ? I would like to install fresh OS X on ssd, but at the same time I wish to keep aperture librery with all my pictures and iweb where I created my website.
    This are my priorities and the rest of data I can move to external hard drive and bring them one by one to new system on new ssd.
    Could you please, tell me how to do it and what is best solution ?

    A clone of a HDD will have loads of empty blocks, all those blocks would be written to the SSD...
    Incorrect.  Most backup programs don't do a block-for-block copy (though some have such an option on very restricted conditions).  They copy the files (like cp -rp).  So blank space on the source won't be the same blank space on the destination. 
    But serious question for a moment, do these Carbon Copy Clone drive 3rd party softwares have some kind of special function? Some people have crazy devotion to them and its peaked my interest as to why.
    If you want to go through the "exercise" of creating lauchagents or cron tasks for constructing and easily changing scheduling backups, more power to you.  I for one just want to schedule the stuff, possibly change the schedule if need be, and move on to more important things like doing the work that actually needs to be backed up!   If you don't believe in scheduling periodic backups, well, that's another story.
    Though, to be honest, I still question its usefulness when Disk utility does the same thing; select a hard disk ( "TOSHIBA MK2561GSYN Media" on my MacBook Pro), click "new image" and then click go. Then use restore in Disk Ulitity to restore the disk from the image - carbon copy goodness!
    So do most other people that do backups, i.e., creating a .dmg (what you get from DU's New Image) is not the way to do backups.  DU's Restore, maybe, but I've never used DU for backups.

  • Going from HDD to SSD+HDD

    I have a 2010 First Gen i7 desktop iMac computer and am looking rather fondly at SSD drives to run alongside my 1TB Internal HDD. Boot and Apps on SSD, everything else on Internal, the usual set-up.
    I know I can change the location of my home folder via System Prefs > Users & Groups > Ctrl+Click User > Advanced Options
    What would be the best way to deal with the migration from HDD to SSD+HDD?
    Do I do a fresh install onto the SSD and then point to the home folder left over on the HDD and delete the old system files around it?
    Does restoring from Time Machine via the Lion install process give me the option of choosing a different disk to send my personal files to? (this would be proffered).
    Do I wipe everything clean, restore the OS from time machine, then use Time Machine from the temperary user account to restore my personal files to the HDD?
    I do have two external HDDs (time machine and "junk" drive) - do I use the terminal to copy my files to the junk drive (preserving structure and timestamps using the -pR flag), then copy them back onto the HDD once everything is wiped and continue from there?
    The last options seems like the most realistic, but the second would be the most proffered (if possible).
    What is the best way to do this? Anyone done it before? Anything I should be careful of?
    Thanks!

    A clone of a HDD will have loads of empty blocks, all those blocks would be written to the SSD...
    Incorrect.  Most backup programs don't do a block-for-block copy (though some have such an option on very restricted conditions).  They copy the files (like cp -rp).  So blank space on the source won't be the same blank space on the destination. 
    But serious question for a moment, do these Carbon Copy Clone drive 3rd party softwares have some kind of special function? Some people have crazy devotion to them and its peaked my interest as to why.
    If you want to go through the "exercise" of creating lauchagents or cron tasks for constructing and easily changing scheduling backups, more power to you.  I for one just want to schedule the stuff, possibly change the schedule if need be, and move on to more important things like doing the work that actually needs to be backed up!   If you don't believe in scheduling periodic backups, well, that's another story.
    Though, to be honest, I still question its usefulness when Disk utility does the same thing; select a hard disk ( "TOSHIBA MK2561GSYN Media" on my MacBook Pro), click "new image" and then click go. Then use restore in Disk Ulitity to restore the disk from the image - carbon copy goodness!
    So do most other people that do backups, i.e., creating a .dmg (what you get from DU's New Image) is not the way to do backups.  DU's Restore, maybe, but I've never used DU for backups.

  • Moving Windows 8.1 from HDD to SSD

    Hi! I want to know the best way to move Windows 8.1 from current HDD to SSD. Thanks!
    System Information
    Model:  MSI GT72 2QE DOMINATOR PRO GT722QE-638NL
    Product Name:                 GT72 2QE
    OS:                           Microsoft Windows 8.1 64-bit
    Windows Product Key:         
    HDI Build:                    ZS7-1781BM4-DS0   3.3.A15.8.0.1 
    BIOS Version:                 E1781IMS.10H
    BIOS Release Date:            2014/11/21
    EC Version:                   1781EMS1 Ver5.08, 11/04/2014
    CPU:                          Intel(R) Core(TM) i7-4720HQ CPU @ 2.60GHz
    Memory:                       16 GB @ 666 MHz
                                   - 8192 MB, DDR3-1600, Kingston MSI16D3LS1MNG/8G 
                                   - 4096 MB, DDR3-1333, Samsung M471B5273DH0-CH9 
                                   - 4096 MB, DDR3-1333, Samsung M471B5273DH0-CH9 
    Graphics:                     NVIDIA GeForce GTX 980M, 4095 MB
    VBIOS Version:                84.04.22.00.0c
    Drive:                        HDD, HGST HTS721010A9E630, 931,51 GB
    Drive:                        SSD, ADATA SP900NS38, 238,47 GB
    Network:                      Killer Wireless-n/a/ac 1525 Wireless Network Adapter
    Network:                      Killer e2200 Gigabit Ethernet Controller (NDIS 6.30)
    OS Activation
    Name: Windows(R), Core edition
    Description: Windows(R) Operating System, OEM_DM channel
    Partial Product Key:
    License Status: Licensed

    Thank you all for answers. I found a solution:
    Tools: 1) Aomei Partition Assistant Pro Edition
             2) Paragon Migrate OS to SSD 4.0 ™
    First i convert my new SSD MBR to GPT with AOMEI Partition Assistant. After this used Paragon Migrate OS to SSD™ 4.0. Very easy. Time ellapsed ca 30 minutes.
    w w w.paragon-software.com/technologies/components/migrate-OS-to-SSD/
    w w w.download.paragon-software.com/doc/MigrateOStoSSD_4_manual_eng.pdf
    w w w.tomshardware.co.uk/forum/id-1670056/successful-clone-windows-hard-drive-ssd-gpt-uefi.html

  • I have a hdd from late 2009 that I upgraded from leopard to snow leopard to lion to mountain lion.  I want to upgrade the hdd to ssd.  Do I need to buy a new copy of mountain lion to install on the ssd?  If not, then what is the procedure to transfer?

    I have a hdd from a late 2009 mbp.  I upgraded from leopard to snow leopard to lion to mountain lion.  Now I want to upgrade to a ssd.  Do I need to purchase a new copy of mountain lion to go on my new ssd? If I don't, then what is the procedure to transfer mountain lion with my 4 user accounts onto the new ssd from the hdd?
    I'm confused on if I can use the recovery hd on a thumb drive to install mountain lion on my ssd.  Will it be pheasible with so many OS X upgrades?  And then how do I get my user accounts onto the ssd from the hdd.  Do I use migration assistant?  Do I need to make a time machine backup first?  Should I use something called Carbon Clone or something like that?
    Thanks for reading

    If you have a cable that connects and external HDD to the MBP, it will do.  If it is something like this, an  enclosure will not be needed for the swap:
    An enclosure allows you to use your old HDD for storage or backup purposes.  The cable will not. 
    Here are instructions as to how the swap can be performed using DISK UTITY.  Substitute You cable for the enclosure in same:
    INSTALLING A NEW HDD IN A MBP
    1. Make certain that you have backed up all of your important data.
    2. You will need a HDD enclosure.  One with a USB connection will do.  A 9 pin Firewire is better.
    3. Install your new drive in the enclosure and connect it to your MBP.
    4. Open DISK UTILITY>ERASE.  From the left hand column drag the new drive into the 'Name' field.  Make sure that the format is 'Mac OS Extended (Journaled)'.  Click on the 'Erase' button.
    5. Click on the 'Restore' button (on top).  Drag the old drive into the 'Source' field and the new drive into the 'Destination'  field.  Click on the 'Restore' button on the bottom right hand corner.
      Depending upon the amount of data you are transferring, this may take a couple hours or more.  A Firewire will speed up the transfer.  This will result in both drives having identical information on them.
    6. After the data transfer has completed, you may swap the drives.  Start the MBP and you have finished the installation.  The initial boot may take a bit longer than you are accustomed to, but that is normal.
    7. When you are satisfied that the new hard drive if functioning properly, you can erase the old drive and use it for any needs that you may have.
    If there is any confusion on your part, post back.
    Ciao.

  • Portege R30 won't boot from SSD after upgrade to SSD and HDD under CSM mode

    Hi 
    I upgraded my Portege R30-ASMBN22 to SSD (Crucial M550) and replace the optical drive by the original HDD with caddy.
    In order to install Windows 7, I change the BIOS to CSM mode. But now the system won't boot automatically from the SSD. It only boot from HDD which is in the ODD spot.
    I could press F12 while turning on my laptop, and bring up the boot manual. Here I can see my SSD and I can boot from it correctly. However, if I don't press F12 when it starts. It will always try to boot from HDD.
    In the boot order in the BIOS, I only see HDD/SSD, USB Memory, ODD .... It doesn't give me the option to choose between SSD and HDD. Is there any other way to change the boot order among HDD and SSD?
    Thanks,
    Louis

    Hi,
    I did the same operation to my Portege R30-A-17C, and have the same problem, is there any way to boot without pushing F12 every time.
    Thanks,
    Pablo

  • How to get the current logged in username from windows and put it into an AS var

    Hello,
    I was hopeing someone would know how to get the current logged in username from windows and put it into a var, so I can create a dynamic text box to display it.
    Thanks in advance
    Michael

    Just for everyone’s info, this is the script I have used to get the logged in windows username into flash ---- not and air app.
    In the html page that publishes with the .swf file under the <head> section:-
    <script language="JavaScript" type="text/javascript">
    function findUserName() {
         var wshell=new ActiveXObject ("wscript.shell");
         var username=wshell.ExpandEnvironmentStrings("%username%");
         return username;
    </script>
    The ActionScript:-
    import flash.external.ExternalInterface;
    var username:String = ExternalInterface.call ("findUserName");
    trace (username); // a quick test to see it in output

  • From hdd to ssd: what about os and all data?

    Hello everybody.
    I know there are a lot of discussion about it and i read lots of them,
    But maybe because english is not my first language, i have some problems in understanding the right things to do.
    Also, i am pretty new with mac world as i just have my mb pro since last november.
    so i hope you can help me with easy words, thanks.
    here's the list of what i have:
    - MacBook Pro 2.5ghz, 4gb ram, 500gb hdd
    - os x mavericks (installed 2 days ago)
    - all my documents/photos/music in my MB Pro
    ... and:
    - crucial ssd 480gb
    - an external hd enclosure usb 3.0
    - the 17 in 1 tool kit
    What do i have to do first?
    And how will i transfer/install the os x from hd to ssd? or it "remains" somewhiere in my MB Pro?
    I know there is a link from crucial with the procedure for removing hd and installing ssd, is this all i have to do?
    Really hope you can help me... thanks in advance!
    F.

    Follow these steps:
    Make certain that you have your data backed up as a precaution.
    Attach the SSD to the MBP and open Disk Utility>Erase.  Format the SSD to Mac OS Extended (Journaled).
    Open Disk Utility>Restore and in the 'Source' field drag the internal HDD from the left hand column.
    In the 'Destination' field, drag the SSD from the left hand column.
    Click on the 'Restore' button.
    Depending upon the amount of data, this process may take a couple of hours.
    When finished, restart your MBP holding doen the OPTION key.  The display should show the internal HDD and the external SSD (yellow in color).  Click on the SSD and if it boots the MBP, the clone has been successful.
    Perform the physical swap.  Your MBP should be ready to go.  All of your data will be on the SSD exactly as it was on the HDD.
    Ciao.
    Message was edited by: OGELTHORPE

  • SSD HDD from R61e doesn't work in T61p

    I've removed the HDD from my R61e and put it into my T61p, the computer doesn't recognise it at all. Tried another SSD HDD from another laptop of mine and same deal. Any ideas why the T61p doesn't seem to be able to run SSD HDD?The one from the R61e is a OCZ Technology Core Series v2 SATAII 2.5" Sold State Drive and the other is a Silicone Power SSD 2.5" SATA Solid State Disk 64GB.
    Message Edited by twr7cx on 08-06-2009 04:33 PM

    What is the machine type and model for your T61p?
    Did your T61p orginally come with just a traditional HDD or did it come with a SSD??
    If your T61p came with a regular HDD, just placing the SSD drive in it will not work.. You need the storage container for the SSD
    Take a look at the link below and you'll see the part number for the Storage container (12) and the part number for the SSD (13).Both parts are needed for the SSD. See types below:
    http://www-307.ibm.com/pc/support/site.wss/documen​t.do?lndocid=MIGR-68229 <--  ThinkPad T61, T61p 15.4inch (6457, 6458, 6459, 6460, 6461, 6462, 6463, 6464, 6465, 6466, 6467, 6468, 6470, 6471)
    NOTICE: All T61p machines do NOT come with a SSD!! 
    If you T61p is listed under one of the following types, it is NOT equipped with a SSD - See below (14 inch models)
    http://www-307.ibm.com/pc/support/site.wss/documen​t.do?lndocid=MIGR-68208 <-- ThinkPad T61, T61p 14.1inch standard screen (Type 8889, 8890, 8891, 8892, 8893, 8894, 8895, 8896, 8897, 8898, 8899, 8900, 8938, and 8939)
    Only the SSD HDDs that are listed on MIGR-68229 will work with the T61p. 
    I listed all the models since I don't know what your machine type/model is for your unit.
    Hope this answers your question.
    Mark
     Do NOT PM me with technical issues. Post in the forum for assistance. Thanks

  • How to upgrade from HDD to SSD in Mid 2010 13inch MacbookPro?

    I am upgrading from HDD to SSD and would like the step by step direction of how to do it on my 13inch MacBookPro mid 2010. Also, I would like to do a clean install of the OS onto the new SSD, and simply transfer my data(i.e. documents, pictures) from the old HDD to the new SSD(Samsung 500GB)
    Any detailed directions would be appreciated. You may send responses directly to my address: ******* Thanks in advance
    <Edited by Host>

    Tolefe1 wrote:
    Thanks. How do I booth to IR? Won't  I need to connect to the internet to be able to booth to Internet Recovery... Please give steps as I am pretty new to this.
    Turn the Mac on (or reboot it) and press command-option-R as soon as you hear the startup chime. Hold the keys down until you see a globe, then release. When the Recovery Menu appears you choose Disk Utility and format the SSD for use in a Mac (Erase>Set Format to MacOS Extended (Journaled), then exit Disk Utility and choose Install OSX
    You will need to be connected to the Internet and your Mac should detect your network and ask for a password automatically when Recovery Starts.

  • Restoration of /var/log/secure.log from Time Machine Backup

    I have a need to restore /var/log/secure.log from Time Machine Backup on Lion Server, but can not find any entries for this file in the Time Machine archives even when using the find command.   It seems like it is not backed up.   I'm hoping that this is not the case; if it is it represents a pretty large mistake from a security perspective.
    Is there something that I'm missing?
    Thanks

    gracoat wrote:
    ...sigh...
    Try time machine and see what happens...  I dare ya!
    I've helped several folks here who were using TM on Snow Leopard Server quite successfully.  In most cases, as in most cases of trouble with backups on client Macs, they were having hardware problems.
    Granted this is a 10.6 server page, but they haven't updated open LDAP in a way that would change it's database functionality, nor have they changed the way time machine backs up and what it backs up.
    Nowhere there does Apple say that "Time Machine is NOT a suitable backup solution for a server" or anything like that.
    The article clarifies what it does, and does not, back up.   So it may or may not be a suitable backup solution depending on individual situations.

  • Q190 from HDD to SSD?

    Hi,
    Can I upgrade my Q190 (57312246) from HDD to SSD? 
    I am looking to purchase the following SSD: http://www.amazon.com/Samsung-MZ-7TD250BW-Series-Solid-2-5-Inch/dp/B009NHAEXE/
    Thanks
    Solved!
    Go to Solution.

    hi filippo,
    Yes you can use that SSD Samsung MZ-7TD250BW 840 Series Solid State Drive (SSD) 250 GB Sata 2.5-Inch as the Q190 uses a standard SATA 3.0Gb/s, 2.5" wide HDD as per this pdf data sheet.
    You may also want to check Crucial's SSD Upgrade for the Ideacentre Q190.
    Best regards,
    neokenchi
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • Satellite U940-108 - How to configure BIOS to boot dual OS from SSD / HDD

    How can i configure the BIOS to boot multi os ssd and HDD?
    I want to boot from SSD one os and other os from HDD,
    When i try to do it i have windows error?
    Can you help me

    Hi
    I assume you want to install the OS (which one???) on the internal mSATA 32GB SSD?
    This mSATA SSD is used for caching (hybrid boot) in order to boot Windows 8 faster.
    I would recommend you to install the second OS on the HDD.
    For that you should create new partition which could be used for OS installation.
    Then boot from the Windows installation disk and install the 2nd OS on the new created partition.

  • How to move weblogic.log to /var/logs

    Weblogic Server 5.1, Sun Solaris 5.8
    How do I change the path for this log file ?
    Thank you,
    -pete

    "Pete Lancashire" <[email protected]> wrote:
    >
    Weblogic Server 5.1, Sun Solaris 5.8
    How do I change the path for this log file ?
    Thank you,
    -peteYou can change the location of the weblogic.log file by setting weblogic.system.logFile
    to be wherever you want is to go.
    ex. weblogic.system.logFile=/var/logs/weblogic.log
    Hope it helps

Maybe you are looking for

  • Filter print job - remove form feed

    I've configured an iPrint printer to accept LPR print jobs. One of our old programs always starts each print job with a page eject (form feed). Is there a simple way to intercept the print stream and if it starts with a page eject, remove or null it

  • Swing: when trying to get the values from a JTable inside an event handler

    Hi, I am trying to write a graphical interface to compute the Gauss Elimination procedure for solving linear systems. The class for computing the output of a linear system already works fine on console mode, but I am fighting a little bit to make it

  • My iPod Shuffle won't read the name of playlists or songs

    I got my first iPod shuffle 4GB... everything's working fine but just when I click and hold the centre button it won't tell me the names of the song... or when I try to change playlists it will tell me "playlist 1... playlist 2... playlist 3" instead

  • Prototypes won't load variables?

    I am using FMS2 to work as a buffer inbetween my PHP Code and my Flash Client. The thing is, my client worked flawlessly when using PHP/MySQL and Flash alone, but when integrating FMS, I encountered a few problems. It seems like when using a prototyp

  • Can I download ibooks from my mac to my kindle?

    Can I transfer iBooks from my MacBook Pro to my Kindle ereader?