PDA

View Full Version : HD fun


MechCD
1st September 2001, 16:53
I'm gonna order me a 10 gig hd just for linux soon. Is there a way i can transfer the old stuff over easily? Dnar sorta knows what i'm talkin about

Currently i have


Filesystem Size Used Avail Use% Mounted on
/dev/hda4 973M 884M 39M 96% /
/dev/hdd4 61M 7.4M 50M 13% /tmp
/dev/hdd1 2.0G 1.3G 633M 67% /usr
/dev/hdd3 99M 23M 71M 24% /var
[mechcd@penguin mechcd]$

for linux

and


/dev/hda10 2.0G 1.6G 519M 76% /mnt/mp3
/dev/hda1 2.0G 1.1G 989M 52% /mnt/c
/dev/hda5 4.0G 3.8G 240M 95% /mnt/d
/dev/hda6 2.0G 131M 1.8G 7% /mnt/e
/dev/hda7 3.0G 973M 2.0G 32% /mnt/f
/dev/hda8 2.0G 305M 1.6G 15% /mnt/g
/dev/hda9 2.0G 1.9G 164M 92% /mnt/h
/dev/hdb1 1.5G 4.0k 1.5G 1% /mnt/tmp


for windows stuff (mounted in linux, i have a winME partiion that is 1 gig that i don't have mounted)

Notice my / is on hdda and everything else is on hdd4

Soo....... me needs to do this

copy everything over to NEW hdd (thats /dev/hdd) (10gig or so)

Copy /boot to /bootold
make a partition called /boot
move /bootold to /boot

copy /home to /homeold
make a partition called /home
move /homeold to /home

resize /tmp and /var
resize /usr

With the moving of /boot and /home, my current / should be Ok at its current size. (i can't resize it in System COmmander, but i can resize the others)

Now the big question

Will anything barf when i move / from hda to hdd?
I don't use lilo, i use sytem commander to boot all of my OSes

dnar
2nd September 2001, 11:42
All this disk and partition shuffling should be done using a rott-n-boot disk, do not attempt any of this on the live system!



First off, you cant copy /boot to /bootold and back to /boot like you can with regular files. You must use dd. man dd for much info.





You should make /boot a separate partition, 25MB is oodles, and will allow many kernel images to co-exist. Once your kernel and boot loader are finalised, you can set /boot to read-only in your /etc/fstab.





You must modify your boot loader to specify the new location of your root filesystem (/).





No other issues really, check this HOWTO (http://www.linuxdoc.org/HOWTO/Multi-Disk-HOWTO.html) for more information.

MechCD
2nd September 2001, 17:23
Ok, I'm not gonna do any of the moving in linux... i was gonna transfer stuff in System commander (the partitions) and then move the files around from the boot disk.

Would i boot from / or /boot once i make a /boot partition?

dnar
2nd September 2001, 19:20
From /boot my man :D

MechCD
2nd September 2001, 20:08
I went digging for on eof these here "rescue" disks and me doesn't have one :(


I don't have the hdd yet, the picnic took a lil longer than we though, my dad says we can go out monday (tomorrow, labour day) and get one

once again here be the steps me needs to follow

copy /boot to /bootold
copy /home to /home old

that would be done in linux while its running

restart puter, boot into System Commander
Move all partitions to the new /dev/hdd (disk 3 in system commander talk)

leave system commander

popin rescue disk, move /bootold to /boot partition, do the same for /homeold

Leave rescue disk

set system commander to boot from /boot and not /

se if it all werks OK (i'm gonna leave everything on the old hdds incase it blows up)

resize /usr, /va, and /tmp

then reboot again and hopefully it will all werk ok