Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I was too lazy to type it all, was thinking all you needed was the hard drive ones. (sutff) wasnt needed i hope, if you need it ill copy it all....
ill give you play by play of what i did exactly:
added it in bios. booted.
diskdrake or somethign came up, skipped it. at mandrake desktop, did the gui harddrake. created the swap partition on hdb, bout 600 mb worth.
created the partition for /var and made it 7gig, it asked if i wanted to copy it all, i said yes.
then i did the same for /home and made it 30 gig or so. did it journalised ext3 or something i think. prob should have done fat32.
rebooted and saw i had screwed it up.
currently it only loads to command prompt, hopefully in a second ill try to figure out a text editor like vi or something to change the fstab file. think i know what i need to add, not exactly sure still, butim thinking adding the /dev/hdb1 may help.
I think it is in one of these:
/dev/hdb2 77 and 4792 size=37gB id=5 extended
/dev/hdb5 77 and 968 size=7 gB id=83 linux
No need for a swap partition on the second drive.
No need for a fat32 filesystem (its old and not as good as ext2 or 3)
Try this:
su
[password]
mount -t ext3 /dev/hdb5 /mnt/var
then browse /mnt/var as root. !!be careful when working as root!! My favourite app for browsing and editing files in a console is the midnight comander (type "mc" and see if you have it), if you don't have this then use the commands cd, ls & vi to work with files, or try emacs although I prefer xemacs!
The appropriate line to add to your fstab would be:
But before you add these lines make sure that hdb5 (when mounted on /mnt/var) is the contents of you old /var folder - ie. /mnt/var/[lots of files] and not /mnt/var/var/[lots of files]
Also move your entire /home directory to hdb6 - to do this:
su
[password]
umount /dev/hdb5 #just to be sure
mount -t ext3 /dev/hdb6 /mnt/var #we are not worried about where it is actually mounted at the moment
cp -Rp /home/* /mnt/var
rm -Rf /home/* #when you mount hdb6 on /home, it should be empty
make SURE your syntax is right or you'll loose data.
Note 1: all of this assumes hdb5 and hdb6 are fstype ext3!! if it is not adjust the lines of the fstab accordingly
Note 2: I would think, after all this that it would be of little use having 7gb for /var as it only contains logs and stuff. Possibly /tmp would be the larger and more variable directory. Suck it and see as they say!
Originally posted by Tuttle
Also move your entire /home directory to hdb6 - to do this:
su
[password]
umount /dev/hdb5 #just to be sure
mount -t ext3 /dev/hdb6 /mnt/var #we are not worried about where it is actually mounted at the moment
cp -Rp /home/* /mnt/var
rm -Rf /home/* #when you mount hdb6 on /home, it should be empty
Almost forgot, don't "su" to do this - log out then ctrl+alt+f6 and log in as root.
I say this because you are moving the home folder of a user in the /home directory which is in use if you get my meaning.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.