Help - Search - Members - Calendar
Full Version: Linux Command Needed
OESF Forums > General Forums > Desktop Operating Systems Issues > Linux Issues
Mjolinor
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.
lardman
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
Mjolinor
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)
#
lardman
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
Mjolinor
# 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
iamasmith
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.
Meanie
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
iamasmith
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
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2015 Invision Power Services, Inc.