[SuSE Linux] Q: Adding a 2nd HD
I'm not well versed with the Linux file hierarchy and could use some advice. I have a new 4G HD that I want to add to my P-133, which presently has a single 2G HD. Is it possible with the new drive to add 'space' to the existing partitions (ie: /usr, /home, etc.)? Or do I start from scratch and reconfigure based upon the combined size? If there's a HOW TO or man page on this I'm not bright enough to have found it yet. TIA andy -- Sandy Seeds 100% Microsoft Free S.u.S.E. Linux! - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
On 15 Aug, Sandy wrote:
I'm not well versed with the Linux file hierarchy and could use some advice.
I have a new 4G HD that I want to add to my P-133, which presently has a single 2G HD. Is it possible with the new drive to add 'space' to the existing partitions (ie: /usr, /home, etc.)? Or do I start from scratch and reconfigure based upon the combined size?
Here is an example of moving your /home partition to a new (IDE) drive. I am writing from memory, so take it with a grain of salt :-) 1. Install the second disk as a slave drive on the primary IDE controller. Reboot Linux, check to make sure the second drive is recognized when the kernel boots. 2. Run fdisk on the new drive, and create how ever many partitions you want: /sbin/fdisk /dev/hdb 3. Make filesystems on the new drive. Assuming you made one partition, /sbin/mke2fs /dev/hdb1 Read the man page for mk2fs first. 4. Drive is now ready for use. Mount it on the filesystem: mount -t ext2 /dev/hdb1 /mnt 5. Copy all files under /home onto the new drive. There are several ways to do this, tar, cp -R, etc. Here is a crude (untested!) example: cd /home tar -cvf /mnt/newhome.tar * <== can't remember if this gets the hidden files... cd /mnt tar -xvf newhome.tar rm newhome.tar There are better ways to do this - this is just off the top of my head :-) 6. Edit /etc/fstab, and mount the new partition at boot. You will add a line something like /dev/hdb1 /home ext2 defaults 1 1 7. Move your old /home out of the way: cd / mv /home /home-old 8. umount the new partition: umount /mnt 9. Reboot, check that the new /home looks Ok, the rm -rf /home-old -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Robert S. Mallozzi 256-544-0887 Mail Code ES 84 Work: <A HREF="http://crazyhorse.msfc.nasa.gov/"><A HREF="http://crazyhorse.msfc.nasa.gov/</A">http://crazyhorse.msfc.nasa.gov/</A</A>> Marshall Space Flight Center Play: <A HREF="http://cspar.uah.edu/~mallozzir/"><A HREF="http://cspar.uah.edu/~mallozzir/</A">http://cspar.uah.edu/~mallozzir/</A</A>> Huntsville, AL 35812 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
"Robert S. Mallozzi" <mallors@crazyhorse.msfc.nasa.gov> writes:
5. Copy all files under /home onto the new drive. There are several ways to do this, tar, cp -R, etc. Here is a crude (untested!) example:
cd /home tar -cvf /mnt/newhome.tar * <== can't remember if this gets the hidden files... cd /mnt tar -xvf newhome.tar rm newhome.tar
There are better ways to do this - this is just off the top of my head :-)
I would move /home like this. I've used this technique several times. AFAIK, I haven't lost anything yet. The dash writes to/reads from std I/O. And of course you could add a v to see the files being moved. cd /home tar -cf - . | (cd /mnt; tar -xf - ) HTH. -- Bud Rogers <budr@sirinet.net> formerly <budr@tanet.net> <A HREF="http://www.sirinet.net/~budr/zamm.html"><A HREF="http://www.sirinet.net/~budr/zamm.html</A">http://www.sirinet.net/~budr/zamm.html</A</A>> - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
On Sat, 15 Aug 1998, Robert S. Mallozzi wrote:
7. Move your old /home out of the way:
cd / mv /home /home-old
You might want to add the following step: 7.1 mkdir /home _____________________________________________________________________________ Terry Eck <eck@ti.com> //// Hukt on Foniks Rilly Wurkt Fer Mee! //// - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
Hi,
I have a new 4G HD that I want to add to my P-133, which presently has a single 2G HD. Is it possible with the new drive to add 'space' to the existing partitions (ie: /usr, /home, etc.)? Or do I start from scratch and reconfigure based upon the combined size?
This is not AIX (I wish linux supported logical volumes). I am afraid you are going to have to repartition. Or try to use symbolic links to point from your existing partitions to newly created on the second disk. This is what I was doing before I decided to repartition and reinstall. alexm - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
alexm@hr60.tx.symbio.net wrote:
(Sandy wrote:) I have a new 4G HD that I want to add to my P-133, which presently has a single 2G HD. Is it possible with the new drive to add 'space' to the existing partitions (ie: /usr, /home, etc.)? Or do I start from scratch and reconfigure based upon the combined size?
This is not AIX (I wish linux supported logical volumes). I am afraid you are going to have to repartition.
I appreciate the several responses. Thanks folks. Looks like I'll repartition the total 6G when 5.3 arrives. Any suggestions as to partition sizes and mounting filesystems. I'll only have SuSE installed so no need to consider other OS's. TIA Sandy -- Sandy Seeds 100% Microsoft Free S.u.S.E. Linux! - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
Sandy wrote:
Looks like I'll repartition the total 6G when 5.3 arrives. Any suggestions as to partition sizes and mounting filesystems. I'll only have SuSE installed so no need to consider other OS's.
Here is my current /etc/fstab: /dev/hda6 / ext2 defaults 1 1 100 megs /dev/hda5 swap swap defaults 0 0 64 megs /dev/hda7 /opt ext2 defaults 1 2 300 megs /dev/hda8 /usr ext2 defaults 1 2 1850 megs /dev/hdb1 /dos vfat defaults 0 0 2000 megs /dev/hda9 /home ext2 defaults 1 2 200 megs /dev/fd0 /floppy vfat rw,noauto,user 0 0 -- /dev/hdc /cdrom iso9660 ro,noauto,user 0 0 -- /dev/hdd1 /zip vfat rw,noauto,user 0 0 -- none /proc proc defaults 0 0 -- For any box that has 1-3 users, I would say that 100 megs for / is sufficient. I have always used a 300 meg /opt partition, but I think when 5.3 shows up I will do away with it and just symlink /opt to /usr/local. /home really only needs to be as big as the largest download you might make as a regular user. /home really isn't the best place to keep binaries or to archive all your mp3s or whatever, so it doesn't need to be that large. I put each of my removable media devices in fstab and create directories for them in /. I find 'mount /dev/fd0' faster than 'mount -t vfat /dev/fd0 /mnt' so I have mount points for each. This is strictly a personal preference. I also use vfat for the fs of removable media because this is readable across platforms, but this won't affect you unless you swap data between os'es. I have a vfat partition /dos mounted at boot. This contains quake, quake2, all my mp3s, midi, images, emulators and roms, etc. These files are used in win95 and linux, and it just makes more sense to not duplicate the files as this partition is usually 1.5 gigs of data. /usr is the partition where almost everything you do will be located, so make /usr as big as possible and get in the habit of keeping files in /usr. It doesn't make much sense to have a big /home on a family pc, use /usr where possible. This is all really subjective, and I'm sure that some will find fault with my recommendations. Some people like one big / partition. That's a bad idea. If / goes, you are screwed. If /home goes on my box, I can recover. -- .###. /#######\## -==============================================- ;##### ;# Mike's WindowMaker ;##### ;# <A HREF="http://tasteslikechicken.ml.org/windowmaker.html"><A HREF="http://tasteslikechicken.ml.org/windowmaker.html</A">http://tasteslikechicken.ml.org/windowmaker.html</A</A>> \# /## -==============================================- ###'---'#### - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
Hi, everyone! I do not know why this happens, but just want to let you know On Tue, 25 Aug 1998, Michael Lankton wrote:
I have always used a 300 meg /opt partition, but I think when 5.3 shows up I will do away with it and just symlink /opt to /usr/local.
ymlink /opt --> /usr/local does not always work One of my friends tried to install word perfect 7 rpm supplied with RH5. His /opt was a directory in the root fs. Word Perfect would always attempt to install itself into /opt. However, there was not enough space in / We removed /opt directory and created symlink /opt to /home/username. Attempted to run rpm -i wp7.rpm This created a directory /opt leaving the /opt@ symlink untouched. The only way we could get around this was by umounting /home and mounting it under /opt for the time of installation. I did not test it myself (I was helping him over the phone), but I think this can be tested with a netscape rpm. Maybe I am not aware of something with symlinks, but this is what happened. alexm - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
Hi! Trying to kill the keyboard, alexm@hr60.tx.symbio.net produced:
This created a directory /opt leaving the /opt@ symlink untouched.
Obviously some typo ... because you cannot create a dir if there is a file or symlink (or other dir) with the same name. -Wolfgang -- PGP 2 welcome: Mail me, subject "send PGP-key". If you've nothing at all to hide, you must be boring. Unsolicited Bulk E-Mails: *You* pay for ads you never wanted. Is our economy _so_ weak we have to tolerate SPAMMERS? I guess not. - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
Thanks to Michael Lankton for sharing his partition layout. I had a similar installation with Slackware way back in '94, wherein I what really wanted was a separate partition to install the / (root) filesystem and the rest of the stuff could go in another partition. Since I am the only user, I am not concerned about disk quotas, filling up /usr/tmp /var/tmp etc. I could not figure out how to do a Linux install in 2 partitions (one for / and for the rest) and would appreciate if someone could give me some pointers. Thx, Arun Khan - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
Arun K. Khan wrote:
Thanks to Michael Lankton for sharing his partition layout. I had a similar installation with Slackware way back in '94, wherein I what really wanted was a separate partition to install the / (root) filesystem and the rest of the stuff could go in another partition. Since I am the only user, I am not concerned about disk quotas, filling up /usr/tmp /var/tmp etc.
I could not figure out how to do a Linux install in 2 partitions (one for / and for the rest) and would appreciate if someone could give me some pointers.
Arun, Naturally there are multiple ways to accomplish this. From the boot disk one could start the installation process and choose "Adjustment of installation" once YAST has started and select the "Configure hard drive partitons" option. After doing your worst to dazzle and confuse the disk controller move on to the "Set target partitions/filesystems" options and declare your intentions. Once yoou return to YAST start choosing packages to install and save your preferences to a diskette before the mandatory reboot that follows repartitioning the drive. Method 2: Start as above, but following linuxrc running jump to an alternative console by hitting 'alt -F2'. Run fdisk and partition the drive. Remember to set a swap partition type for the one being used for swapping. Write out the harddrive config and reboot. Once linuxrc runs again and YAST is up go to the "Adjustment of installation" menu again and choose "Set target partitions/filesystems" and proceed from there. By the way, even on a single user machine it makes some sense to separate /tmp from /, especially if you intend to use the net extensively. Hope this helps, Stu - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
try a / and a /usr partition you may be able to symlink /home to /usr/home if you don't want /home in /, that's how FreeBSD does it anyway, haven't tried that in linux Arun K. Khan wrote:
Thanks to Michael Lankton for sharing his partition layout. I had a similar installation with Slackware way back in '94, wherein I what really wanted was a separate partition to install the / (root) filesystem and the rest of the stuff could go in another partition. Since I am the only user, I am not concerned about disk quotas, filling up /usr/tmp /var/tmp etc.
I could not figure out how to do a Linux install in 2 partitions (one for / and for the rest) and would appreciate if someone could give me some pointers.
Thx, Arun Khan
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
-- .###. /#######\## -==============================================- ;##### ;# Mike's WindowMaker ;##### ;# <A HREF="http://tasteslikechicken.ml.org/windowmaker.html"><A HREF="http://tasteslikechicken.ml.org/windowmaker.html</A">http://tasteslikechicken.ml.org/windowmaker.html</A</A>> \# /## -==============================================- ###'---'#### - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
FYI: Installing Debian 2.0(and 1.3.0 prior to it), SuSE 5.2 and RH 5.1 I chose to create three partitions: /, /usr, and /home. SuSE, also, got a /opt as that was suggested for those planning to use KDE and Netscape. It was fairly easy, particularly in SuSE and Debian, being carried out during the install. During initialization of Linux partitions I just created additional partitions rather than immediately continuing to the next step in the insatllation. The "default" partition, e.g. /usr, would come up giving me the option to choose, which one I wanted to install. I might add that I had already created the actual partitions with preplanned sizes. I might add I had earlier attempted to install a swap partition on an IDE HDD while using an UDMA for my various other partitions. It did not work very well(read very poorly) and resulted in the only time to date I've seen my swap partition fill up and begin to page out. I'm guessing the IDE is just too slow, but perhaps there is some other reason. Best regards, Bob Russell kc8chq@juno.com Penguin inside! Now THAT'S Cool! On Wed, 26 Aug 1998 12:20:42 -0500 Michael Lankton <satan3@home.com> writes:
try a / and a /usr partition you may be able to symlink /home to /usr/home if you don't want /home in /, that's how FreeBSD does it anyway, haven't tried that in linux
Arun K. Khan wrote:
Thanks to Michael Lankton for sharing his partition layout. I had a similar installation with Slackware way back in '94, wherein I what
wanted was a separate partition to install the / (root) filesystem and the rest of the stuff could go in another partition. Since I am the only user, I am not concerned about disk quotas, filling up /usr/tmp /var/tmp etc.
I could not figure out how to do a Linux install in 2 partitions (one for / and for the rest) and would appreciate if someone could give me some
really pointers.
Thx, Arun Khan
- To get out of this list, please send email to majordomo@suse.com
with
this text in its body: unsubscribe suse-linux-e
-- .###. /#######\## -==============================================- ;##### ;# Mike's WindowMaker ;##### ;# <A HREF="http://tasteslikechicken.ml.org/windowmaker.html"><A HREF="http://tasteslikechicken.ml.org/windowmaker.html</A">http://tasteslikechicken.ml.org/windowmaker.html</A</A>> \# /## -==============================================- ###'---'#### - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
_____________________________________________________________________ You don't need to buy Internet access to use free Internet e-mail. Get completely free e-mail from Juno at <A HREF="http://www.juno.com"><A HREF="http://www.juno.com</A">http://www.juno.com</A</A>> Or call Juno at (800) 654-JUNO [654-5866] - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
Sandy wrote:
I'm not well versed with the Linux file hierarchy and could use some advice.
I have a new 4G HD that I want to add to my P-133, which presently has a single 2G HD. Is it possible with the new drive to add 'space' to the existing partitions (ie: /usr, /home, etc.)? Or do I start from scratch and reconfigure based upon the combined size?
If there's a HOW TO or man page on this I'm not bright enough to have found it yet.
Sandy, you can make "user2" or what ever you'd like on the new drive....NOT a problem for Linux and SuSE. Fred -- - Windows 98 supports real multitasking - it can boot and crash simultaneously - Fred A. Miller, Systems Administrator Cornell Univ. Press Services fmiller@lightlink.com fm@cupserv.org - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
participants (11)
-
alexm@hr60.tx.symbio.net
-
arunkhan@xnet.com
-
budr@sirinet.net
-
eck@ti.com
-
fmiller@lightlink.com
-
kc8chq@juno.com
-
mallors@crazyhorse.msfc.nasa.gov
-
sandyseeds@iname.com
-
satan3@home.com
-
stugreen@realtime.net
-
weissel@jupiter.ph-cip.uni-koeln.de