Re: [expert] Adding a disk, insmod placement, moving /var
So sprach Ran Hooper am Sat, Nov 18, 2000 at 04:04:49PM -0800: > the aic7xxx it loads fine. What am I doing wrong here? run depmod -a Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.dp.ath.cx GnuPG ID: 59F6A6F5 FP: DC8AFA56C492EE6058D5 BAA62EEE3AD559F6A6F5 ICQ:7328191 Uptime: 1 day 8 hours 7 minutes Keep in touch with http://mandrakeforum.com: Subscribe the "[EMAIL PROTECTED]" mailing list.
Re: [expert] Adding a disk, insmod placement, moving /var
Run "depmod -av " and look at the results to see that the modules you are interested in have been processed. "man depmod or insmod or modprobe" for more info. Most distro's run depmod automaticly on bootup. Also, get rid of the module file you created - sometimes the wrong one may get picked up, causing grief if they are not the same. BillK > works fine. I get an error message when I run modprobe that says 'Note: > conf.modules is more recent than modules.dep' but if I follow modprobe with > the aic7xxx it loads fine. What am I doing wrong here? > Keep in touch with http://mandrakeforum.com: Subscribe the "[EMAIL PROTECTED]" mailing list.
RE: [expert] Adding a disk, insmod placement, moving /var - SOLVED
I got it, I had to add 'aic7xxx' to my /etc/modules. Regards, Ran Hooper [EMAIL PROTECTED] I get paid while I'm on the Internet, Do you? http://www.how2surf4cash.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ran Hooper Sent: Saturday, November 18, 2000 4:05 PM To: [EMAIL PROTECTED] Subject: RE: [expert] Adding a disk, insmod placement, moving /var About adding that scsi adapter: insmod aic7xxx and modprobe aic7xxx works fine. I get an error message when I run modprobe that says 'Note: conf.modules is more recent than modules.dep' but if I follow modprobe with the aic7xxx it loads fine. What am I doing wrong here? I added line 4 to my conf.modules and it never loads. What am I missing here? I tried renaming my conf.modules to modules.conf with no results. I get the feeling that my bootup process isn't even trying to load modules, although there is a line in there about adding my ethernet card and that works well enough. So, what I want to accomplish is almost there, how do I finish it? I can't just insmod it since I want to move /var to one of the new drives :( >>I would do it a little different, but your approach wasn't wrong though. >> 1) turn off computer >> 2) install hardware >> 3) turn on >> 4) add alias scsi_hostadapter aic7xxx to /etc/modules.conf >> 5) run cfdisk/fdisk to partition the drive >> 6) I'd choose reiserfs as the fs for the new drive, but that's up to you >> 7) mkreiserfs /dev/sda1 (or mke2fs /dev/sda1) >> 8) add /dev/sda1 /var reiserfs defaults 0 0 to /etc/fstab >> 9) mount (-t reiserfs) /dev/sda1 /mnt/newvar >>10) tar cfvsp - -C /var | tar xfvsp - -C /mnt/newvar >>(now you have a copy of /var in /mnt) >>11) mv /var /varold >>12) umount /mnv/newvar >>13) mount /var >>14) rm -rf /varold >>> 6) Run diskdrake, mount the drive, hopefully it takes care of fstab yes? Keep in touch with http://mandrakeforum.com: Subscribe the "[EMAIL PROTECTED]" mailing list.
RE: [expert] Adding a disk, insmod placement, moving /var
About adding that scsi adapter: insmod aic7xxx and modprobe aic7xxx works fine. I get an error message when I run modprobe that says 'Note: conf.modules is more recent than modules.dep' but if I follow modprobe with the aic7xxx it loads fine. What am I doing wrong here? I added line 4 to my conf.modules and it never loads. What am I missing here? I tried renaming my conf.modules to modules.conf with no results. I get the feeling that my bootup process isn't even trying to load modules, although there is a line in there about adding my ethernet card and that works well enough. So, what I want to accomplish is almost there, how do I finish it? I can't just insmod it since I want to move /var to one of the new drives :( >>I would do it a little different, but your approach wasn't wrong though. >> 1) turn off computer >> 2) install hardware >> 3) turn on >> 4) add alias scsi_hostadapter aic7xxx to /etc/modules.conf >> 5) run cfdisk/fdisk to partition the drive >> 6) I'd choose reiserfs as the fs for the new drive, but that's up to you >> 7) mkreiserfs /dev/sda1 (or mke2fs /dev/sda1) >> 8) add /dev/sda1 /var reiserfs defaults 0 0 to /etc/fstab >> 9) mount (-t reiserfs) /dev/sda1 /mnt/newvar >>10) tar cfvsp - -C /var | tar xfvsp - -C /mnt/newvar >>(now you have a copy of /var in /mnt) >>11) mv /var /varold >>12) umount /mnv/newvar >>13) mount /var >>14) rm -rf /varold >>> 6) Run diskdrake, mount the drive, hopefully it takes care of fstab yes? Keep in touch with http://mandrakeforum.com: Subscribe the "[EMAIL PROTECTED]" mailing list.
Re: [expert] Adding a disk, insmod placement, moving /var
So sprach Ran Hooper am Thu, Nov 09, 2000 at 08:31:53AM -0800: > Cool, now where do I put insmod on boot so that I can get /var mounted > before any of the apps want to use it? Nowhere, because that's not necessary. Linux/Mandrake isn't using insmod, modprobe is used here. Just add the entries to your /etc/modules.conf file like I posted and you're set. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.dp.ath.cx GnuPG ID: 4E35467E FP: 93367E5B4AB777B42065533F456FF17C4E35467E ICQ:7328191 Keep in touch with http://mandrakeforum.com: Subscribe the "[EMAIL PROTECTED]" mailing list.
Re: [expert] Adding a disk, insmod placement, moving /var
You can put it in /etc/rc.d/rc.local, but I see there is a /etc/rc.d/rc.modules, which loads all modules in /etc/modules. SO I guess the answer is put the module in /etc/modules. Mine currently just has: vfat The other method of course is to put the right lines in /etc/conf.modules or /etc/modules.conf Buchan Ran Hooper wrote: > > Cool, now where do I put insmod on boot so that I can get /var mounted > before any of the apps want to use it? > > Regards, > > Ran Hooper > [EMAIL PROTECTED] > > > Keep in touch with http://mandrakeforum.com: > Subscribe the "[EMAIL PROTECTED]" mailing list. -- |--| Buchan MilneMechanical Engineer, Network Manager Cellphone +27824722231 email mailto:[EMAIL PROTECTED] Centre for Automotive Engineering http://www.cae.co.za South Africas first satellite:http://sunsat.ee.sun.ac.za Control Models http://www.control.co.za |Registered Linux User #182071-| Keep in touch with http://mandrakeforum.com: Subscribe the "[EMAIL PROTECTED]" mailing list.
RE: [expert] Adding a disk, insmod placement, moving /var
Cool, now where do I put insmod on boot so that I can get /var mounted before any of the apps want to use it? Regards, Ran Hooper [EMAIL PROTECTED] Keep in touch with http://mandrakeforum.com: Subscribe the "[EMAIL PROTECTED]" mailing list.
Re: [expert] Adding a disk, insmod placement, moving /var
And diskdrake can make and format ReiserFS, and (maybe only when you're in advanced mode) has an option "write fstab" Buchan Ran Hooper wrote: > > diskdrake is the gui disk partitioning program you see when you first > install mandrake. It can also be run from x. > [snip] > > 6) Run diskdrake, mount the drive, hopefully it takes care of fstab yes? > > What does diskdrake do? > > Alexander Skwar > -- > How to quote: http://learn.to/quote (german) http://quote.6x.to (english) > Homepage: http://www.digitalprojects.com | http://www.dp.ath.cx > GnuPG ID: 4E35467E FP: 93367E5B4AB777B42065533F456FF17C4E35467E > ICQ:7328191 > > > Keep in touch with http://mandrakeforum.com: > Subscribe the "[EMAIL PROTECTED]" mailing list. -- |--| Buchan MilneMechanical Engineer, Network Manager Cellphone +27824722231 email mailto:[EMAIL PROTECTED] Centre for Automotive Engineering http://www.cae.co.za South Africas first satellite:http://sunsat.ee.sun.ac.za Control Models http://www.control.co.za |Registered Linux User #182071-| Keep in touch with http://mandrakeforum.com: Subscribe the "[EMAIL PROTECTED]" mailing list.
RE: [expert] Adding a disk, insmod placement, moving /var
diskdrake is the gui disk partitioning program you see when you first install mandrake. It can also be run from x. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alexander Skwar Sent: Wednesday, November 08, 2000 11:20 PM To: [EMAIL PROTECTED] Subject: Re: [expert] Adding a disk, insmod placement, moving /var So sprach Ran Hooper am Wed, Nov 08, 2000 at 09:32:10PM -0800: > 4) tar czpf /vardata.tar.gz /var -z isn't necesssary if you have enough freespace in / I would do it a little different, but your approach wasn't wrong though. 1) turn off computer 2) install hardware 3) turn on 4) add alias scsi_hostadapter aic7xxx to /etc/modules.conf 5) run cfdisk/fdisk to partition the drive 6) I'd choose reiserfs as the fs for the new drive, but that's up to you 7) mkreiserfs /dev/sda1 (or mke2fs /dev/sda1) 8) add /dev/sda1 /var reiserfs defaults 0 0 to /etc/fstab 9) mount (-t reiserfs) /dev/sda1 /mnt/newvar 10) tar cfvsp - -C /var | tar xfvsp - -C /mnt/newvar (now you have a copy of /var in /mnt) 11) mv /var /varold 12) umount /mnv/newvar 13) mount /var 14) rm -rf /varold > 6) Run diskdrake, mount the drive, hopefully it takes care of fstab yes? What does diskdrake do? Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.dp.ath.cx GnuPG ID: 4E35467E FP: 93367E5B4AB777B42065533F456FF17C4E35467E ICQ:7328191 Keep in touch with http://mandrakeforum.com: Subscribe the "[EMAIL PROTECTED]" mailing list.
Re: [expert] Adding a disk, insmod placement, moving /var
So sprach Ran Hooper am Wed, Nov 08, 2000 at 09:32:10PM -0800: > 4) tar czpf /vardata.tar.gz /var -z isn't necesssary if you have enough freespace in / I would do it a little different, but your approach wasn't wrong though. 1) turn off computer 2) install hardware 3) turn on 4) add alias scsi_hostadapter aic7xxx to /etc/modules.conf 5) run cfdisk/fdisk to partition the drive 6) I'd choose reiserfs as the fs for the new drive, but that's up to you 7) mkreiserfs /dev/sda1 (or mke2fs /dev/sda1) 8) add /dev/sda1 /var reiserfs defaults 0 0 to /etc/fstab 9) mount (-t reiserfs) /dev/sda1 /mnt/newvar 10) tar cfvsp - -C /var | tar xfvsp - -C /mnt/newvar (now you have a copy of /var in /mnt) 11) mv /var /varold 12) umount /mnv/newvar 13) mount /var 14) rm -rf /varold > 6) Run diskdrake, mount the drive, hopefully it takes care of fstab yes? What does diskdrake do? Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.dp.ath.cx GnuPG ID: 4E35467E FP: 93367E5B4AB777B42065533F456FF17C4E35467E ICQ:7328191 Keep in touch with http://mandrakeforum.com: Subscribe the "[EMAIL PROTECTED]" mailing list.
[expert] Adding a disk, insmod placement, moving /var
I know there is a thread related to this, I just want to make sure I get it right! I am running Mandrake 7.1 on an IDE drive. I need some space and a backup so I am adding the following: AHA-2940UW SCSI Seagate 4/8 DAT SCSI Seagate 2.1GB Barracuda. My data that is using space is on /var, currently I have / as one drive/partition. I would like to end up with the new drive being /var for space sake. My plan is thus: 1) Install hardware. 2) Boot up. 3) Kill anything using /var 3) insmod the aic7xxx.o 4) tar czpf /vardata.tar.gz /var 5) mv /var /oldvar 6) Run diskdrake, mount the drive, hopefully it takes care of fstab yes? 7) tar xzpf /vardata.tar.gz /var 8) if everything goes well whack /oldvar 9) Enjoy more space, and whoa, backups. Does this make sense? Will I get an exact duplicate (Links, permissions, etc.) of /var this way? My questions are as follows. 1) I know I need to use the command: insmod aic7xxx.o upon bootup to see the card and the devices attached. Where is the 'correct' place to put this command so that if the server reboots I don't have to be there to type it in. 2) Is using diskdrake safe for this? Will diskdrake auto update my fstab accordingly? So I'm *assuming* that I should end up with the additional line to my fstab: /dev/sda1 /var ext2 defaults 1 1 3) When all is said and done my tape drive will be /dev/st0 right? Any advice is much appreciated. Regards, Ran Hooper [EMAIL PROTECTED] Keep in touch with http://mandrakeforum.com: Subscribe the "[EMAIL PROTECTED]" mailing list.