LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 10-24-2009, 11:29 AM   #1
Darkstar_Surfer
LQ Newbie
 
Registered: Oct 2009
Posts: 27

Rep: Reputation: 15
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.
 
Old 10-24-2009, 11:41 AM   #2
snowtigger
Member
 
Registered: Mar 2005
Location: england
Distribution: slackware, win2k
Posts: 364

Rep: Reputation: 35
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


 
Old 10-24-2009, 11:50 AM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
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

Last edited by repo; 10-24-2009 at 12:40 PM.
 
Old 10-24-2009, 11:56 AM   #4
Darkstar_Surfer
LQ Newbie
 
Registered: Oct 2009
Posts: 27

Original Poster
Rep: Reputation: 15
If only life were that easy, I can't cd to my 250G HD as I don't know its id letter.
 
Old 10-24-2009, 12:36 PM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,892
Blog Entries: 27

Rep: Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183Reputation: 2183
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.



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!
 
Old 10-24-2009, 12:40 PM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
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 ?
 
Old 10-24-2009, 01:19 PM   #7
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
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

Last edited by jomen; 10-24-2009 at 01:22 PM.
 
Old 10-24-2009, 01:36 PM   #8
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
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.
 
Old 10-24-2009, 04:59 PM   #9
Darkstar_Surfer
LQ Newbie
 
Registered: Oct 2009
Posts: 27

Original Poster
Rep: Reputation: 15
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 05:09 PM.
 
Old 10-24-2009, 05:12 PM   #10
linuxpokernut
Member
 
Registered: Jul 2007
Distribution: Slackware 14
Posts: 237
Blog Entries: 8

Rep: Reputation: 59
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.
 
Old 10-24-2009, 05:16 PM   #11
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
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...

Last edited by jomen; 10-24-2009 at 05:39 PM.
 
Old 10-24-2009, 05:55 PM   #12
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
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?
 
Old 10-25-2009, 04:08 AM   #13
Darkstar_Surfer
LQ Newbie
 
Registered: Oct 2009
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jomen View Post
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.
 
Old 10-25-2009, 04:35 AM   #14
Darkstar_Surfer
LQ Newbie
 
Registered: Oct 2009
Posts: 27

Original Poster
Rep: Reputation: 15
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:~$
 
Old 10-25-2009, 05:06 AM   #15
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I have Lose my data because LVM partition lose iwantofree Linux - Server 9 08-01-2008 08:09 AM
LXer: Patent lawsuit a lose-lose for NetApp, Sun LXer Syndicated Linux News 0 09-11-2007 05:40 AM
HELP! Linux idiot needs help icefig Linux - Newbie 7 05-15-2006 11:09 AM
idiot friendly linux? ALK360 Linux - Distributions 10 02-08-2005 09:51 AM
SuSE 9.1 Warning: you may lose Windows partition! thom Linux - Distributions 17 07-08-2004 09:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration