PDA

Bekijk de volledige versie : Harddisk upgrade -> image ?



raas
27-08-2007, 10:35
Hi everyone,


As my knowledge of this box evolves, so does my need for storage.

I began experimenting with a 20gb (I know, it's small) harddrive connected to my asus.

After many hours tweaking and setting it up, it now runs smooth.
However, 20gb of storage is never going to be enough. So I took a 40gb drive to start experimenting with 'imaging' the 20gb drive to it, before I go out and buy a 500gb or 1tb disk.

What did I do?
I connected both 20gb and 40gb to my windows machine, and used partition magic to copy the partition from the 20gb which has my current setup to the 40gb disc. I then resized the partition just that much so there was 512mb space left.

Connected the 'new' 40gb to the asus and started it up.
made the swap, intalled the swap.. ok.. rebooted the box.
Box fires up.. swap is created, but the first partition (now something like 37gb) cannot be accessed.. therefore the services and applications installed on the disk (samba, mc, nano, sabnzbd) do not run.

However. when I try to to run the post-boot script manually there's an error telling me the device is in use. Mounting is done before the swap is made, The swap is there, so the script did run on startup, only did it not mount the first partition properly.

When I run df command, it shows me this:
(mind you to say, the disk had something like 12gb data on it when I copied the partition)



[admin@NAS root]$ df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 2880 2880 0 100% /
/dev/discs/disc0/part1 18737852 12677328 5108676 71% /opt


When I run mount command, it shows me this:


[admin@NAS root]$ mount
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/discs/disc0/part1 on /opt type ext3 (rw)


does anyone have an idea what might went wrong

Thanks in advance,

Raas

raas
28-08-2007, 21:11
Got it already.

mounted the new harddrive while the old one was still connected.

copied /opt to the new drive.

rebooted.

connected the new drive.


works.


.