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 R720 8SFF 2.5

Dell Poweredge R720 8SFF 2.5" x Xeon E5-2680 v2 2.8GHz 20-Cores 128gb 4x Trays

$349.99



Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram  2x 550W PSU No HDD picture

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD

$275.00



Dell PowerEdge R730XD Server 2x E5-2695 V4 = 36 Cores H730p 32GB RAM 4x trays picture

Dell PowerEdge R730XD Server 2x E5-2695 V4 = 36 Cores H730p 32GB RAM 4x trays

$649.99



Dell PowerEdge R420 Rack Server Intel Xeon 1.90GHz Six-Core 8GB DDR3 RAM picture

Dell PowerEdge R420 Rack Server Intel Xeon 1.90GHz Six-Core 8GB DDR3 RAM

$95.00



Dell Poweredge R720 8SFF 2.5

Dell Poweredge R720 8SFF 2.5" 2x Xeon E5-2680 v2 2.8GHz 20-Cores 64gb 4x Trays

$259.99



Dell PowerEdge R620 2x Xeon E5-2630 v2 3.1GHz 2.5

Dell PowerEdge R620 2x Xeon E5-2630 v2 3.1GHz 2.5" 4-BAY 32GB RAM No OS 2x 495w

$168.95



Dell Poweredge R740 8 Bay LFF 3.5

Dell Poweredge R740 8 Bay LFF 3.5" 2U Rack Server DUAL XEON GOLD CPUs HOMELAB US

$399.94



Dell PowerEdge R640 Server 2.10Ghz 32-Core 64GB RAM Energy-Efficient picture

Dell PowerEdge R640 Server 2.10Ghz 32-Core 64GB RAM Energy-Efficient

$649.95



Dell PowerEdge R530 2x E5-2630v4 H330 iDRAC8 Port Card Riser No PSU/RAM/HDD picture

Dell PowerEdge R530 2x E5-2630v4 H330 iDRAC8 Port Card Riser No PSU/RAM/HDD

$99.99



Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb picture

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb

$374.99