Really Dumb Linux Noob question

eno-on

[H]ard|Gawd
Joined
Feb 20, 2005
Messages
1,114
Alright, I know you guys are gonna laugh at me, but I've googled, and nothing has told me sepcifically how to do something so simple as.....
Browse the contents of a volume on a secondary harddrive connected to my computer.
Im running Mandriva, the device is hde, and I just can't freakin figure out how to navigate to it to browse the damn files.... :rolleyes:
Yes I'm dumb. Flame away, but please answer my question while doing so :)
 
You will need to mount it, unless it has been done for you.
To see the list of mounted devices, type mount in a terminal and look for /dev/hde.
If it's not there, try this:
mkdir /mnt/hde
mount -t auto /dev/hde /mnt/hde

If it works, you can browse it by going to /mnt/hde.
 
sweet, thanks. Only thing mounted there was CD last i checked, so ima go try this now.
 
and to add... if this is something you are going to utilize often, you can add it to /etc/fstab

it's where the OS keeps track of all the volumes to mount at boot. even if you don't mount it when you boot it, you can keep it's entry and make it so that when you do plug it in, all you need to type is mount /mnt/directoryname
 
hmm, mandriva wont let me mount fat32 or ntfs volumes. I've done a little reading, most of what Ive read have said that it should support them natively (well, read but not write on ntfs, but yeah...)
Got some tips for me? Or possibly a link with a walkthrough that will help me do this?
 
make sure the VFAT and NTFS driver are loaded for you to mount such partitions

"lsmod "

will show you what modules are loaded

modprobe ntfs
modprobe vfat

will load the drivers
 
I know I must sound dumber than a box of rocks, and maybe I'm not googling the correct things, but after HOURS of searching and reading, I can't figure out how the hell to run applications I've downloaded and installed. I can access ntfs files now, oddly, through connecting the harddrives to a usb HD enclosure. modprobe doesn't do anything, and I've noticed I must be logged in as root to actually browse the directories on the NTFS volume.
However, I just can't wrap my head around running programs I've DLed and installed. They are installed. but where? And where do I run them from? Jesus, I feel dumb.
 
The programs would be installed in various bin and lib directories.

Just type out the name of the command or look in the menu bar in whichever Desktop you are using.
 
puck said:
The programs would be installed in various bin and lib directories.

Just type out the name of the command or look in the menu bar in whichever Desktop you are using.
Well, therin lies the rub. They do not appear to be in either of those places. I'm using KDE. I can't find the files anywhere but in the tmp folder. And the executable doesn't run from there, I guess. I dunno wtf I'm doing.

/edit:
Also, trying to mount the second harddrive from an IDE channel, with both ntfs and vfat drivers loaded, I get "wrong fs type, bad option, bad superblock on /dev/hde1, or too many mounted file systems"

/edit 2: And to top it off, I'm getting "permission denied" with etc/fstab even though I'm logged in as root... wtf?
 
Damn...it looks like you locked yourself out of your own system... :p or someone else did *cough* hacker *cough*! :eek: Did you screw around with file permisssions? 'Cause it sure looks to me that something got fucked up, badly... :( hope someone here knows what to do (hey I'm a Linux n00b too :p)...
 
I'm the only person whos touched it, and no, I haven't changed file permissions. I can still access etc/fstab through a window. Can change the files there, If I want, seems like a bug or something, hell if I know. I can't figure out why I can't mount the damned drive from an IDE channel, but when plugged in through my usb enclosure, it mounts fine (all by itself, I might add)
 
Jerunk said:
punch

man mount

into console, if should help you out a bit.
man mount doesn't tell me any more than what the [H] has told me already. Believe me, I've looked at it numerous times.
 
just a quick thought: what are you using to gain root access? su or sudo? also, are you accessing /etc/fstab from the terminal or from a file browser?
 
su, or logging in directly to the root account.
/etc/fstab from konsole.
Though, as I said, I can get to the files from a browser.
 
To edit /etc/fstab is different from running it. To edit, run "nano /etc/fstab"; to execute it would be "/etc/fstab". So you need to do the first (to change the content of the file) rather than the second (which won't work, as you've discovered; it's not executable, and it isn't a script file.

 
nano: command not found

heh. screw this, ima get some books before I come back with more questions.
 
I don't think he's quite ready for vi/vim yet. Don't want to scare him too bad.
 
I'd suggest you try this, install nano or pico, and then try "nano /etc/fstab" again.
Alternatively, you can use a graphical editor, but it requires a few steps to get it to run as root. Try this in an x terminal (konsole, xterm, whatever):
Code:
xhost +
su
kedit /etc/fstab &
And when you're done:
xhost -
And if you wonder what this does:
"xhost + " means "let everybody connect to this X session". It's possible to be more specific and only let certain users or IPs in, but this is failsafe. (Like disabling your firewall, it can also be risky.)
"su" makes you root.
"kedit" is a text editor, you can use any one you've got available. If you haven't got kedit, try gedit or (bleh) xedit.
"&" means "start this program in the background". If you don't add it, you won't be able to use that shell until the editor has finished.
"xhost -" is the opposite of "xhost +". Much like turning your firewall back on again.
 
I've moved to Suse. It seems quite a bit more intuitive for me.
I've unhooked my windows drives from my home computer completely, as well as installed it on one of my work computers here. I'm going to spend a few weeks using it as much as possible, without using windows at home at all.
Hopefully in the next couple of weeks of using it as exclusively as I can (which won't be all that excusivley, as I am a technician and have to work on windows machines pretty much all the time), I can get a better feel for it, and perhaps my questions then, won't be quite so stupid. Thanks for all the info so far.
 
Im doing a lot better in Suse. Finally figured out how to mount the drives. Kept saying wrong file system when i tried to mount hd*. thats becasue i needed to mount hd*1. Didn't know that. installed some programs, but wasn't sure I had. Didn't realise most of em need to be run from a console. No GUI for the ones that fall into the 'utility' category (i.e. virus scanners, etc). The machine I'm currently on is amazingly responsive, considering how old it is. This 800 duron with 384 megs of sdram feels as quick as most more powerful windows machines I work on. Great multi tasking, very smooth, just getting used to using command line for everything important. Remembering all the commands is gonna be a bitch, iI have pretty crappy short term memory. I currently have to type in everything about 3 times before I get it right, but it's not so bad, kinda enjoying the hands-on feel. I'm sure you guys hear this crap from linux newbs all the time, so I'll stop babbling now, but again, thanks for the help so far.
 
I'm using f-prot, actually. And don't really mind no GUI, as the more I use apps in this manner, the more used to this environment I'll get. Thanks for the link though. :)
 
Hrmm, why am I getting "permission denied" when trying to install the .run ATi drivers, while logged into root?
 
So anyone got any idea about this? How can I get permission denied when su or on the root account? ugh.
 
eno-on said:
So anyone got any idea about this? How can I get permission denied when su or on the root account? ugh.

I really recommend picking up a Linux book. A lot of the questions you're asking indicate that you don't understand the basics of using Linux. It's not a bad thing, everyone has to start somewhere. I was at the same place you are now about 6 years ago. Pick up a book, or two, and read it. There's a lot you won't understand, but you'll learn as you go, and believe me, it's worth it. :D
 
andres9606t said:
I really recommend picking up a Linux book. A lot of the questions you're asking indicate that you don't understand the basics of using Linux. It's not a bad thing, everyone has to start somewhere. I was at the same place you are now about 6 years ago. Pick up a book, or two, and read it. There's a lot you won't understand, but you'll learn as you go, and believe me, it's worth it. :D
Would you like to suggest one? I don't need a linux book that has a chapter on how to play solitaire, and another chapter on how to use open office. That's what I've seen so far, and spending 40 to 50 bucks on one of those will kinda chap my hide.
 
Back
Top