Re: Setting Group owner of files on USB drive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 5/31/2008 3:33 AM, Johnny Hughes wrote:
Robert Moskowitz wrote:
You can't expect it to maintain ext3 file permissions in a FAT32 partition :D


Not necessarily. If the Linux files do not need to be accessed from the windows environment, you could create an image file, format the image as ext3, mount the image file as a loop device, and treat it as a standard ext3 mount point.

# create a 10M empty file
dd if=/dev/zero of=disk.img bs=1024 count=10000

# format with ext3
mkfs.ext3 disk.img

# mount image
mkdir /mnt/mydata
mount -o loop disk.img /mnt/mydata

# read / write files
echo "hello world" > /mnt/mydata/hello.txt
ll /mnt/mydata


Kenneth
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux