Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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 am trying to put Ubuntu on an old PC and I am now lost. It is now dual booting between XP and ubuntu fine but I can't get ndiswrapper loaded. I have two hard drives, a 40G IDE and 250G SATA. XP and Ubuntu are on separate partitions on the 40G and all my data is on the 250G. I have downloaded ndiswrapper and it is on my 250G and I can see it from a navigator in Ubuntu but I can't CD to it via Terminal.
That is why you were directed to do a 'mount' command to see what filesystems are mounted. From that output list you should identify your filesystem on that 250GB drive.
Code:
example from the 'cli';
# mount
/dev/sda6 on / type ext3 (rw,errors=continue,data=ordered)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sda7 on /home type ext3 (rw)
/dev/sda8 on /usr type ext3 (rw)
/dev/sda9 on /var type ext3 (rw)
/dev/sda10 on /tmp type ext3 (rw)
/dev/sda11 on /Linux_Arc type ext3 (rw)
/dev/sda2 on /mnt/ntfs_c type fuseblk (rw,allow_other,blksize=4096)
/dev/sda3 on /mnt/ntfs_d type fuseblk (rw,allow_other,blksize=4096)
tmpfs on /dev/shm type tmpfs (rw)
In the above example you should notice the '/mnt/ntfs_c' which happens to be a M$ filesystem. I would then 'cd /mnt/ntfs_c'. Once present in the working directory (do pwd from 'cli') I can then either navigate within or work on files contained within the current directory. You could use explicit paths but you should keep this simple until you get used to working with Linux.
I fear you want it to be more work than neccesary - but OTOH I don't have Ubuntu to test.
Have you seen this:
http://sourceforge.net/apps/mediawik...=HowTos#Ubuntu
which points to descriptions on how to use synaptic or apt-get to install ndiswrapper just as you do with any other program.
You seem to want to build ndiswrapper from source - which might be both unneccesary and a bit over your head
As for the mounting thing:
In linux there is no drive letters - but it is similar.
Your SATA drive would be (very probably) /dev/sda
any partitions on it would be counted from 1 up - so the first would be /dev/sda1
You integrate this drive by "mounting" it - to wherever you like.
Typically this is a directory under /mnt - just to have a scheme - it could be anywhere.
So:
you create a directory: mkdir /mnt/mydrive
then you "mount" the device to that directory: mount /dev/sda1 /mnt/mydrive
and whatever is on that drive will now be available beneath /mnt/mydrive.
This should generally work, but is of course a little simplified - a lot of guides and docs exist...
...and Ubuntu might alredy have recognized the drive - look in /etc/fstab
I misred your post a bit.
You can see it from a navigator?
This seems to say that you can also browse it using that navigator (the file-manager "nautilus"?).
But cant cd to it via terminal?
This would be odd indeed.
and:
Are you sure you even need ndiswrapper?
Many wireless devices are supported and will just work.
My apologies as i posted my earlier reply my thread was updated.
Quote:
home@home-desktop:/usr/src$ mount
/dev/sdb5 on / type ext3 (rw,relatime,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,nosuid,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
lrm on /lib/modules/2.6.28-11-generic/volatile type tmpfs (rw,mode=755)
securityfs on /sys/kernel/security type securityfs (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/home/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=home)
/dev/sdb7 on /media/disk type ext3 (rw,nosuid,nodev,uhelper=hal)
/dev/sda1 on /media/disk-1 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sdb1 on /media/disk-3 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
home@home-desktop:/usr/src$
I have now tried mount and still can not spot my 250G HD.
As to the question if I need ndiswrapper, I am just following the breadcrumbs.
------------edit------------
mkdir - permission denied.
Last edited by Darkstar_Surfer; 10-24-2009 at 04:09 PM.
/dev/sda1 on /media/disk-1 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
Ok heres how you tell;
linux mounts each physical drive as sdXY where X is the number of drives (represented by letters) and Y is the number of partitions (represented by numbers). Your sdb7 and sdb5 are ext3 file extensions, so they are for linux. You said the 250 was by itself so by process of elimination you can see sda1 is the only logical choice.
If you had 4 drives they would be sda1, sdb1, scd1, and sdd1. Then for each partition on the individual drives there will be a number, i.e. sda1, sda2, sda3 etc...
XP and Ubuntu are on separate partitions on the 40G and all my data is on the 250G.
Code:
...
/dev/sdb5 on / type ext3 (rw,relatime,errors=remount-ro)
...
So your Ubuntu's / (the systems root) partition is on /dev/sdb5
Which is not an IDE drive if I'm not mistaken. Please someone correct me here ASAP if that is not right!
But you said that both XP and Ubuntu are on a 40 GB IDE drive.
Apart from that, you have 3 more partitions mounted - all automatically and all to /media /dev/sdb7 - which is an ext3 partition and therefore cannot be XP /dev/sda1 /dev/sdb1
You must have made this layout - and should know what is where.
Code:
fdisk -l /dev/sda
and
Code:
fdisk -l /dev/sdb
might shed more light
[edit]
Quote:
------------edit------------
mkdir - permission denied.
In Ubuntu you need to prefix all commands, that need root priviliges, with "sudo"
No need for that "sudo mkdir" here - your drives are all already mounted it seems.
But you need to use it for the fdisk commands above as well, or they, too, will fail.
And you really should be able to explore what is on those drives - they are accessible under the /media directory in your filemanager (you said "navigator").
Click on "Computer" and see all your drives...or use the "places" menu in the panel...
For the original question and because of the answer you gave to me asking if you where sure that you need ndiswrapper, I also have one:
what do you need ndiswrapper for?
What type of hardware do you want to use?
For the original question and because of the answer you gave to me asking if you where sure that you need ndiswrapper, I also have one:
what do you need ndiswrapper for?
What type of hardware do you want to use?
I have a D-Link DWL-120+ wireless USB device I want to get working. Once I have my wireless connection I won't have to keep running across the house between my internet connected PC and my Linux PC.
I now need to nip back across the house to see if I understand what I have read this morning.
When I switched on this morning and tried mount I only saw /dev/sdb5. I then opened a file browser and clicked on 250G and I think it mounted. I then went back and tried mount and I had the full list back so I tried fdisk as below.
Quote:
home@home-desktop:~$ sudo fdisk -l /dev/sda
[sudo] password for home:
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe3d9e3d9
Device Boot Start End Blocks Id System
/dev/sda1 * 1 30400 244187968+ 7 HPFS/NTFS
home@home-desktop:~$ sudo fdisk -l /dev/sdb
Disk /dev/sdb: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x7b4ad0ee
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 2939 23607486 7 HPFS/NTFS
/dev/sdb2 2940 4998 16538917+ 5 Extended
/dev/sdb5 3266 4919 13285723+ 83 Linux
/dev/sdb6 4920 4998 634536 82 Linux swap / Solaris
/dev/sdb7 2940 3243 2441817 83 Linux
/dev/sdb8 3244 3265 176683+ 82 Linux swap / Solaris
Partition table entries are not in disk order
home@home-desktop:~$
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.