USB booting :: Storing files on USB



Quote (Juanito @ April 10 2008,11:51)
The current "install to usb" menu in dsl makes two partitions as stated previously, but you can manually make a single fat/fat32 partition and boot using syslinux or a single ext2 partition and boot using extlinux and no doubt (I haven't tried) you could also use grub to boot either of these partitions.

Thanks, Juanito.

I'm afraid I didn't quite explain properly--I already have a single (1 GiB, FAT32) partition on my USB stick, with dsl-embedded booting from it. What I would like to do is to give (i.e. chown) a folder within the memory stick (mounted as /cdrom) to user dsl (i.e. the default user in dsl), so that I can write to it without becoming root. When I try this within dsl, it says that I do not have permission, even if I try to do it as root.

Quote (takowl @ April 10 2008,15:14)
I'm afraid I didn't quite explain properly--I already have a single (1 GiB, FAT32) partition on my USB stick, with dsl-embedded booting from it. What I would like to do is to give (i.e. chown) a folder within the memory stick (mounted as /cdrom) to user dsl (i.e. the default user in dsl), so that I can write to it without becoming root. When I try this within dsl, it says that I do not have permission, even if I try to do it as root.

That's probably mounted as RO.  Check `mount`

What's your boot parameters?  You could try adding the "frugal" cheatcode or maybe remounting the partition as RW.

This allows me to boot dsl from a 1GB usb stick formatted as a single ext2 partition:
Quote
[extlinux.conf]
DEFAULT linux24
APPEND ramdisk_size=100000 init=/etc/init lang=us vga=773 initrd=minirt24.gz nomce noapic quiet frugal toram syslog dma acpid restore=sda1  BOOT_IMAGE=knoppix
TIMEOUT 300


Folders as follows:
Code Sample
$ ls -l /mnt/sdc1
dr-xr-xr-x    2 root     root         4096 Jul 20  2007 KNOPPIX
drwxr-xr-x    3 dsl      staff        4096 Feb 16 03:19 backup
-rwxr-xr-x    1 root     root      1286928 Apr 11 01:24 backup.tar.gz
-rwxr-xr-x    1 root     root         2048 Jul 20  2007 boot.cat
-rwxr-xr-x    1 root     root          123 Jul 20  2007 boot.msg
drwxr-xr-x    4 dsl      staff        4096 Jul 21  2007 build
drwxr-xr-x    6 dsl      staff        4096 Apr 11 01:19 docs
drwxr-xr-x    3 dsl      staff        4096 Sep 28  2007 drivers
-rw-r--r--    1 root     root         2611 Feb 16 03:50 extlinux.conf
-r--r--r--    1 root     root        10072 Jul 20  2007 extlinux.sys
-rwxr-xr-x    1 root     root         1592 Jul 20  2007 f2
-rwxr-xr-x    1 root     root         1595 Jul 20  2007 f3
-rwxr-xr-x    1 root     root          256 Jul 20  2007 german.kbd
-rwxr-xr-x    1 root     root      1005209 Sep 17  2007 linux24
-rwxr-xr-x    1 root     root        33780 Jul 20  2007 logo.16
drwx------    2 root     root        16384 Jul 20  2007 lost+found
-rwxr-xr-x    1 root     root       856748 Feb 16 03:50 minirt24.gz
drwxr-xr-x    3 dsl      staff        4096 Apr  9 18:50 mydsl
drwxr-xr-x   13 dsl      staff        4096 Mar 27 19:27 source
drwxr-xr-x    3 dsl      staff        4096 Apr  5 09:47 tmp

Not being a windows guy, does fat32 even support multiple permissions? Isn't that why there is/was UMSDOS and UVFAT?

If your requirement dictates a single partiton then I would suggest to use Juanito's method.

Sorry I've not replied for a while--been busy with one thing and another.

It is possible to write to the mount--I can do so as superuser, and I have verified that the data is still there. I would essentially like to be able to do the same thing without logging in as root.

My preference is to make use of /cdrom, as I know it's consistent (regardless of how dsl is booted or on what system), and it's already formatted correctly for my purposes. If that's impossible, then fair enough...but I can't logically see why it would be impossible.

Next Page...
original here.