> | I've to copy my 64 Studio from the IDE to the SATA, the best way seems
> | to do it by tar, to preserve permissions.
> I would use ddrescue or partimage to copy the partitions to the new
> drive. Then I would use parted (or gparted/qtparted) to resize the
> partition if necessary.
I don't know the way they copy and tar works fine, even with the CHS/LBA
I tested tar and it was fine with preserving permissions when I packed
and unpacked from the HD to the HD, but there must be something wrong
with K3b or the way the DVD is mounted while restoring.
Today I run into trouble, because I tried to restore my /home from a DVD
As root I run k3b in my 32-bit 64 Studio 2.1rc, to backup my 64-bit 64
Studio 2.1rc/Lenny. I know that there's no need to run k3b as root, but
doing it like this, I have more presets, those for user and those for
root. Running k3b this way, guarantees me, that all presets are [X]
Preserve file permissions (backup), resp. it don't seems to be like that.
I tried to restore /home like this:
Spinymouse is user for both 64 Studios, that's why I command each step,
to make it less confusing.
Make a directory, so that the 32-bit 64 Studio can restore the 64-bit 64
spinymouse@64studio:~$ mkdir home
Mount the 64-bit /home for the 32-bit 64 Studio
64studio:/home/spinymouse# mount /dev/hda8 home
Change directory to the backup source
64studio:/home/spinymouse# cd /media/64studio64bit/64studio64bit_home.su
To preserve permissions copy the /home directory by tar and even if it's
default add p (I backup / by tar and /home not in an archive, without
tar), the archive created of the DVD source is written to /root, I know
there's no need to copy lost+found
64studio:/media/64studio64bit/64studio64bit_home.su# tar cfvpj
~/home.tar.bz2 lost+found spinymouse
Change to the directory that has to be restored
Restore the directory in a way that preserve permissions
64studio:/home/spinymouse/home# tar xfvj ~/home.tar.bz2
Clean 32-bit 64 Studio
64studio:/home/spinymouse/home# cd ..
64studio:/home/spinymouse# umount home
64studio:/home/spinymouse# rm -r ~/home.tar.bz2 home
Now everything should be fine, but when I tried to start the KDE session
by GDM I got this error:
"The following installation problem was detected while trying to start KDE:
No write access to $HOME directory (/home/spinymouse).
KDE is unable to start."
It's /home so in failsafe mode I run
chmod -R 755 /home
and now it's fine again, but the permissions are all 755, maybe not as
> | I guess I've to change hda to sda or sd[...] for the fstab, right? The
> | IDE HD now is hda and an IDE DVD drive hdb.
> Most modern distributions use UUIDs. Once the SATA drive is installed,
> boot your computer. Do an ls -la on the /dev/disk/by-uid directory.
> | What is the easiest way to get GRUB into the MBR of the SATA?
> grub-install /dev/sda (or whatever your SATA disk is. You will need to
> modify the /boot/grub/menu.lst file.
> The root and kernel lines are the ones of importance.
I'm familiar with the menu.lst, but not with installation of GRUB. I
asked, because I want to copy my old Studio from the IDE to the SATA and
I don't know which informations are in the stages and what Synaptic will do.
Okay, I run grub-install --help, I didn't know that command.
> | Is it possible after booting by another medium, an DVD or by menu.lst
> | from the old IDE HD, to run the 64 Studio on the SATA and to "re"install
> | GRUB by Synaptic? What I mean, will an installation do needed settings
> | automatically? After doing this I would change the boot sequence in the
> | BIOS and set the SATA to be the first boot medium.
> I don't think that a reinstall of GRUB would help if things get messed
> up. You can boot from another medium (CD/DVD, a floppy, or a USB key
> for instance). You can then run grub-install (though you will probably
> need to use the --root-directory option, check the man pages for more
This "grub-install /dev/sda" is what I was asking for. So I can write to
the IDE's menu.lst a option, to boot the copy of my Studio, that's on
the SATA and there I can run grub-install /dev/sda and after changing
the boot sequence I can boot from the SATA instead of the IDE.
> | I never had troubles when installing a new HD, but with my new mobo and
> | my old IDE I got an CHS/LBA inconsistency. I'll study the manual of the
> | new HD very well, but I think usually every thing should be fine when
> | the BIOS is set to LBA, instead of CHS. Last time the BIOS didn't detect
> | the correct CHS. I won't use RAID for mirroring, so CHS shouldn't be
> | needed, at all I won't use RAID, striping without mirroring seems to be
> | an insane thing to do.
> You may also need to change the boot order in the bios.
Yes, I know this.
> Even if
> everything is configured right and you have formatted the original
> partition, grub will still exist on the original drive and you will not
> be able to boot. If you want to still use the original drive, do the
> dd if=dev/zero of=/dev/hda count=1 bs=512
, bs should be 446 to keep the partition table, as far as I
know. But this information is what I also was asking or thinking about.
Is there the need to remove GRUB from the IDE, if I will use it again,
even if the BIOS looks first to the SATA, from where GRUB should be used.
> What you want to do is certainly possible, I have done exactly this
> myself. The caveat is that there are a few things that can and likely
> will trip you up. If the data on your drive is at all important, make
> sure you have your data backed up.
> The easiest solution is to do a clean install of 64Studio on the new
> drive and to move the original drive into a USB enclosure to copy over
> the files you want to keep. Then format the original drive and do with
> it as you please.
> Hope this helps.
Yes, it does
I won't do a clean install of 64 Studio because than I had to do to much
installing again. I need KDE 3.5.9, REAPER etc. and all that is
installed. There are some things broken for my 64 Studio, but this seems
to be stuff like gcalctool, the shutdown screen etc., music applications
seems to be fine. Before I'll format my old IDE or install a new 64
Studio, I will make music. I waited a long time for that moment.
Rewriting fstab and menu.lst is not a problem and if grub-install
/dev/sda works, I don't think there will be anything that can make troubles.
I will do backups on DVD and direct from the IDE to the SATA.
64studio-users mailing list