Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
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.
Okay change in issues, I just noticed that each time I reboot that my external HD changes locations and that i possibly why I am having the difficulties that I am is there a way to make it so that my external HD basically stays at one address?
Last edited by sulvereagle59; 06-06-2007 at 06:33 PM.
3) I have set up a log in other then root
now what my issue is is that
1) I am unable to access many of the folders when I am logged in as anything other then root.
Which directories are you trying to access? Those on your disk?
Quote:
2)I am unable to mount /E which is the second partition on my external Hd which is in fat32 format.
You mean you're not able to mount the device as your normal user?
Quote:
root@darkstar:~# mount /dev/sda2 /E -t vfat
mount: wrong fs type, bad option, bad superblock on /dev/sda2,
missing codepage or other error
(aren't you trying to mount an extended partition,
instead of some logical partition inside?)
In some cases useful info is found in syslog - try
dmesg | tail or so
Post the output from "fdisk /dev/sda" (or whatever the kernel's calling your device now).
I have been able to identify sda1 as the ntfs format of the external HD and sda2 as the fat32 format. I have no idea what the < sda5 > is though.
Quote:
Originally Posted by sulvereagle59
Okay change in issues, I just noticed that each time I reboot that my external HD changes locations and that i possibly why I am having the difficulties that I am is there a way to make it so that my external HD basically stays at one address?
I've replied to your problems above because I don't know if this post means you've fixed them. Yeah, this is the problem I described in an earlier post. You can use udev to get around this, but you'll need to use a 2.6 kernel. If you used the default kernel, you'll be using a 2.4 kernel. However, if you chose test26.s or huge26.s when you installed, you'll be using a 2.6. If you don't know, run "uname -r" to find out. Slackware provides packages for 2.6 kernels, so it won't be that hard to upgrade. We can help with setting up udev as well .
Which directories are you trying to access? Those on your disk?
Due to me dual booting Windows Xp and Slackware 11 I am trying to set it up so that I can access my partition drive C:\ which is hda1 in linux and then of course my linux partition which is hda5. when I am logged in as david (which is my other log in other then root) it tells me that i do not have access.
Quote:
Post the output from "fdisk /dev/sda" (or whatever the kernel's calling your device now).
I have been able to identify sda1 as the ntfs format of the external HD and sda2 as the fat32 format. I have no idea what the < sda5 > is though.
Disk /dev/sde: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sde1 1 28930 232380193+ 7 HPFS/NTFS
/dev/sde2 28931 53993 201318547+ f W95 Ext'd (LBA)
/dev/sde5 28931 53993 201318516 b W95 FAT32
Quote:
I've replied to your problems above because I don't know if this post means you've fixed them. Yeah, this is the problem I described in an earlier post. You can use udev to get around this, but you'll need to use a 2.6 kernel. If you used the default kernel, you'll be using a 2.4 kernel. However, if you chose test26.s or huge26.s when you installed, you'll be using a 2.6. If you don't know, run "uname -r" to find out. Slackware provides packages for 2.6 kernels, so it won't be that hard to upgrade. We can help with setting up udev as well
I am using Kernel 2.4.33.3
in my slackware Cd's there are 2 what apperas to be kernals which one do i use, linux-2.6.17.13 or linux-smp-2.6.17.13? I have no idea or even how to go about doing it for that matter.
You could put the "users" option in the 4th column of your fstab file to give your normal user access.
Quote:
Originally Posted by sulvereagle59
Disk /dev/sde: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sde1 1 28930 232380193+ 7 HPFS/NTFS
/dev/sde2 28931 53993 201318547+ f W95 Ext'd (LBA)
/dev/sde5 28931 53993 201318516 b W95 FAT32
Have you tried mounting /dev/sde5, rather than /dev/sde2?
Quote:
Originally Posted by sulvereagle59
in my slackware Cd's there are 2 what apperas to be kernals which one do i use, linux-2.6.17.13 or linux-smp-2.6.17.13? I have no idea or even how to go about doing it for that matter.
The SMP kernel is for machines with multiple processors. FYI, there's also the 2.6.18 kernel in /testing. There's nothing wrong with using 2.6.27.13 really, you'll be able to use udev. Whichever kernel you decide to use, you'll want to install all the kernel-*.tgz packages, but not the kernel headers package. Then, you'll want to make an initrd if necessary (see the file README.initrd) and add a new entry to your /etc/lilo.conf so you can boot with the new kernel (an example entry is given in README.initrd). Next, you'd try booting with said kernel and see if you have any problems with stuff. Then we can go on to helping you set up udev .
Now on updating the kernel, would I just go into the extra folder of my slackware cd's and install using KPackage or is there a better way of doing it? Next I was looking at the packages in the extra folder and in the kernel 2.6.17.13 folder there is the following items kernel generic,headers,modules, and source. Now if I am understanding you correctly I would install all but the headers, correct? If so is there an order in which I would do this in? Also, after doing the install would I need to do a Kernel compiling?
Now on updating the kernel, would I just go into the extra folder of my slackware cd's and install using KPackage or is there a better way of doing it?
I've never used KPackage myself, but if you want to use it, that's up to you. You'll need to run it as root, though. You could just install the packages from the terminal using installpkg (again, you'll need to do this as root). If you're doing the latter, then change to the directory where the CD is mounted (using the "cd" command) and then run "installpkg kernel-generic*.tgz kernel-modules*.tgz kernel-source*.tgz" (the stars mean you don't have to type out the rest of the file name).
Next I was looking at the packages in the extra folder and in the kernel 2.6.17.13 folder there is the following items kernel generic,headers,modules, and source. Now if I am understanding you correctly I would install all but the headers, correct? If so is there an order in which I would do this in? Also, after doing the install would I need to do a Kernel compiling?[/QUOTE]
Yes, you are correct about not installing the headers. I don't think you need to worry about the order in which you install the packages. Also, no, you don't need to compile the kernel. The compiled image is in the kernel-generic package. Install the source just in case you need it later on.
Ok some minor changes from my last post. First i thought I found what to change in lilo so my last post has my original lilo file and this was what I changed in it
Allright, there has been some additional changes since my last post just a few minutes ago. The changes are as follows
1) i figured out what it was that I was doing wrong and have since fixed the problem. ( while I did make the changes in lilo.config I did not type lilo on a command prompt since the changes I made did not take effect untill i did so.
2)I now have kernal 2.6.17.13 finally.
thus far everything that worked with the other kernel is working now so that is a very good thing.But, now I need to start working on udev.
Indeed, I had forgotten you need to rerun lilo after making changes to your lilo.conf.. oops .
Do you have the udev package installed? To check, you can do "ls /var/log/packages | grep udev" in a terminal. To explain what this does: ls is for listing files and the | separating "ls /var/log/packages" and "grep udev" says to send the output of the thing on the left hand side to the thing on the right hand side. grep is used to print out lines containing a given string, in this case "udev". I prefer to explain what commands do usually, rather than just telling you to run them.
You will need to write a rules file for udev that includes a rule for your external hard disk. There's a document called "Writing udev rules" which you should read and can find in /usr/doc/udev-0.97/. If you have problems understanding how to write a rule, post back here.
OK, I have read and kinda understand what I am doing. But, I do have some question.
1) ok according to the rules
Quote:
USB Hard Disk
A USB hard disk is comparable to the USB camera I described above, however typical usage patterns are different. In the camera example, I explained that I am not interested in the sdb node - it's only real use is for partitioning (e.g. with fdisk), but why would I want to partition my camera!?
Of course, if you have a 100GB USB hard disk, it is perfectly understandable that you might want to partition it, in which case we can take advantage of udev's string substitutions:
BUS=="usb", KERNEL=="sd*", SYSFS{product}=="USB 2.0 Storage Device", NAME="%k", SYMLINK+="usbhd%n"
This rule creates symlinks such as:
/dev/usbhd - The fdiskable node
/dev/usbhd1 - The first partition (mountable)
/dev/usbhd2 - The second partition (mountable)
now how and where do I get the SYSFS codes to be able to make the rule for my HD.
Now whaqt I have done thus far,
1) I have made a dir 10-local.rules
2) i have come up with what i think is a starting point of the rule for my HD
Look at the section titled "Finding information from sysfs" in the Writing udev rules document.
There are several things wrong with your rules. Firstly, you need to enclose things in double quotes as in the examples, e.g. KERNEL=="sd*". Also NAME isn't being used to match something, it's being used to define the NAME for the device, so you use 1 equals sign rather than two, e.g. NAME="foo". You might want to use SYMLINK instead, which leaves the kernel name intact, but creates a symbolic link (it's like a kind of shortcut) to the kernel named device node.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.