3 questions. Please, HELP ME!
Hi! I'm a Debian Linux 2.1 'slink' user, and I have 3 questions: 1. I have compiled the version 2.2.4-intl of Linux Kernel and, at boot time, my screen shows the following message: SIOCADDRT: Invalid argument I have read the documentation, and says that is a bug in pppd versions 2.2.0 and earlier. I have currently installed pppd v2.3 patch level 5. Why does occur this? How can I patch the kernel? 2. My distribution doesn't make some device files, such as /dev/modem, /dev/audio, /dev/mixer, /dev/sndstat (I cannot use my SoundBlaster PCI 64, and I use my modem with device file /dev/ttyS1 directly). How can I workaround this? 3. I have the defrag utility. How can I defragment my Linux partition, since a mounted drive cannot be defragmented? Please, send your reply at [EMAIL PROTECTED], as soon as possible. Thanks very much for your support!!
Re: 3 questions. Please, HELP ME!
On Sat, 1 Apr 2000, José María Pongilioni López [EMAIL PROTECTED] wrote: Hi! I'm a Debian Linux 2.1 'slink' user, and I have 3 questions: 1. I have compiled the version 2.2.4-intl of Linux Kernel and, at boot time, my screen shows the following message: SIOCADDRT: Invalid argument I have read the documentation, and says that is a bug in pppd versions 2.2.0 and earlier. I have currently installed pppd v2.3 patch level 5. Why does occur this? How can I patch the kernel? I *think* this occurs when running a 2.2.x kernel with slink, because the /etc/init.d/network script tries to add a route to the loopback interface (lo). This is not neccessary any more with a 2.2.x kernel. Look for a line starting with route add ... in /etc/init.d/network, comment it out and see if that helps. 2. [...] 3. I have the defrag utility. How can I defragment my Linux partition, since a mounted drive cannot be defragmented? There is no need to 'defrag' ext2 filesystems, you don't have to worry about that. -- Philip Lehman [EMAIL PROTECTED]
Re: 3 questions. Please, HELP ME!
José María Pongilioni López writes: I use my modem with device file /dev/ttyS1 directly). How can I workaround this? Don't. You should use /dev/ttyS1 directly: /dev/modem is a bad idea (and it isn't a device file: it's just a link to /dev/ttyS1). -- John Hasler [EMAIL PROTECTED] (John Hasler) Dancing Horse Hill Elmwood, WI
Re: 3 questions. Please, HELP ME!
1. [snip] 2. My distribution doesn't make some device files, such as /dev/modem, /dev/audio, /dev/mixer, /dev/sndstat (I cannot use my SoundBlaster PCI 64, and I use my modem with device file /dev/ttyS1 directly). How can I workaround this? Those devices, some of htem, are just symlinks. For example, /dev/modem/ is a symlink to /dev/ttyS1, so if you run ln -s /dev/ttyS1 /dev/modem, it will make the symlink for you. As far as audio goes, to create those devices you need to go to /dev and ./MAKEDEV audio However, prior to that you have to include sound support into kernel, and with PCI card I am not sure hwo to do that (I think it is PnP, then you are sorta screwed.) Read Sound-HOWTO and Kernel-HOWTO for that. You can find them at linuxdoc.org 3. I have the defrag utility. How can I defragment my Linux partition, since a mounted drive cannot be defragmented? Well, one way is to unmount the partition (umount /zip , f.e) and defrag it. If its a /usr or /, then if you really wan to defrag it, then you have to do some more worka LOT more work. So dont worry about it. How big is the defragmentation, how many files you have and how big the partition is? HTH, Andrei - Andrei S. Ivanov [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] http://arhses.dyndns.org -| http://scorpio.dynodns.net -| http://scorpio.myip.org-| --All the pages bundled together. UIN 12402354 For GPG key, go to above URL/GnuPG -
Re: 3 questions. Please, HELP ME!
3. I have the defrag utility. How can I defragment my Linux partition, since a mounted drive cannot be defragmented? Well, one way is to unmount the partition (umount /zip , f.e) and defrag it. If its a /usr or /, then if you really wan to defrag it, then you have to do some more worka LOT more work. So dont worry about it. How big is the defragmentation, how many files you have and how big the partition is? you need a separate /boot partition or a zImage and loadlin on a dos partition. go to single-user mode (init s). unmount all partitions, remount / read-only. defrag all (but /boot and /) partitions. then defrag / at last. reboot the system as soon as possible, as the filesystem data in memory will not be consistent with the one on disk any more (as / is still mounted). if you have a separate /boot partition, then after the reboot everything should be fine. now you may unmount /boot, defrag it, remount, AND DON'T FORGET TO RUN LILO BEFORE REBOOTING!! if your /boot is on /, then you need to boot with loadlin from dos, as the lilo map file will be made invalid by the defragmentation. first thing after booting: run lilo. then all should be fine. everything herein without any warranty!! it's your data! ;-) final notes: i don't thing, that the whole thing is worth the effort. the only partition on my system, that ever reaches fragmentation above 5% is /var, so it is sensible to defrag only that one (if any). you have a separate /var, don't you? :-) however - defragmentation is usually useless on ext2 as a) it keeps fragmentation low by nature and b) it spreads data all over the disk, so even defragmenting won't make the filesystem faster (only reading large files will be somewhat faster, but there are not many big files on a linux system, that need fast access and ever get fragmented). correct me, if i'm wrong ... regards -- Hi! I'm a .signature virus! Copy me into your ~/.signature, please! -- Linux - the last service pack you'll ever need.