Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 06-14-2005, 04:02 AM   #1
LQ Newbie
Registered: Jun 2005
Location: Malaysia
Posts: 2

Rep: Reputation: 0
Question how to detect a hard disc in linux

i have installed linux susse 9.0 on a 20gb hdd and i have a 40gb hdd with a fat32 file os on it just full of mp3s and video clip.the problem is hoe do i make the hdd available on linux...i tried but linux tried to partition it again..what should i do
Old 06-14-2005, 04:50 AM   #2
Senior Member
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
"dmesg" and "fdisk -l" are your friends for finding out the drive's name. It'll probalby come out as something like /dev/hdb1

Then you just need a mount-point. Create a directory in /mnt such as "fat", and then run:

mount -t fat /dev/hdb1 /mnt/fat

You'll need to be root to do this until you set the /etc/fstab entry to allow normal users to mount it.
Old 06-21-2005, 09:26 PM   #3
LQ Newbie
Registered: Jun 2005
Location: Malaysia
Posts: 2

Original Poster
Rep: Reputation: 0
where do i create a directory?
Old 06-22-2005, 04:34 AM   #4
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Testing"
Posts: 6,121

Rep: Reputation: 418Reputation: 418Reputation: 418Reputation: 418Reputation: 418
where do i create a directory?
You need to be root, then create the directory where your FAT disk will be mounted, then mount the disk, then you can access the files on it.

Try this code:

su -
give the root password
md /mnt/fat
mount -t fat /dev/hdb1 /mnt/fat
cd /mnt/fat

If you can now see your files, all is well and you should do as oneandoneis2 suggests and create an entry in /etc/fstab so normal users can access the disk. The entry will probably look like this:

/dev/hda1 /mnt/fat fat iocharset=iso8859-15,codepage=850,umask=0 0 0

When you reboot, the disk will be mounted automatically for you, and you can access it as a normal user.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard Disc Formatting Types and usage- Linux smudge|lala Linux - Hardware 9 11-08-2006 12:06 AM
IBM server 6i raid(linux 9) does not recognize hard disc biju Linux - Hardware 3 05-25-2006 04:22 PM
Installing Linux on second Hard Disc maldini1010 Linux - Hardware 11 03-14-2005 02:03 PM
Why cant linux detect my hard drive? liquid486 Linux - Newbie 5 01-24-2005 07:47 PM
windows hard disc from linux.. kiru Linux - Newbie 5 04-11-2003 08:31 AM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:02 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration