LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Warning - Linux Idiot on the lose (https://www.linuxquestions.org/questions/linux-newbie-8/warning-linux-idiot-on-the-lose-764173/)

Darkstar_Surfer 10-24-2009 10:29 AM

Warning - Linux Idiot on the lose
 
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.

snowtigger 10-24-2009 10:41 AM

are you trying to cd to it directly, that won't work, you have to cd to the directory/folder that contains said file.

example,
if it's location is /mnt/bigdrive/stuff/ndiswrapper
then cd /mnt/bigdrive/stuff
after your there do a ls to list the contents of the location


:)

repo 10-24-2009 10:50 AM

in a terminal type
Code:

mount
This will give you the mounted devices and the mountpoint
something like
Quote:

/dev/sdb2 on / type ext3 (rw,errors=remount-ro)
/dev/sda1 on /mnt/data type ext3 (rw,noatime)
Lets say your data drive is sda1
Then you type
Code:

cd /mnt/data
Code:

ls
Then you can cd into the directory that contains the files.


Good luck

Darkstar_Surfer 10-24-2009 10:56 AM

If only life were that easy, I can't cd to my 250G HD as I don't know its id letter.

onebuck 10-24-2009 11:36 AM

Hi,

This is not M$!

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.

:hattip:

Just a few links to aid you;

Linux Documentation Project
Rute Tutorial & Exposition
Linux Command Guide
Utimate Linux Newbie Guide
LinuxSelfHelp
Getting Started with Linux
Advanced Bash-Scripting Guide

These links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!

repo 10-24-2009 11:40 AM

Quote:

If only life were that easy, I can't cd to my 250G HD as I don't know its id letter.
Did you even read and tried what was suggested ?

jomen 10-24-2009 12:19 PM

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

jomen 10-24-2009 12:36 PM

additionally:

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.

Darkstar_Surfer 10-24-2009 03:59 PM

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.

linuxpokernut 10-24-2009 04:12 PM

Code:

/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...

Hope that helps.

jomen 10-24-2009 04:16 PM

Quote:

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...

jomen 10-24-2009 04:55 PM

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?

Darkstar_Surfer 10-25-2009 03:08 AM

Quote:

Originally Posted by jomen (Post 3731261)
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.

Darkstar_Surfer 10-25-2009 03:35 AM

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:~$

Wim Sturkenboom 10-25-2009 04:06 AM

From your fdisk, sda is the 250GB; from your mount, it's mounted on /media/disk-1 (sda1)

You should be able to use cd /media/disk-1 to get to it


All times are GMT -5. The time now is 08:33 AM.