-
Hard Drive Mounting
Hello Friends,
I have a seperate hard drive installed on my PC and is a 'slave'. Over my windows days, I downloaded heaps of MP3's and recently I switched to linux and can't seem to locate the drive. Yes it's FAT naturally. Would someone shed some light on the topic. Much Thanks.
Scatman
-
Im not exactly sure but I think you can just check your fstab file and see if it makes reference to an "hdb*"
-
what you need to do is edit your fstab, and add the line below
This is the device --- where to mount ---- filesystem ---- read/write ----- group and owner <<--not this line
/dev/hdb1 -------------- /mnt/windows --- auto ----------- defaults --------------- 0 0 <<--yeah,this line don't add the -----'s ( I put the ----'s just for spacing here.)
save the fstab file. (/etc/fstab just incase you didn't know where it was) after you do that, create a folder where your drive will be mounted to, just make sure it matches the fstab file. After that, open a prompt and type# mount /dev/hdb1 and it should mount
to the location you've specified in fstab.
That'll be $200 dollars..................Linux consultant fee, lol.
Enjoy your music
--PuRe
-
Hi scatman here is what you do
1. Login as root, open a command shell
2. Type fdisk -l
You will get a list of partitions, the fat partitions will be labeled as Win95 fat etc.
3. To mount this create a directory say
mkdir /D:
4. Say you found the partition as /dev/hdb4, to mount do
mount -t vfat /dev/hdb4 /D:
5. If you want this partition to be mounted every time you boot into linux
edit /etc/fstab, add line(tab separate each entry)
/dev/hdb4 /D: vfat defaults 0 0
6. Enjoy the mp3's :)
-
Wow! Thanks alot! Quick Question though: 'edit' is an unrecognized command. What's this about? I'm using the terminal and I am 'root'.
Scatman
-
that means there is no program installed called edit..
just use a nice editor like mcedit (looks and feels like the DOS one)
or a real man's editor like vi
-
if you're root try typing in the shell,
#nano -w /etc/fstab
Then CTRL + O to save, and CTRL + X to quit the nano editor.
If nano shouldn't be available, try pico... that's a similar editor.
Greetz,
-
use the program vi to edit your fstab.
1# cd /etc
2# vi fstab
3# make your changes as described above.
4# :w <<---saves your changes
5# :q <<---exits vi
You should really man vi, because it's a little tricky the first time you use it. But go ahead and use what ever text editor you feel comfortable with.
--PuRe
-
Guess everyone has his own editing touch :D
We were with three replying at the same time, lol :p