OESF Portables Forum
Everything Else => Desktop Operating Systems Issues => Zaurus General Forums => Archived Forums => Linux Issues => Topic started by: Mjolinor on February 14, 2006, 05:42:58 am
-
Can someone please give me the exact command to copy the microdrive to a CF in the CF slot such that when I take the microdrive out and replace it with the CF all that I have will be there as though no change has taken place.
I guess it will be something like
cp -R /dev/hda1 /mnt/cf
but I'm not sure and I can't test it until I've swapped it out so would appreciate a concrete answer to save me trying then swapping back and forward.
How shuold I partition / format it?
It's a 3000 with PdaXrom.
-
Are you talking about removing the internal microdrive?
If so, I don't know where it's mounted. Can you list the output of 'mount'?
Si
-
Yes. I intend to remove the microdrive and replace it with a 2Gb CF card.
root@192.168.0.6's password:
# mount
rootfs on / type rootfs (rw)
/dev/root on /media/realroot type jffs2 (rw)
/dev/hda1 on / type ext3 (rw)
/proc on /proc type proc (rw)
none on /dev type tmpfs (rw)
none on /dev/pts type devpts (rw)
/dev/hda1 on /mnt/user type ext3 (rw)
none on /proc/bus/usb type usbdevfs (rw)
#
-
Hmm, I'd expected it to be a bit clearer than that (not your fault though).
Can you also list the output of 'df' which should indicate which of the mount points is on the HDD from their sizes.
On the other hand, someone with one of these machines might know that info?
Si
-
# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hda1 3936428 1353376 2383092 36% /
/dev/hda1 3936428 1353376 2383092 36% /
none 12288 36 12252 0% /dev
/dev/hda1 3936428 1353376 2383092 36% /mnt/user
#
Makes not much sense to me
-
I wouldn't suggest using dd because the geometry will be different, what I would suggest is that you backup the Microdrive contents by whatever means you like, take it out and using a Linux box tar off the contents then create your file systems on the new device and tar them back using that same Linux system. Then fit the new device with the file systems that have been prepped on the Linux box.
Make sure you use the p flag when tarring back though because you want to preserve userids and permissions etc.
-
I would boot into DB mode and then copy from there
mkdir /mnt/hdd
mount /dev/hda1 /mnt/hdd
tar cvf - /mnt/hdd/* | tar xvf - -C /mnt/cf
-
I would boot into DB mode and then copy from there
mkdir /mnt/hdd
mount /dev/hda1 /mnt/hdd
tar cvf - /mnt/hdd/* | tar xvf - -C /mnt/cf
[div align=\"right\"][a href=\"index.php?act=findpost&pid=114872\"][{POST_SNAPBACK}][/a][/div]
Actually you may mean this , the f flag and - are superfluous when doing this and you probably don't want to pipe in the verbose output of tar in the tar creation stage.
tar -c /mnt/hdd/* | tar -xpv -C /mnt/cf
Note that the p option is quite important too