OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Linux Command Needed, to copy 3000 OS to CF
Mjolinor
post Feb 14 2006, 02:42 AM
Post #1





Group: Members
Posts: 227
Joined: 26-October 05
Member No.: 8,405



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.
Go to the top of the page
 
+Quote Post
lardman
post Feb 14 2006, 07:46 AM
Post #2





Group: Members
Posts: 4,515
Joined: 25-October 03
From: Bath, UK
Member No.: 464



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
Go to the top of the page
 
+Quote Post
Mjolinor
post Feb 14 2006, 08:09 AM
Post #3





Group: Members
Posts: 227
Joined: 26-October 05
Member No.: 8,405



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)
#
Go to the top of the page
 
+Quote Post
lardman
post Feb 14 2006, 08:45 AM
Post #4





Group: Members
Posts: 4,515
Joined: 25-October 03
From: Bath, UK
Member No.: 464



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
Go to the top of the page
 
+Quote Post
Mjolinor
post Feb 14 2006, 09:22 AM
Post #5





Group: Members
Posts: 227
Joined: 26-October 05
Member No.: 8,405



# 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
#

smile.gif

Makes not much sense to me
Go to the top of the page
 
+Quote Post
iamasmith
post Feb 14 2006, 11:13 AM
Post #6





Group: Members
Posts: 1,248
Joined: 6-July 04
Member No.: 3,928



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.
Go to the top of the page
 
+Quote Post
Meanie
post Feb 15 2006, 03:09 AM
Post #7





Group: Members
Posts: 2,808
Joined: 21-March 05
From: Sydney, Australia
Member No.: 6,686



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
Go to the top of the page
 
+Quote Post
iamasmith
post Feb 15 2006, 03:46 AM
Post #8





Group: Members
Posts: 1,248
Joined: 6-July 04
Member No.: 3,928



QUOTE(Meanie @ Feb 15 2006, 11:09 AM)
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
*


Actually you may mean this smile.gif, 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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 24th October 2014 - 01:20 PM