How to group root subfolders among partitions?

After a cup of coffe, planning a new system, I've came to conclusion that it'd be logical to split the filesystem hierarchy into 3 partitions (to reserve free space for groups of them rather than for each one):
1. bin, sbin, lib, etc, root.
2. usr, opt
3. var, tmp, home
How do I best achieve this? The only idea came into my mind is putting opt inside usr and creating /opt as a symlink to /usr/opt, with home and tmp placed same way inside var. Is it a good idea or not?
BTW I use LVM2 for everything except /boot and I only use /home as a place for user-specific programs' settings files, all the data of mine (projects, downloads, etc) is stored on a separate partition.
Last edited by StrangeAttractor (2010-07-16 23:15:36)

plan 9 union mounts!
aufs might be able to pull this off... it certainly won't be pretty... Keep in mind that you need a bunch of directories to be available immediately on mounting /, so they all need to be on the same partition. I don't know all of them offhand (sbin, bin, lib, etc, root, ...), but it's likely somewhere in the Beginner's Guide or the Official Install Guide on the wiki.
Last edited by falconindy (2010-07-17 04:05:19)

Similar Messages

  • How to Group Subfolders Immediately after Folder

    When I open Documents (in list view) I find all subfolders listed with files (alphabetically). So if I am looking for a subfolder I need to scroll to find it (among all other files in Documents). Is there a way to group all Subfolders (immediately) after the Documents folder? And is there a way to show the subfolders so that they are not expanded? I have been through my Mac OS X for Dummies book and this Forum but I can not find an answer. Thanks.

    Actually it will work in column view as of Leopard. Apple added this with Leopard: when you are in column view select "Show View Options" and you'll notice a new "Arrange By" option that lets you sort column view by Name, Kind, Size, Dates or Label. I don't use it much as I tend to forget to reset it and then get confused next time I open a window in column view and automatically look for something by name and don't see it....
    Francine
    Francine
    Schwieder

  • How to group the values with this partition over clause ?

    Hi,
    I have a nice request :
    select  c.libelle "Activité", sum(b.duree) "Durée"
    from    fiche a, activite_faite b,
            activites c, agent d
    where   a.date_activite
    BETWEEN TO_DATE('20/09/2009', 'DD/MM/YYYY') AND TO_DATE('26/10/2009', 'DD/MM/YYYY')
    AND     a.agent_id = 104
    AND     a.fiche_id = b.fiche_id
    AND     b.activites_id = c.activites_id
    AND     a.agent_id = d.agent_id
    group   by c.libelle
    order   by sum(b.duree)It gives me this nice result :
    ACTIVITE  DUREE
         Tonte            27I want to get a percentage, i use ratio_to_report
    select  a.fiche_id, c.libelle "Activité", ratio_to_report(duree) over (partition by c.activites_id) * 100 "Durée"
    from    fiche a, activite_faite b,
            activites c, agent d
    where   a.date_activite
    BETWEEN TO_DATE('20/09/2009', 'DD/MM/YYYY') AND TO_DATE('26/10/2009', 'DD/MM/YYYY')
    AND     a.agent_id = 104
    AND     a.fiche_id = b.fiche_id
    AND     b.activites_id = c.activites_id
    AND     a.agent_id = d.agent_idIt gives me this less nice result :
    Tonte 7,40740740740740740740740740740740740741
    Tonte 33,33333333333333333333333333333333333333
    Tonte 33,33333333333333333333333333333333333333
    Tonte 25,92592592592592592592592592592592592593I would like to get this result :
    Tonte 100I tried "grouping" values in the partition over clause but without success.
    Any help appreciated from the slq-masters :
    Regards,
    Christian

    Christian from France wrote:
    I would like to get this result :
    Tonte 100
    Hi,
    Why not this
    select  c.libelle "Activité", 100 "Durée"
    from    fiche a, activite_faite b,
            activites c, agent d
    where   a.date_activite
    BETWEEN TO_DATE('20/09/2009', 'DD/MM/YYYY') AND TO_DATE('26/10/2009', 'DD/MM/YYYY')
    AND     a.agent_id = 104
    AND     a.fiche_id = b.fiche_id
    AND     b.activites_id = c.activites_id
    AND     a.agent_id = d.agent_id
    group   by c.libelle
    order   by sum(b.duree)Because it would always be 100 (if you are taking as percentage) be what ever the count of duree be.
    Or did I miss something in understanding the requirement.
    Regards
    Anurag

  • How do I share an lvm partition between two systems?

    Hi,
      I have a regular system which I usually work from, and I created a lvm partition using that system to store files in. I have another Arch system on the same harddrive (different partition) and I would like to know how I can access the lvm partition using the second system.
      I have the following in my new system
    /dev/sda8 swap swap defaults 0 0
    /dev/sda9 / ext3 defaults 0 1
    /dev/sda5 /mnt/arch ext3 defaults 0 0
    /dev/sda2 /mnt/boot ext2 defaults 0 0
    /dev/sda6 /mnt/arch-home reiserfs defaults 0 0
    /dev/ravilvg/lvmpartition /mnt/lvmpartition reiserfs defaults,users 0 0
      When I try to mount '/mnt/lvmpartition', I get
    [root@myhost ravi]# mount /mnt/lvmpartition/
    mount: special device /dev/ravilvg/lvmpartition does not exist
      I have put USELVM="yes" in my rc.conf, and on bootup I get the message that Device mapper is not in the kernel. 'lsmod' shows the dm_mod module is not loaded, but loading the module and running the mount command still does not work.
      Here are the outputs of the lvm commands
    [root@myhost ravi]# lvm pvscan
    PV /dev/sda10 VG ravilvg lvm2 [24.20 GB / 0 free]
    Total: 1 [24.20 GB] / in use: 1 [24.20 GB] / in no VG: 0 [0 ]
    [root@myhost ravi]# lvm vgscan
    Reading all physical volumes. This may take a while...
    Found volume group "ravilvg" using metadata type lvm2
    [root@myhost ravi]# lvm lvscan
    inactive '/dev/ravilvg/lvmpartition' [24.20 GB] inherit
      Thanks,
    Ravster

    Hi,
      You were right, the solution was to simply activate the volume
      What I did was
    lvm lvchange -ay /dev/ravilvg/lvmpartition
      The lvm partition is now accesible from both systems
    Thanks for your help,
    Ravster

  • How to find out the Non Partitioned Tables used 2Gb on oracle

    Hi team
    how to find out the Non Partitioned Tables used > 2Gb on oracle where not is sys & system
    regards

    heres 1 I made earlier
    set pagesize 999
    set linesize 132
    col owner format a25
    col segment_name format a60
    select owner,segment_name,segment_type,(bytes/1024/1024)"MB size"
    from dba_segments
    where owner not in ('SYS','SYSTEM','XDB','MDSYS','SYSMAN') -- edit for taste
    and segment_type = 'TABLE'
    having (bytes/1024/1024) > 2000
    group by bytes, segment_Type, segment_name, owner
    order by 4 asc

  • How to recover root password in S10 for Intel

    Please is Urgent!
    how to recover root password in S10 for Intel
    Thanks.

    Boot into single-user mode from CD 1.
    Mount your root partition (eg, c0t0d0s0)
    to /a, then edit /a/etc/shadow to take away
    the root password.
    Reboot normally, login as root, reset the
    root password.

  • How to Unlock root user in Linux version 4.4

    Hi All,
    Please let me know how to unlock root user as i tried to access with wrong password more than 3 times.
    Thanking you in advance

    Hi All,
    We tried to reset the root password in single user mode and tried to change the passas follows:
    we are getting error message as follows:
    sh -3.00#passwd root
    Changing password for the user root.
    New UNIX password:
    Retype New UNIX password:
    passwd: Authentication token manipulation error
    Please suggest how to change the root password in single user mode

  • How to make more than one partition on Airport Time Capsule?

    how to make more than one partition on Airport Time Capsule?

    Only for the very brave......
    Open up the Time Capsule (voids the warranty)
    Pull the hard drive
    Place the hard drive in a separate enclosure
    Connect the enclosure directly to your Mac
    Use Disk Utility to partition the hard drive
    Reinstall the hard drive back in the Time Capsule
    For the rest of us.....
    The next best thing might be to set up one or more disk images on the Time Capsule, which will allow you reserve a given amount of space for each disk image.
    Open up Macintosh HD > Applications > Utilities > Disk Utility
    Click on the New Image tab
    Navigate to the Time Capsule
    Set up the disk image by naming it and specifying how much space you want to reserve

  • How to delete the data from partition table

    Hi all,
    Am very new to partition concepts in oracle..
    here my question is how to delete the data from partition table.
    is the below query will work ?
    delete from table1 partition (P_2008_1212)
    we have define range partition ...
    or help me how to delete the data from partition table.
    Thanks
    Sree

    874823 wrote:
    delete from table1 partition (P_2008_1212)This approach is wrong - as Andre pointed, this is not how partition tables should be used.
    Oracle supports different structures for data and indexes. A table can be a hash table or index organised table. It can have B+tree index. It can have bitmap indexes. It can be partitioned. Etc.
    How the table implements its structure is a physical design consideration.
    Application code should only deal with the logical data structure. How that data structure is physically implemented has no bearing on application. Does your application need to know what the indexes are and the names of the indexes,in order to use a table? Obviously not. So why then does your application need to know that the table is partitioned?
    When your application code starts referring directly to physical partitions, it needs to know HOW the table is partitioned. It needs to know WHAT partitions to use. It needs to know the names of the partitions. Etc.
    And why? All this means is increased complexity in application code as this code now needs to know and understand the physical data structure. This app code is now more complex, has more moving parts, will have more bugs, and will be more complex to maintain.
    Oracle can take an app SQL and it can determine (based on the predicates of the SQL), which partitions to use and not use for executing that SQL. All done totally transparently. The app does not need to know that the table is even partitioned.
    This is a crucial concept to understand and get right.

  • How can I create a new partition to install Windows 7 by not using Bootcamp

    How can I create a new partition to install Windows 7 by not using Bootcamp?

    If you want to dualboot you have to use boot camp i think. I think you have already a full disc and cannot make another partition I'm I right?
    Your question seems a bit blurry so I'm giving you a general tip here.
    If you want to just try the beta you can always use Sun's "Virtualbox".

  • In VIEWING (to print) my iTunes music (in finder), how can i view subfolders without clicking on the  triangle of each main folder?

    In VIEWING (to print) my iTunes music (in finder), how can i view subfolders without clicking on the  triangle of each main folder?
    I am trying to print a list of all my music. For example, main folder is BEATLES.  Subfolders are Magical Mystery Tour, Yellow Submarine, Abbey Road, etc...
    and I want to view and print all the subfolders. This is a recovery project after my hard drive failed. I know this is truly a "finder" question and will double post there.
    Thanks.
    Amy

    amy lynn wrote:
    way too much ink.
    Don't know what this means but okay.

  • How can I remove the BootCamp partition? as the size i created ws too small to install MS Office on 64Bit Windows 8.1 on MacBook Pro (Aug'13)

    How can I remove the BootCamp partition drive for Windows 8.1, as the size which I created was too small for me to install Microsoft Office onto Windows 8.1 64-BIt. The machine which I have is the MacBook Pro 13' inch purchased in August 2013.

    Either use Paragon's CampTuneX to resize it or use Boot Camp Assistant to remove the partition and restore the drive to one partition. Then create a new, larger Boot Camp partition. This will remove/delete/erase your Windows system.

  • How To Format My XP Bootcamp Partition.  Help!

    Could anyone tell me how to reformat my bootcamp xp partition during installation? I have chosen a Fat32 24 Gig partition for XP and I am confronted time and again with a Disk Error - even though the disk is brand new and has been used on one other computer.

    Hi there!
    If it is an OEM disc as compared to a retail version, it will only work on one computer, not one at a time, but on only one machine. Is it an OEM disc?

  • How can I undo Converting Recovery Partition to Logical Drive (Oops...) - HP G62-b32sa?​??

    I needed to create a new partition, but to do that Easeus Partition Master 9.00 Home Edition (I like using this compared to the Windows one..) stated that I needed to convert one of the 4 pre-made partitions from Primary to Logical. The following partitions were pre-made with my laptop, HP G62-b32SA, all of which were Primary:
    *: SYSTEM
    C:
    D: RECOVERY
    *: HP_TOOLS
    I could only convert the "D: Recovery" to Logical, so I went ahead, and then could create a new partition. But now after reading several post on this Forum, I realised what a mistake that was. I found that that converting the Recovery partition to Logical renders it useless... "Oops" I said. Now I wonder that if I convert the Recovery partition back to Primary, will I be able to use it again, or has the damage been done? But then the other problem is that it won't allow me to convert the Recovery Partition back to Primary, claiming "there are no free MBR slots". Also, I have a feeling that I'll have to delete my newly created partition to convert the Recovery partition back to Primary, but then how do I create a new partition without converting any of the existing to Logical? Endless questions, I know. So now I ask, what is the best thing to do??
    BTW this is my first HP Laptop...
    This question was solved.
    View Solution.

    How to handle this situation, back up your personal data and use the HP Recovery Discs to restore the PC
    Make your recovery discs now, use good quality DVD+R media
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&​lc=en&docname=c01867124
    Once you are back to normal partitions, see this thread on how to make another partition without damaging the other 4
    http://h30434.www3.hp.com/t5/Other-Notebook-PC-que​stions/How-to-repartition-HDD-of-HP-notebook-with-​...

  • How to use SQL OVER and PARTITION BY in OBIEE Expression Builder??

    Hi there,
    I want to create a new logical coulmn with the following SQL query.
    SUM(Inventory Detail.Qty) OVER(PARTITION BY Inventory Detail.A,Inventory Detail.B,Item.C,Inventory Detail.D,MyDATE )/SUM(Inventory Detail.Qty) OVER(PARTITION BY Inventory Detail.A,Inventory Detail.B,Item.C )
    How to use the OVER and PARTITION BY in OBIEE Expression Builder??
    Thanks in Advance

    hi bipin,
    We cant use by in Expression builder(rpd) .But use the same formula like this in Fx of answers
    SUM(Inventory Detail.Qty) OVER(PARTITION BY Inventory Detail.A,Inventory Detail.B,Item.C,Inventory Detail.D,MyDATE )/SUM(Inventory Detail.Qty) >OVER(PARTITION BY Inventory Detail.A,Inventory Detail.B,Item.C )SUM(Inventory Detail.Qty by Detail,ITEM,Mydate)/SUM(qty by detail,item)
    First check the numerator whether it was giving correct results or not then go with denominator
    compare the results with sql that u have
    Let me know if that does work
    thanks,
    saichand.v
    Edited by: Saichand Varanasi on Jul 27, 2010 9:27 PM
    Edited by: Saichand Varanasi on Jul 27, 2010 9:28 PM

Maybe you are looking for