LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Can different FS be duplicated (http://www.linuxquestions.org/questions/linux-general-1/can-different-fs-be-duplicated-425691/)

satimis 03-17-2006 05:24 AM

Can different FS be duplicated
 
Hi folks,

I have DSL 2.2b running on /dev/hda5 on ext 2 with grub as bootloader. I have /dev/sda1 of a pendrive running on FAT16 which is a MUST otherwise the BIOS unable to boot it. I'm testing to run DSL on the pendrive using grub as bootload.

Would it be possible to duplicate /dev/hda5 on /dev/sda1 the later having 800M in capacity sufficient for DSL 2.2b to run. They are of different filesystem.

I tried follows without success;

1)
# cp -aRx /mnt/hda5/* /mnt/sda1/
Code:

....
....
cp: cannot create symbolic link `/mnt/sda1/etc/rc5.d/S49dsl_restore': Operation not permitted
cp: cannot create symbolic link `/mnt/sda1/etc/rc5.d/S99bootlocal': Operation not permitted
cp: cannot create symbolic link `/mnt/sda1/etc/rc6.d/K20pcmcia': Operation not permitted
cp: cannot create symbolic link `/mnt/sda1/etc/rc6.d/K79nfs-common': Operation not permitted
cp: cannot create symbolic link `/mnt/sda1/etc/rc6.d/S90knoppix-reboot': Operation not permitted
cp: cannot create symbolic link `/mnt/sda1/etc/rcS.d/S00knoppix-autoconfig': Operation not permitted
cp: cannot create symbolic link `/mnt/sda1/etc/rcS.d/S01dsl-config': Operation not permitted
cp: cannot create symbolic link `/mnt/sda1/etc/rcS.d/S35devpts.sh': Operation not permitted
cp: cannot create symbolic link `/mnt/sda1/etc/resolv.conf': Operation not permitted
cp: cannot create symbolic link `/mnt/sda1/etc/samba': Operation not permitted
cp: failed to preserve ownership for `/mnt/sda1/etc/shadow': Operation not permitted

I have to stop it manually.


2)
# (cd /mnt/hda5 && tar -clpsf- *) | (cd /mnt/sda1 && tar -xpsf -)
Code:

...
...
tar: dev/tty25: Cannot mknod: Operation not permitted
tar: dev/tty26: Cannot mknod: Operation not permitted
tar: dev/tty27: Cannot mknod: Operation not permitted
tar: dev/tty28: Cannot mknod: Operation not permitted
tar: dev/tty29: Cannot mknod: Operation not permitted
tar: dev/tty3: Cannot mknod: Operation not permitted
tar: dev/tty30: Cannot mknod: Operation not permitted
tar: dev/tty31: Cannot mknod: Operation not permitted
tar: dev/tty32: Cannot mknod: Operation not permitted
tar: dev/tty33: Cannot mknod: Operation not permitted
tar: dev/tty34: Cannot mknod: Operation not permitted
tar: dev/tty35: Cannot mknod: Operation not permitted
tar: dev/tty36: Cannot mknod: Operation not permitted
tar: dev/tty37: Cannot mknod: Operation not permitted
tar: dev/tty38: Cannot mknod: Operation not permitted
tar: dev/tty39: Cannot mknod: Operation not permitted

I have to stop it manually.


3)
# (cd /mnt/hda5 && tar -cpsf- *) | (cd /mnt/sda1 && tar -xpsf -)
Code:

...
......
tar: dev/sdb8: Cannot mknod: Operation not permitted
tar: dev/sdb9: Cannot mknod: Operation not permitted
tar: dev/sdc: Cannot mknod: Operation not permitted
tar: dev/sdc1: Cannot mknod: Operation not permitted
tar: dev/sdc10: Cannot mknod: Operation not permitted
tar: dev/sdc11: Cannot mknod: Operation not permitted
tar: dev/sdc12: Cannot mknod: Operation not permitted
tar: dev/sdc13: Cannot mknod: Operation not permitted
tar: dev/sdc14: Cannot mknod: Operation not permitted
tar: dev/sdc15: Cannot mknod: Operation not permitted
tar: dev/sdc2: Cannot mknod: Operation not permitted
tar: dev/sdc3: Cannot mknod: Operation not permitted
tar: dev/sdc4: Cannot mknod: Operation not permitted
tar: dev/sdc5: Cannot mknod: Operation not permitted
tar: dev/sdc6: Cannot mknod: Operation not permitted

I have to stop it manually.

Advice would be appreciated. TIA

B.R.
satimis

jlliagre 03-17-2006 06:35 AM

Beyond many others features, FAT doesn't supports symbolic links.

David the H. 03-17-2006 10:26 AM

Would it be possible to copy DSL to the pendrive as an .iso image, then run the distro directly from the image itself.

I know it's possible to recursively mount a disk image using the loopback command in mount, but I don't know if it's possible to boot from one directly. I imagine it could be done though. Perhaps there's a way to get grub to boot from the image as if it were a CD?

cs-cam 03-17-2006 05:53 PM

I haven't used either distro but you could try ZipSlack. It runs from a file on a FAT disk, could be worth a shot :)

jlliagre 03-17-2006 06:00 PM

Another option would have been to use UMSDOS on the pendrive, but I'm afraid support is fading in recent kernels ...


All times are GMT -5. The time now is 08:44 AM.