Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New HD Questions:
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
southerngentooman
n00b
n00b


Joined: 26 Jan 2005
Posts: 35

PostPosted: Sun Feb 27, 2005 3:25 pm    Post subject: New HD Questions: Reply with quote

Hi yall,

I'll be shopping for a new HD next week and I'm in the process of preparing my system for a smooth transfer. I'm considering a WD that includes a bootable cd setup utility. If my understanding is correct, this utility should duplicate my existing setup onto the new drive, but I'm not sure if it can read linux partitions. So, my first question is, have you tried this with ext2 and reiser partitions? If so, how did it go?

Also, I have a cdr and was thinking it might be a good idea to build a setup disc of sorts. So, how about some suggestions from you who have had a successful experience with making and restoring a system with a set of cdrs.

A complication is that I intend to add several more partitions to the new drive, and currently I'm setup with 4 primary partitions.

3rd, I have my /home directory and a vfat data partition on another harddrive. So, two things here. One, after I get my system running again with the new hard drive, I'd like to move the hdb1 vfat partition to the new drive and then increase the size of hdb2, which is my /home partition so that it occupies the whole disk. So, If I could get some recommendations on doing this I'd appreciate it. I don't mind making some temporary changes, like I could unplug my dvd player and setup fstab for 3 ides. Two, I have tried to recall all the config files that I've had to edit at one point or another and as I think of them, I've been adding them to a little backup script to save them in my home directory. I figure I've probably overlooked several of these, so here is the list that I have so far. If you have suggestions for additions I'd appreciate it. I'm hoping I don't need this, but I figure it can't hurt. ;-)

Code:
#!/bin/bash
cp /etc/X11/xorg.conf /home/danny/config/xorg.conf-backup
cp /home/danny/.xinitrc /home/danny/config/xinitrc-dotbackup
cp -r /home/danny/.fluxbox /home/danny/config/fluxbox-dotbackup
cp -r /home/danny/.kde /home/danny/config/kde-dotbackup
cp -r /home/danny/.kde3.4 /home/danny/config/kde3.4-dotbackup
cp -r /home/danny/.mozilla /home/danny/config/mozilla-dotbackup
cp -r /home/danny/.qt /home/danny/config/qt-dotbackup
cp -r /home/danny/.thunderbird /home/danny/config/thunderbird-dotbackup
cp -r /home/danny/.xcdroast /home/danny/config/xcdroast-dotbackup
cp -r /home/danny/.xchat2 /home/danny/config/xchat2-dotbackup
cp -r /home/danny/.xmms /home/danny/config/xmms-dotbackup
cp -r /home/danny/.xopenoffice /home/danny/config/xopenoffice-dotbackup
cp /home/danny/.kderc /home/danny/config/kderc-dotbackup
cp /home/danny/.nvidia-settings-rc /home/danny/config/nvidia-settings-rc-dotbackup
cp /home/danny/.torsmorc /home/danny/config/torsmorc-dotbackup
cp /etc/rc.conf /home/danny/config/rc.conf-backup
cp /etc/conf.d/rc /home/danny/config/rc-backup
cp /etc/make.conf /home/danny/config/make.conf-backup
cp /etc/fstab /home/danny/config/fstab-backup
cp /etc/conf.d/hdparm /home/danny/config/hdparm-backup
cp /etc/hostname /home/danny/config/hostname-backup
cp /etc/dnsdomainname /home/danny/config/dnsdomainname-backup
cp /etc/conf.d/net /home/danny/config/net-backup
cp /etc/hosts /home/danny/config/hosts-backup
cp /etc/cups/cupsd.conf /home/danny/config/cupsd.conf-backup
cp /etc/group /home/danny/config/group-backup
cp /etc/modules.autoload.d/kernel-2.6 /home/danny/config/kernel-2.6-backup
cp /etc/udev/rules.d/10-udev.rules /home/danny/config/10-udev.rules-backup
cp /etc/udev/rules.d/10-local.rules /home/danny/config/10-local.rules-backup
cp /etc/portage/package.keywords /home/danny/config/package-keywords-backup
cp /etc/portage/package.unmask /home/danny/config/package-unmask-backup
cp /usr/kde/3.4/share/config/kdm/kdmrc /home/danny/config/kdmrc-backup
mount /boot
cp /boot/mykernel-2.6.10 /home/danny/config/mykernel-2.6.10-backup
cp /boot/mySystem.map-2.6.10 /home/danny/config/mySystem.map-2.6.10-backup
cp /boot/config-2.6.10-gentoo-r6 /home/danny/config/config-2.6.10-gentoo-r6-backup
cp /boot/grub/grub.conf /home/danny/config/grub.conf-backup
umount /boot


And here's my fstab:

Code:
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $

# <fs>                               <mountpoint>    <type>                        <opts>                                 <dump/pass>
/dev/hda1                          /mnt/c                  ntfs          umask=000,noauto,user,noexec              0 0
/dev/hda2                          /boot                    ext2                   noauto, noatime                                  1 2
/dev/hda3                          none                    swap                            sw                                              0 0
/dev/hda4                          /                            reiserfs               noatime,notail                                   0 1
/dev/hdb1                          /mnt/g                  vfat               umask=000,noatime,user                     0 0
/dev/hdb2                          /home                 reiserfs              noatime,notail                                    0 1
/dev/cdroms/cdrom0      /mnt/cdrom        auto                noauto,ro,user,gid=80                          0 0
/dev/hdd                            /mnt/cdrom2      auto                noauto,rw,user,gid=80                         0 0
/dev/fd0                             /mnt/floppy          auto                 noauto,rw,sync,user                            0 0   
/dev/digcam/cam1          /mnt/camera       vfat         umask=000,noauto,noatime,users           0 0

# Required by the system:  Danny, your an idiot if you change these:
none                                  /proc                    proc                    defaults                                                0 0
none                                  /dev/shm            tmpfs                  defaults                                                0 0


Thanks in advance,


Danny
Back to top
View user's profile Send private message
manny15
Guru
Guru


Joined: 01 Dec 2002
Posts: 473
Location: USA

PostPosted: Sun Feb 27, 2005 4:06 pm    Post subject: Reply with quote

Well, I don't really understand your partitioning scheme (a table of current and what you want would help) but it seems you've got linux and windows partitions on one HD and you want to copy them to another. First of all, unless the utility says it supports ext2/reiser it probably doesn't So I would try NOT using the util at all. You can use GNU parted to copy/resize your partitions. It supports fat16/32 and ext2/3 reiserfs. BUT it cannot so much with NTFS partitions.

So, if you are using NTFS, maybe you can use that util to copy your windows partitions, just leave room for linux. Then you can use tar to migrate your linux partitions. If you don't plan on resizing your windows partition, you may be able to copy it using dd.
Back to top
View user's profile Send private message
southerngentooman
n00b
n00b


Joined: 26 Jan 2005
Posts: 35

PostPosted: Sun Feb 27, 2005 6:25 pm    Post subject: Reply with quote

Quote:
Well, I don't really understand your partitioning scheme (a table of current and what you want would help)


Ok, The fstab that I previously listed is the current setup. /mnt/c is a winxp boot partition, /mnt/g is a vfat data partition that I use for both windows and gentoo file sharing. I picked those names because they correspond to the drive letters that windows assigns to them. ;-) /dev/hdd is my cd burner. /dev/digcam/cam1 is my digital camera and /dev/hdb2 is my /home partition/directory.

As far as the new setup:

    1. I'll be keeping a WinXP partition for games and occassionally use with old data files.

    2. I'd like to avoid reinstalling 2.6.10, but I need a new partition setup. Gentoo is working well for me as I have it now with 4 partitions: /boot /swap and / ; and then /home on another drive. I'll add 2 more data partitions as indicated below.

    3. I'll be adding another GNU distribution, maybe gentoo-cvs or debian, decide as I go and will probably change it often. want to avoid messing up gentoo so I'll set this up as another boot option in grub.

    4. Want to keep my vfat data on a separate partition as it is now. Lots of old files that I will convert to a GNU usable format when needed, but mainly just archived data. These are mostly just graphics libraries. I like my gentoo home directory on a seperate disk drive, but want more space, so I'd like to get this old data off of there and move to the new hd. Then reclaim the space for my /home directory.

    5. I'll be setting aside a large tmp data partition just for video editing, sound, graphics that will be accessable by both GNUs. Mount as /tmp/video or something similar. I want this on its own partition so I can just reformat to start a new project.

    6. Then I'll be setting up a small linux scratch pad partition that will be mounted by either GNU so I can share data between them, text files, clips, web documents. Maybe 5 gig or so.


As far as the drive utility, Western digital doesn't even mention other OSs besides mac and windows, so I doubt it will work. But, I have used this before to duplicate windows drives and so if it will do that much that is a plus. I hate installing windows. Have to disable all my hardware, add once item at a time, and work out i/o conflicts, then it takes 2 days chasing down installation disk, serial numbers, registration hassles, updating all the service packs, and then another 3 or 4 days hacking the registry so it will work worth a darn. And the last time I went through this, it took me over an hour on the phone with MS to reactive. arrggg. Tis a real pain, particularly since most of those programs I only need once in a blue moon.

Thanks for your thoughts.

danny
Back to top
View user's profile Send private message
manny15
Guru
Guru


Joined: 01 Dec 2002
Posts: 473
Location: USA

PostPosted: Sun Feb 27, 2005 6:58 pm    Post subject: No need to reinstall Linux Reply with quote

Well, how about a table like this:
Code:

/dev/hda6   /                             reiserfs
/dev/hda2   /opt                         ext3
/dev/hdc2   /mnt/windows              ntfs
/dev/hda1   /boot                        ext3
/dev/hda5   none                         swap

That's what I meant. The above is my setup. Yes WinXP is on a seperate drive. Post a table like the one above of what you have, and one for what you want. It makes it much easier to understand your situation.

Like I mentioned before, when it comes to migration, you can use some util to migrate WinXP, and tar, or cp to migrate Linux. Linux is very easy to migrate to a new HD, even to new hardware.

Suppose I want to copy my / filesystem from /dev/hda6 to a new HD /dev/hdb2, which will later become /dev/hda2 because I will be removing the old HD.
1. Create a filesystem on the device (assuming the HD is already partitioned): mkfs.reiserfs /dev/hdb2
2. Mount new filesystem: mkdir /mnt/newhd; mount /dev/hdb2 /mnt/newhd
3. Copy: cp -pR / /mnt/newhd/

I sure hope I typed that right!
Note: I recommend you do the Linux migration while running from a LiveCD instead, because that way, you won't end up copying the device nodes in /dev (assuming you are using udev) and the process directories in /proc, and such.
Back to top
View user's profile Send private message
southerngentooman
n00b
n00b


Joined: 26 Jan 2005
Posts: 35

PostPosted: Sun Feb 27, 2005 8:31 pm    Post subject: Reply with quote

OK,

Well, we're talking about 3 files really. Again, what I have now is already posted.

I suppose this would work for gentoo on the new drive:

Code:
# <fs>                               <mountpoint>    <type>                        <opts>                                 <dump/pass>
/dev/hda1                          /mnt/c                  ntfs          umask=000,noauto,user,noexec              0 0
/dev/hda2                          /boot                    ext2                   noauto, noatime                                  1 2
/dev/hda3                          none                    swap                            sw                                              0 0
/dev/hda5                          /                            reiserfs               noatime,notail                                   0 1
/dev/hda8                          /tmp/video          reiserfs                noatime,notail                                   0 1
/dev/hda9                          /data                    reiserfs                noatime,notail                                  0 1
/dev/hda10                        /mnt/g                  vfat               umask=000,noatime,user                     0 0
/dev/hdb1                          /home                 reiserfs              noatime,notail                                    0 1
/dev/cdroms/cdrom0      /mnt/cdrom        auto                noauto,ro,user,gid=80                          0 0
/dev/hdd                            /mnt/cdrom2      auto                noauto,rw,user,gid=80                         0 0
/dev/fd0                             /mnt/floppy          auto                 noauto,rw,sync,user                            0 0   
/dev/digcam/cam1          /mnt/camera       vfat         umask=000,noauto,noatime,users           0 0


And then for the new GNU, whatever distribution that ends up being:

Code:
# <fs>                               <mountpoint>    <type>                        <opts>                                 <dump/pass>
/dev/hda6                          /boot                    ext2                   noauto, noatime                                  1 2
/dev/hda3                          none                    swap                            sw                                              0 0
/dev/hda7                          /                            reiserfs               noatime,notail                                   0 1
/dev/hda8                          /tmp/video           reiserfs               noatime,notail                                  0 1
/dev/hda9                          /data                     reiserfs               noatime,notail                                  0 1
/dev/cdroms/cdrom0      /mnt/cdrom        auto                noauto,ro,user,gid=80                          0 0
/dev/hdd                            /mnt/cdrom2      auto                noauto,rw,user,gid=80                         0 0 
/dev/digcam/cam1          /mnt/camera       vfat         umask=000,noauto,noatime,users           0 0


One of the concerns I have about this is that it seems to me the journalling might get fouled up on hda8 and hda9 when rebooting from one os to the other, so would it be better to use ext2?

What do you think?



danny
Back to top
View user's profile Send private message
manny15
Guru
Guru


Joined: 01 Dec 2002
Posts: 473
Location: USA

PostPosted: Mon Feb 28, 2005 9:56 pm    Post subject: Reply with quote

I don't thing sharing the video and data reiserfs partitions is going to be a problem. As long as both OSes use the same version of reiserfs it should be ok. You're only sharing data anyway. If you were sharing a filesystem that was important to the OS, like /, /usr, /boot, then I'd be concerned. Although, I bet you can easily share /home. And if you are clever, I bet /boot can be shared also. Which reminds me, I recommend that you make both (or one if you want) /boot a primary partition (1-4), hopefully /dev/hda1. Because although overall we don't have the limitation where /boot must be before the Xth cylinder (can't remember the number, but I think it's 2GB), it's better to play it safe.

Oh, something to consider. An ext3 filesystem can be read as an ext2 filesystem if the OS doesn't support ext2. This not only applies to Linux, but to partitioning software. I migrated an ext3 partition once using... I guess something like partition magic... this was long ago. And it worked, but it copied as an ext2. All I had to do was put the journal back in. If I had reiserfs, that wouldn't have been possible. I know the program you mentioned doesn't support Linux filesystem, but it's just something to keep in mind.
Back to top
View user's profile Send private message
southerngentooman
n00b
n00b


Joined: 26 Jan 2005
Posts: 35

PostPosted: Tue Mar 01, 2005 1:21 am    Post subject: Reply with quote

Well what the heck, I could always change it if it don't work ;-)
I was thinking of sharing /home anyway and just using a different username so my config files don't get confused.
And this simplfies fdisk setup a bit. So, going with /home and /root shared I get this setup:

gentoo:

Code:
# <fs>                               <mountpoint>    <type>                        <opts>                                 <dump/pass>
/dev/hda1                          /mnt/c                  ntfs          umask=000,noauto,user,noexec              0 0
/dev/hda2                          /boot                    ext2                   noauto, noatime                                  1 2
/dev/hda3                          none                    swap                            sw                                              0 0
/dev/hda5                          /                            reiserfs               noatime,notail                                   0 1
/dev/hda7                          /tmp/video          reiserfs                noatime,notail                                   0 1
/dev/hda8                          /data                    reiserfs                noatime,notail                                  0 1
/dev/hda9                          /mnt/g                  vfat               umask=000,noatime,user                     0 0
/dev/hdb1                          /home                 reiserfs              noatime,notail                                    0 1
/dev/cdroms/cdrom0      /mnt/cdrom        auto                noauto,ro,user,gid=80                          0 0
/dev/hdd                            /mnt/cdrom2      auto                noauto,rw,user,gid=80                         0 0
/dev/fd0                             /mnt/floppy          auto                 noauto,rw,sync,user                            0 0   
/dev/digcam/cam1          /mnt/camera       vfat         umask=000,noauto,noatime,users           0 0


new GNU:

Code:

# <fs>                               <mountpoint>    <type>                        <opts>                                 <dump/pass>
/dev/hda2                          /boot                    ext2                   noauto, noatime                                  1 2
/dev/hda3                          none                    swap                            sw                                              0 0
/dev/hda6                          /                            reiserfs               noatime,notail                                   0 1
/dev/hda7                          /tmp/video          reiserfs               noatime,notail                                   0 1
/dev/hda8                          /data                    reiserfs               noatime,notail                                   0 1
/dev/hdb1                          /home                 reiserfs               noatime,notail                                   0 1
/dev/cdroms/cdrom0      /mnt/cdrom        auto                noauto,ro,user,gid=80                          0 0
/dev/hdd                            /mnt/cdrom2      auto                noauto,rw,user,gid=80                         0 0
/dev/digcam/cam1          /mnt/camera       vfat         umask=000,noauto,noatime,users           0 0


Ya, I like the looks of that.

Concerning GNU Parted, I understand that it won't move the begining of a partition, but I think my current /home would fit in the space used by vfat, so I could move the vfat hdb1 to the new drive, then reformat hdb1 for reiserfs, copy /home there then delete hdb2 and resize hdb1 for the whole disk. Kinda of a hassle, but should work.

thanks again,

danny
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum