LinuxQuestions.org
Visit Jeremy's Blog.
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 06-23-2005, 02:34 AM   #1
Granden
Member
 
Registered: Jun 2005
Distribution: Slackware 10.2
Posts: 48

Rep: Reputation: 15
Mount devices


Hi!
I got a ide driver with ntfs on that would like to mount and as well my MP3-Player, into linux. so what I wanna know is,
if I connect everything how do I then check if it is hda or hdb and that?
and as well what is the mount command, and when I mount can I choose where ever I want or must it be on some specific place?

//Granden
 
Old 06-23-2005, 03:00 AM   #2
J_K9
Member
 
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700

Rep: Reputation: 30
Hi,

Welcome to LQ! Once you've plugged your MP3 Player/whatever, go into terminal and type in "dmesg". Look at the output of that and eventually you should find your MP3 Player.

Right, now, with the MP3 Player still plugged in, go into terminal, type in "su", the root password, and then go and type the following:
Code:
mkdir /media/mp3player
mount /dev/hdxy /media/mp3player
Replace the "hdxy" with what you found out from dmesg, and you're done!

J_K9
 
Old 06-23-2005, 03:10 AM   #3
Granden
Member
 
Registered: Jun 2005
Distribution: Slackware 10.2
Posts: 48

Original Poster
Rep: Reputation: 15
Ok, thanks for the fast response. Sounds really easy just need to write that down so I can try when I come home.
 
Old 06-23-2005, 03:27 AM   #4
LDZ420
LQ Newbie
 
Registered: Apr 2004
Location: Fontana, California
Distribution: Ubuntu
Posts: 27
Blog Entries: 1

Rep: Reputation: 15
ok, I'm a newbie so I would not trust a thing that I say without doing some research yourself
' I connect everything how do I then check if it is hda or hdb and that?'
The true answer is I don't know if there is a utility to check which will indicate which devices are pluged in.
First with hard drive it goes like this

hda = IDE master on 1st cable
hdb = IDE slave on 1st cable
hdc= IDE master on 2nd cable
hdd= IDE slave on 2nd cable

So what this means is that you must find out what cable the drive is pluged in and if the drive is the master or the slave.

Now you wanted to see know about the mount command

I would try something like mount -t ntfs /dev/hda1 /home/blackman/winblows_stuff

ntfs= filesystem
/dev/hda1= IDE Master on 1st cable and on the 2nd partition (d drive)
/home/blackman/winblows = folder where contents of drive or partition is viewable. ( does not have to be in any special place but best to keep in /home/'username' or in /mnt directory)

Now, remember that if winblows directory doesn't exist than it will need to be created with the mkdir command.

Now, let me put you up on a little game. Most people doesn't want to answer your questions when you haven't done any research ( which you clearly have not done) So before you go asking question. PLEEEASE do some research. Use man pages, yahoo or goggle search, or do a search on this website and read how other have solved similar problem. Just like in everyday life, things are not just going to be handed to you. You must take steps before anyone will take steps towards you.

-Landon
 
Old 06-23-2005, 03:31 AM   #5
J_K9
Member
 
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700

Rep: Reputation: 30
You're welcome

One more question though....what distribution do you have? Are you sure it supports NTFS, because if it doesn't it may not be able to even read your NTFS drive...Just my thoughts! If it turns out that your distro doesn't support NTFS, there's always the Linux NTFS Project which will allow you full read access for NTFS-formatted systems. You may even want to consider re-formatting your (external, is it?) hard drive with FAT32, which will allow you both read and write access from Linux.
 
Old 06-23-2005, 03:33 AM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Just FYI, note that you should NOT try to write to an NTFS partition from Linux; the only driver avail is marked as EXPRIMENTAL status... you have been warned.
Reading should be ok.
 
Old 06-23-2005, 03:34 AM   #7
Granden
Member
 
Registered: Jun 2005
Distribution: Slackware 10.2
Posts: 48

Original Poster
Rep: Reputation: 15
OKEJ I confess Im guilty in the charge of not using google :P
But thanks for your great answer. have to write that down as well.

Im using Debian 3.1
Its one external IDE drive one internal and my usb flash mp3 player I want to mount, my hardrives is NTFS hmm dunno if I wanna format to FAT32 on the external last week I did reformat to NTFS from FAT32 cause of FAT32 restriction. :P

I read about that sourceforge project ebfore sounds great

Last edited by Granden; 06-23-2005 at 03:38 AM.
 
Old 06-23-2005, 03:36 AM   #8
J_K9
Member
 
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700

Rep: Reputation: 30
Also, I found this handy page about NTFS mounting/reading/etc... all from a simple Google search : Linux-FAQs - NTFS. I advise you to take a look at it...

Quote:
4.5 How do I mount an NTFS Volume?

First of all, it might be an idea to check that your kernel understands NTFS. The command below will give a list of all the filesystems that Linux understands. If you see ntfs, then you are OK. Also it might be a good idea to read the mount manual, man 8 mount.

cat /proc/filesystems


Next you need to create a place to mount the NTFS Volume. Then you can mount it.

mkdir /media/windows
mount /dev/hdxy /mnt/windows -t ntfs -r


To alter the permissions of the mounted filesystem, see the umask option in Section 4.6. If you would like to have the volume mounted automatically at boot time, see Section 4.10.

When you have finished, you can unmount the partition with either of:

umount /mnt/windows
umount /dev/hdxy


The command is called umount (only one 'n').


J_K9

Last edited by J_K9; 06-23-2005 at 03:40 AM.
 
Old 06-23-2005, 04:57 PM   #9
LDZ420
LQ Newbie
 
Registered: Apr 2004
Location: Fontana, California
Distribution: Ubuntu
Posts: 27
Blog Entries: 1

Rep: Reputation: 15
Also with USB flash drive the device comes up as a scsi so the device might be /dev/sda or sda0 or sda1. This is how I mounted my usb flash drive.

mount -t auto(or vfat) /dev/sda1 /mnt/usb

I used auto on the as the file system. mount suggest against this and says that it is best to place the correct file system in the mount command ( can find this out with the dmesg command. You can also find which device the usb is on. )

I also created the usb folder inside of mnt with the mkdir /mnt/usb command. You must be root do to preform to create directory and mount drive.

Take care bratha,
-Landon
 
  


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
How to give not-root user ability to mount devices to any mount point??? jdupre Linux - General 8 02-04-2012 11:03 AM
can I mount two devices to the same mount point? gsgleason Linux - Hardware 7 03-04-2005 06:29 AM
how to mount devices correctly plainkeyman Linux - Hardware 4 10-08-2004 09:54 AM
How to Mount PCMA Devices? das_Schaf Linux - Newbie 0 10-08-2004 04:05 AM
Can't Mount my SCSI devices! ewto Linux - Newbie 9 09-10-2003 01:44 AM

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

All times are GMT -5. The time now is 08:45 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