Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
09-05-2005, 02:11 PM
|
#1
|
Member
Registered: Jun 2005
Location: UK
Distribution: Debian
Posts: 76
Rep:
|
how to mount a external hard drive in ext3 format?
what command shall I use?
thanks.
|
|
|
09-05-2005, 02:19 PM
|
#2
|
Senior Member
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775
Rep:
|
So the external hard drive is already formatted as ext3?
I believe the command would be something like
mount -t ext3 /dev/sda1 /media/harddrive
That would be assuming, of course, that you'd already created a directory in media called "harddrive" and that the device was plugged in as "sda1" (it could be sda2 or sdb1 or sde1, etc.).
Debian doesn't automount it?
|
|
|
09-05-2005, 02:26 PM
|
#3
|
Member
Registered: Jun 2005
Location: UK
Distribution: Debian
Posts: 76
Original Poster
Rep:
|
I have tried this but it didn't work there is a message says can't find ext3 filesystem on the device but I indeed formatted a ext3 filesystem on the hard drive.
|
|
|
09-05-2005, 02:31 PM
|
#4
|
Senior Member
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775
Rep:
|
What happens when you type fdisk -l in the terminal?
|
|
|
09-05-2005, 02:39 PM
|
#5
|
Member
Registered: Jun 2005
Location: UK
Distribution: Debian
Posts: 76
Original Poster
Rep:
|
nothing appears
|
|
|
09-05-2005, 02:55 PM
|
#6
|
Senior Member
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775
Rep:
|
Quote:
Originally posted by kuertensun
nothing appears
|
Nothing at all, or just the external hard drive?
|
|
|
09-05-2005, 02:58 PM
|
#7
|
Member
Registered: Jun 2005
Location: UK
Distribution: Debian
Posts: 76
Original Poster
Rep:
|
nothing at all just another command prompt
|
|
|
09-05-2005, 03:48 PM
|
#8
|
Member
Registered: Apr 2005
Location: Wolverhampton, England
Distribution: Ubuntu
Posts: 334
Rep:
|
are you running the fdisk -l command as root?
|
|
|
09-05-2005, 03:53 PM
|
#9
|
Member
Registered: Jun 2005
Location: UK
Distribution: Debian
Posts: 76
Original Poster
Rep:
|
yes exactly.
|
|
|
09-05-2005, 07:02 PM
|
#10
|
Senior Member
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775
Rep:
|
Quote:
Originally posted by kuertensun
nothing at all just another command prompt
|
Something's seriously wrong, then, not just with mounting your external hard drive. Your regular Linux partition should show up.
For example, when I type it in, I get this:
Code:
sudo fdisk -l
Password:
Disk /dev/hda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1911 15350076 7 HPFS/NTFS
/dev/hda2 1912 18494 133202947+ f W95 Ext'd (LBA)
/dev/hda3 18495 19457 7735297+ 83 Linux
/dev/hda5 1912 14763 103233658+ b W95 FAT32
/dev/hda6 * 14764 16434 13422276 83 Linux
/dev/hda7 18363 18494 1060258+ 82 Linux swap / Solaris
/dev/hda8 16435 18362 15486628+ 83 Linux
Partition table entries are not in disk order
/dev/hda6 is the Linux partition I'm currently using. The fdisk -l command lists all the partitions and devices, mounted and unmounted.
|
|
|
09-06-2005, 02:09 AM
|
#11
|
Senior Member
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020
Rep:
|
Hi,
absolutely don't have any idea that why "fdisk -l" is not showing anything.
since you don't know the mounting procedure so i'm just forwarding a link for that..........its really a good one.
here
regards
|
|
|
09-06-2005, 08:36 AM
|
#12
|
Member
Registered: Jun 2005
Location: UK
Distribution: Debian
Posts: 76
Original Poster
Rep:
|
thanks, i will read about it.
|
|
|
09-06-2005, 06:51 PM
|
#13
|
LQ Newbie
Registered: Aug 2005
Location: Belgium
Distribution: Debian (sarge)
Posts: 13
Rep:
|
the way i mounted was
first check the hard disk
code:
su
fdisk /dev/hdb <-- if it is your second harddisk
Code:
mke2fs -j /dev/hdb1 or
mkfs.ext3 -j /dev/hdb1
so now it is called hdb1 and you can mount it
Code:
mount /dev/hdb1 /mnt/hdb <-- be sure that dir exists
|
|
|
All times are GMT -5. The time now is 05:08 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|