Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.