Results 1 to 4 of 4

Thread: persistent home: can I resize the loopback file knoppix.img?

  1. #1

    persistent home: can I resize the loopback file knoppix.img?

    Hi, I'm a linux and knoppix newby. I recently created a persistent home directory by formatting a 2GB knoppix.img loopback file in a 40GB LaCie portable external drive (FAT32). I believe, however, that I may need a bigger loopback file in the future. Is it possible to resize the persistent home file from Knoppix?

    If this is not possible, would it be possible to move the /home contents to another directory in the drive, erase knoppix.img, create a bigger loopback file, and then replant the previous /home contents in the new /home without losing any data?

  2. #2
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041

    Re: persistent home: can I resize the loopback file knoppix.

    --2GB is the maximum single-filesize for Fat32. Your second scenario is definitely possible on any linux-native filesystem, such as Reiserfs or ext(2/3); use ' cd sourcedir; cp -apRv . destination-dir ' is what I'd recommend, or tar, or even ' mc '.

    --You could also "stack" more 2GB loopback files on top of /home, like so:

    ' mkdir /home/you/extraspace '
    ' touch /home/you/extraspace/NOTHERE ' == If you LS the dir and see NOTHERE, ya know it's not mounted.

    ' dd if=/dev/zero of=/mnt/fat32drive/mnt-home-extraspace-2gb.img bs=1M count=2047 ' == Make the bigfile
    ' mkreiserfs /mnt/fat32drive/mnt-home-extraspace-2gb.img ' == Answer Y (Format it)

    ' mount /mnt/fat32drive/mnt-home-extraspace-2gb.img /home/you/extraspace -oloop,noatime,rw ' == Also you can use 'notail' as a mount option if you prefer speed over maximum storage space.

    (I'm rather tired ATM; lemme know if you need more hints.)

    Quote Originally Posted by amador
    Hi, I'm a linux and knoppix newby. I recently created a persistent home directory by formatting a 2GB knoppix.img loopback file in a 40GB LaCie portable external drive (FAT32). I believe, however, that I may need a bigger loopback file in the future. Is it possible to resize the persistent home file from Knoppix?

    If this is not possible, would it be possible to move the /home contents to another directory in the drive, erase knoppix.img, create a bigger loopback file, and then replant the previous /home contents in the new /home without losing any data?

  3. #3
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    1,516

    " image, as far as it looks it is just a directory.

    just a space is missing from your lines Dave.
    Code:
    mount /mnt/fat32drive/mnt-home-extraspace-2gb.img /home/you/extraspace -o loop,noatime,rw
    by a space I mean that the space between -o and loop (in my line), if the space is not there it might (read should) not work
    EDIT the MAX filesize is actually 4G minus one byte, but for some reason knoppix wont alow that.

    moving home is not that hard.
    just make another imagefile copy everything there and replace the entries in /etc/fstab so that your new file is listed instead,
    you can certainly add another file and make that a subdirectory of your old one. i have that.
    /home/user is one the original one
    and home/user/extra is the "extra
    then you can make a /home/user/extra2 and3...or a /home/user/extra/extra...
    it is the textfile /etc/fstab that tells linux where the disks/partitions/images are to be mounted. man fstab might help you some more (and asking here aswell)./EDIT

  4. #4
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041

    Re: " image, as far as it looks it is just a directory.

    --Try it w/o the space. I do it all the time, it works. I've run into the 2GB max filesize limit more times than I can count ('zip' is famous for this) and finally just stopped using Fat32 for storage outside of native Windoze.

    --Original poster, I'd highly recommend resizing the Fat32 partition on your drive, and making about 1/2 of it native Linux - reiserfs, ext3 or whatever. That way *you* get to use the maximum amount of space for whatever you want, including file permissions. I *think* Knoppix should be able to find your persistent home on just about any partition type, but you should experiment.

    Quote Originally Posted by OErjan
    just a space is missing from your lines Dave.
    Code:
    mount /mnt/fat32drive/mnt-home-extraspace-2gb.img /home/you/extraspace -o loop,noatime,rw
    by a space I mean that the space between -o and loop (in my line), if the space is not there it might (read should) not work
    EDIT the MAX filesize is actually 4G minus one byte, but for some reason knoppix wont alow that.

    moving home is not that hard.
    just make another imagefile copy everything there and replace the entries in /etc/fstab so that your new file is listed instead,
    you can certainly add another file and make that a subdirectory of your old one. i have that.
    /home/user is one the original one
    and home/user/extra is the "extra
    then you can make a /home/user/extra2 and3...or a /home/user/extra/extra...
    it is the textfile /etc/fstab that tells linux where the disks/partitions/images are to be mounted. man fstab might help you some more (and asking here aswell)./EDIT

Similar Threads

  1. Replies: 0
    Last Post: 06-08-2007, 07:11 PM
  2. home resize disaster
    By drg55 in forum General Support
    Replies: 2
    Last Post: 12-30-2003, 01:15 AM
  3. How can I change the persistent home file size?!
    By PsycoX in forum General Support
    Replies: 4
    Last Post: 09-09-2003, 02:23 AM
  4. Replies: 0
    Last Post: 05-05-2003, 06:50 AM
  5. Regarding Knoppix Persistent Home 0.2
    By Phredd in forum Customising & Remastering
    Replies: 4
    Last Post: 12-22-2002, 02:49 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
  •  


Dell PowerEdge FX2s + 8x FC430 Blades 16x E5-2630v4 160 Cores Rails No PSU/RAM picture

Dell PowerEdge FX2s + 8x FC430 Blades 16x E5-2630v4 160 Cores Rails No PSU/RAM

$699.00



AS IS READ DESCRIP. Supermicro SuperServer 6026TT-HIBQRF 12-Bay 4x X8DTT-HIBQF picture

AS IS READ DESCRIP. Supermicro SuperServer 6026TT-HIBQRF 12-Bay 4x X8DTT-HIBQF

$215.00



NETAPP HCI NAF-1701 SuperMicro Server 4X BLADE H410C 8X GOLD 5120 - 4X S25G NICs picture

NETAPP HCI NAF-1701 SuperMicro Server 4X BLADE H410C 8X GOLD 5120 - 4X S25G NICs

$1999.97



Dell PowerEdge M630 Blade Server 2x Xeon E5-2680 v4, 2F3MP , 4GDP5 ,R10KJ ,JVFVR picture

Dell PowerEdge M630 Blade Server 2x Xeon E5-2680 v4, 2F3MP , 4GDP5 ,R10KJ ,JVFVR

$96.60



Dell R740XD VxRail P570 24x 2.5” 2U CTO Server– 2x Gold 6240, H740p, 2x 1600W picture

Dell R740XD VxRail P570 24x 2.5” 2U CTO Server– 2x Gold 6240, H740p, 2x 1600W

$699.00



Dell PowerEdge FX2 FX2s Server 10GbE CMC Blade Enclosure Chassis picture

Dell PowerEdge FX2 FX2s Server 10GbE CMC Blade Enclosure Chassis

$274.99



Dell PowerEdge VRTX Rackmount Chassis w/4x PSUs 2x CMC Modules picture

Dell PowerEdge VRTX Rackmount Chassis w/4x PSUs 2x CMC Modules

$399.98



Dell PowerEdge M620 Blade Server 2x Xeon E5-2680v2 2.8ghz 20-Cores | 128GB picture

Dell PowerEdge M620 Blade Server 2x Xeon E5-2680v2 2.8ghz 20-Cores | 128GB

$149.99



Dell PowerEdge FC430 Blade Server 2x Xeon E5-2630v4 20 Cores FX2 FX2s No RAM/HDD picture

Dell PowerEdge FC430 Blade Server 2x Xeon E5-2630v4 20 Cores FX2 FX2s No RAM/HDD

$119.99



Dell Poweredge VRTX 25Bay 2.5

Dell Poweredge VRTX 25Bay 2.5" 2x PERC 8, 2xCMC, I/O 1GB Pass Through, 4x PS

$578.08