LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Harken to me, for my Linux begets trouble (https://www.linuxquestions.org/questions/linux-software-2/harken-to-me-for-my-linux-begets-trouble-73739/)

Kapitan 07-18-2003 12:34 AM

Harken to me, for my Linux begets trouble
 
Though these hands fought many a battle, defeated many a foe, trounced peasants and programmers alike who stood in my way, my soul is troubled when my Linux dares to disobey my commands. I request that the learned among you help one who is better than you, and answer my question:

How do you change drives? Linux doesn't seem to have a letter system to refer to different drives, like a "c" ... or perhaps a "d" for the more adventurous. I clicked the mouse randomly several times and then Linux inquired whether I wanted to mount the other drive. As sexy as that sounds, when I was presented with FFS types, naughty options, the Super-cock-block on /dev/hdm and an error involving too many mount options, I could not choose which mount option to take, for, as it said, there were too many.

MasterC 07-18-2003 12:43 AM

Rrright... (Dr Evil Style)

;)

In Linux there is a different style of disk access. Linux has a tree filesystem structure, everything is below / What you need to do to access different disks is simply mount them. But first, what to mount? As root type into a terminal:
fdisk -l
This will display information about your drive(s) and their partitions. From there you have to mount a partition at a mount point (a mount point is simply a directory). So first we need a directory to exist, so as root type:
mkdir /mnt/files
I use /mnt because that's the "normal" location to mount devices after boot up, but you can mount it in any empty directory you'd like. So now to mount the device..
You will need to know the filesystem that the partition contains, assuming it was a fat32 paritition, and fdisk -l reveals it to be /dev/hda5 then you'd mount it with:
mount -t vfat /dev/hda5 /mnt/files -o users,umask=022

Of course a lot of this depends on your distro, so you might wanna tell us which distro you have.

Oh, and for learned in your statement, I would have used learn-ed to pronounce it correctly ;)

Cool

Kapitan 07-18-2003 12:58 AM

Damn you and your actually helpful answer. Anyway, I typed your command and it gave me the following error: "mount: wrong fs type, bad option, bad superblock on /dev/hdb1, or too many mounted file systems".

I think the problem may have started when I repartitioned the hard drive. Originally when I typed "fdisk -l" hdb1 was a linux swap. I deleted the partition and created a new one. It gave me the message: "error 16: device or resource busy", but now it's a Linux drive.

I'm using Redhat 9.

Quote:

Originally posted by MasterC
Oh, and for learned in your statement, I would have used learn-ed to pronounce it correctly
That's why you're not me.

EDIT: I sliced up the fstab like I would a mime invading my house and tried again. The drive is now mounted. Thanks for your help masked stranger.

itsjustme 07-18-2003 01:03 AM

Tonight I was at my computer and spilled a little wine on my shirt. And so I go, OUT! OUT! Damned Spot!
:D

Oh, uh... and read this:

http://www.icon.co.za/~psheer/book/rute.html.gz

Kapitan 07-18-2003 01:09 AM

Quote:

Originally posted by itsjustme
Oh, uh... and read this:

http://www.icon.co.za/~psheer/book/rute.html.gz

Astounding. I couldn't find anything to make my eyes glaze over in less then 0.8 seconds and now my long, perilous search is over. I tip my hat to you sir.

itsjustme 07-18-2003 01:23 AM

;)

Here. Check this out also:

http://www.tldp.org/LDP/intro-linux/...ect_03_01.html

Of course, I am probably missing the point of your post, or possibly your diatribe. :cool:


All times are GMT -5. The time now is 11:52 PM.