LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mount devices (https://www.linuxquestions.org/questions/linux-newbie-8/mount-devices-336318/)

Granden 06-23-2005 01:34 AM

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

J_K9 06-23-2005 02:00 AM

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

Granden 06-23-2005 02:10 AM

Ok, thanks for the fast response. Sounds really easy just need to write that down so I can try when I come home.

LDZ420 06-23-2005 02:27 AM

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

J_K9 06-23-2005 02:31 AM

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

chrism01 06-23-2005 02:33 AM

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.

Granden 06-23-2005 02:34 AM

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

J_K9 06-23-2005 02:36 AM

Also, I found this handy page about NTFS mounting/reading/etc... all from a simple Google search :p : 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').
:D

J_K9

LDZ420 06-23-2005 03:57 PM

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 :newbie:


All times are GMT -5. The time now is 07:18 AM.