使用removable disk在Linux和Solaris之间传递>4G文件

来源:互联网 发布:学软件好就业吗 编辑:程序博客网 时间:2024/06/15 18:33

> another migration-related question: I do have a fairly well sized USB> drive to hold data so far to share between Linux, Windows and> OpenSolaris, thus the lowest common denominator (in terms of file> systems) being FAT32. Taken into account I do have also to backup a few> VirtualBox images (which are larger than FAT32 allows), I will have to> reformat this drive anyhow, so my question: What kind of file system> would suit best the need of being written to in Linux _and_ read from in> OpenSolaris? (This is just for the migration of config and some data> indeed, I'll have to go for FAT32 again after for the Windows situations> anyhow...).

In that case, I'd use "star" to write directly to the media, i.e. createan empty/unused primary partition on the drive (what'd be /dev/hd.X, 1 <=X <= 4, on Linux, and /dev/dsk/...p[1-4] on Solaris), and then do:cd /dir-to-backup-from; star cvf /dev/dsk/hde2 .on Linux, andcd /dir-to-restore-in; star xvf /dev/dsk/c...p2on Solaris to extract it.That's capable of >4GB files, UNIX permissions, long filenames, ... - fora simple data transfer/copy, it's also much faster than FAT32.

原创粉丝点击