Results 1 to 10 of 10

Thread: Peristant UnionFS?

  1. #1
    Member registered user
    Join Date
    Apr 2003
    Posts
    55

    Peristant UnionFS?

    Instead if using the RAM disc as part of the UnionFS file system, why not use a persistant hard drive partition. Combined with a persistant home, you could create a poor mans instalation, which acted like a real instalation. Would this be possible?

  2. #2
    Junior Member
    Join Date
    Mar 2006
    Location
    Australia
    Posts
    2

    Been thinking of this myself

    Was looking through to see if someone has already done it. Puppy linux seems to write files into extra session tracks. I was thinking it would be good to either write to usb prior to shutdown, or really nifty would be to write to the disc (assume rw media, or just append extra session like puppy)

    There have been several times when I have had to power down and would have liked to keep /ramdisk

    I suppose this could be done manually, just the times I needed to was hard pressed for time. I intend to pursue this, although for what I want the hard disk is not an option, and usb's are a bit small, hence the thought of tacking on an encrypted backup of the ramdisk to the end of the dvd.

    If anyone has already done this for knoppix I'd like to know.


    cya, Andrew...

  3. #3
    You can do it after the fact. Here is what I did to expand my /UNIONFS in knoppix. I mounted a free partition at /mnt/sda1, then did a "unionctl /UNIONFS --list" to make sure I know the top priority part of the union, then a --add to stick the new partition on top. df shows I now have plenty of elbow room in UNIONFS. Whether this is persistent or not is another question.

    mount bla bla bla

    df
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/root 2471 19 2452 1% /
    /ramdisk 808568 662484 146084 82% /ramdisk
    /UNIONFS 2750524 2604440 146084 95% /UNIONFS
    /dev/sda2 1035692 741788 241292 76% /cdrom
    /dev/cloop 1941958 1941958 0 100% /KNOPPIX
    /UNIONFS/dev/sda4 150689348 25805684 117229096 19% /homey
    /UNIONFS/dev/sda1 1035660 33176 949876 4% /mnt/sda1


    unionctl /UNIONFS --list
    /ramdisk (rw)
    /KNOPPIX (r-)


    unionctl /UNIONFS --add --before /ramdisk --mode rw /mnt/sda1

    df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/root 2.5M 19K 2.4M 1% /
    /ramdisk 790M 647M 143M 82% /ramdisk
    /UNIONFS 3.7G 2.6G 1.1G 71% /UNIONFS
    /dev/sda2 1012M 725M 236M 76% /cdrom
    /dev/cloop 1.9G 1.9G 0 100% /KNOPPIX
    /UNIONFS/dev/sda4 144G 25G 112G 19% /homey
    /UNIONFS/dev/sda1 1012M 33M 928M 4% /mnt/sda1

    web pages I found helpful:
    http://www.unionfs.org/
    http://www.fsl.cs.sunysb.edu/project-unionfs.html
    http://www.knoppix.net/wiki/Trivial_...ion_filesystem

    this may also be of interest - combine unionfs & gmailfs for true mobility:
    http://www.knoppix.net/wiki/Gmailfs

  4. #4
    Member registered user
    Join Date
    Jan 2004
    Location
    Norway
    Posts
    80

    Re: Peristant UnionFS?

    Quote Originally Posted by reub2000
    Instead if using the RAM disc as part of the UnionFS file system, why not use a persistant hard drive partition. Combined with a persistant home, you could create a poor mans instalation, which acted like a real instalation. Would this be possible?
    Sounds like Slax's 'changes=/dev/device' cheatcode mode..

    I suggested they take a look at it on the Kanotix forum, but there was little response..

    It allows me to have a Poormans Install to a /slax folder somewhere (e.g. hdb16) and a Linux 'changes' partition (hdb17 in my case). On top of that I boot with 'copy2ram', so the result is exceedingly fast, both booting and in use, AND changes are automatically taken care of.

    Mvh

  5. #5

    Re: Peristant UnionFS?

    I was overly optimistic - UNIONFS let me add the hard drive, but still acted like it was out of space when the ram part filled up. I'm guessing that it needs to be added earlier in the process, or better yet, instead of the ramdisk. Sounds like major surgery to me.

  6. #6
    Senior Member registered user
    Join Date
    Sep 2005
    Posts
    205

    Re: Peristant UnionFS?

    Quote Originally Posted by burnst001@hawaii.rr.com
    I was overly optimistic - UNIONFS let me add the hard drive, but still acted like it was out of space when the ram part filled up. I'm guessing that it needs to be added earlier in the process, or better yet, instead of the ramdisk. Sounds like major surgery to me.
    You can use
    Code:
    sudo unionctl /UNIONFS --mode /ramdisk ro
    to make ramdisk-branch readonly. After that no additional data will be written to it. You should of course add another read-write branch before doing this.

  7. #7
    Member registered user
    Join Date
    Mar 2005
    Posts
    87

    Re: Peristant UnionFS?

    Quote Originally Posted by burnst001@hawaii.rr.com
    I was overly optimistic - UNIONFS let me add the hard drive, but still acted like it was out of space when the ram part filled up. I'm guessing that it needs to be added earlier in the process, or better yet, instead of the ramdisk. Sounds like major surgery to me.
    It would only require a few changes in the miniroot.gz, primarily the mounting of /ramdisk. Instead of configuring a tmpfs filesystem and then mounting that on /ramdisk you could take a real disk and mount it on /ramdisk. This would then of course, as described above, give you your persistant RAM.

  8. #8
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Germany
    Posts
    1,159
    See the unionrw= cheatcode in Kanotix. (Don't know whether Knoppix has this by now, too...)
    http://kanotix.com/PNphpBB2-viewtopic-t-6846.html

  9. #9

    How do you use a folder in the USB flash drive to expand UNI

    UNIONFS? ...that is, yes I can do the above and set up a separate partition, BUT HOW DO I SET UP THAT PARTITION on a thumb drive?

  10. #10

    what is the replacement for unionctl --add, after unionfs 2?

    ...it doesn't appear to exist, and how do i add an additional unionfs partition to another partition..?

Similar Threads

  1. does knoppix, use aufs? or unionfs? ...still says /UNIONFS..
    By starlyptErin_. in forum General Support
    Replies: 0
    Last Post: 08-22-2009, 10:55 PM
  2. PXE NFS and UNIONFS
    By noobo in forum Hardware & Booting
    Replies: 1
    Last Post: 05-09-2007, 02:41 AM
  3. Root file system links to UNIONFS (e.g. bin -> /UNIONFS/b
    By Jim Tonic in forum Customising & Remastering
    Replies: 1
    Last Post: 05-24-2006, 04:14 AM
  4. UnionFS
    By lilsirecho in forum The Lounge
    Replies: 7
    Last Post: 04-22-2005, 06:42 PM
  5. kde and unionfs
    By ethrandil in forum General Support
    Replies: 1
    Last Post: 03-03-2005, 12:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage lot picture

1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage lot

$580.99



Kingston KC600 1 TB Solid State Drive - 2.5

Kingston KC600 1 TB Solid State Drive - 2.5" Internal - SATA (SATA/600)

$60.00



Western Digital WD_BLACK SN850P 1TB NVMe Internal SSD with Heatsink... picture

Western Digital WD_BLACK SN850P 1TB NVMe Internal SSD with Heatsink...

$85.00



Type C USB 3.0 Flash Drive Thumb Drive Memory Stick for PC Laptop 1TB 2TB lot picture

Type C USB 3.0 Flash Drive Thumb Drive Memory Stick for PC Laptop 1TB 2TB lot

$73.29



CISCO A03-D1TBSATA 1TB 7.2K 6G 2.5INCH SATA HDD picture

CISCO A03-D1TBSATA 1TB 7.2K 6G 2.5INCH SATA HDD

$9.00



1TB HDD/SSD 2.5

1TB HDD/SSD 2.5" SATA Hard Drive for Laptop with Win 10/Win 11 Pro Pre-installed

$19.99



Samsung - Geek Squad Certified Refurbished 870 EVO 1TB SATA Solid State Drive picture

Samsung - Geek Squad Certified Refurbished 870 EVO 1TB SATA Solid State Drive

$67.99



1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage lot picture

1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage lot

$7.99



Internal HDD SATA 3.5

Internal HDD SATA 3.5" 250GB-2TB Hard Drive with Legacy Windows 11 Pro Installed

$29.15



Samsung - 990 980 970 PRO & EVO  4TB 2TB 1 TB Internal PCle Gen 4x4 NVMe M.2SSD picture

Samsung - 990 980 970 PRO & EVO 4TB 2TB 1 TB Internal PCle Gen 4x4 NVMe M.2SSD

$320.00