LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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?

Notices


Reply
  Search this Thread
Old 09-07-2004, 06:47 AM   #1
zz_s
LQ Newbie
 
Registered: Sep 2004
Posts: 5

Rep: Reputation: 0
Question USB_hard_disk_partition_unacessible


Hello
There are 2 partitions (fat32) in my USB hard-disk.
1st partiton (E:\) contains directory "hello"
2nd partition (F:\) contains directory "world"
as shown in Windows.

In Red Hat 9, I am able to mount it by adding the following line in file "/etc/fstab"

/dev/sda1 /mnt/usb1 vfat noauto,user,rw,exec 0 0

and access it by % mount /mnt/usb1
(solution based on thread post by "nalmo" Aug 13 post #7)

but what i see is ONLY directory "hello", which is in the 1st partition.
I have tried various methods to access the 2nd partition by altering the partition number to "sda2" and even the master/slave configuration to "sdb" like each of the following

/dev/sda2 /mnt/usb1a vfat noauto,user,rw,exec 0 0
/dev/sda3 /mnt/usb1a vfat noauto,user,rw,exec 0 0
/dev/sdb1 /mnt/usb1a vfat noauto,user,rw,exec 0 0

and access it by %mount /mnt/usb1a

The mount failed with prompt

mount: wrong fs type, bad option, bad superblock on /dev/sda2,
or too many mounted file systems
(aren't you trying to mount an extended partition,
instead of some logical partition inside?)

Can anyone help? Thanks in advance ....
 
Old 09-07-2004, 07:17 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
To see how the drive is partitioned log in as root and enter the command in a console window:
fdisk -l /dev/sda (that is a small L)

I assume that the drive was partition in windows. It is usual for windows to create an additional drive as a logical partition so your f:\ device ID is /dev/sda5. Device /dev/sda2 is the extended partition which in a nutshell is a container for logical partitions.

Last edited by michaelk; 09-07-2004 at 07:19 AM.
 
Old 09-07-2004, 07:31 AM   #3
db391
Member
 
Registered: Jun 2004
Location: Britain
Distribution: Slackware
Posts: 186

Rep: Reputation: 31
what is the output of 'fdisk -l /dev/sda' ???

cos me mate alan has a firewire drive and a usb stick

and in mandrake 9.2 live the firewire is /dev/sda1 and then the stick comes up as /dev/sda2 ????

very very weird indeed....
 
Old 09-09-2004, 12:41 AM   #4
zz_s
LQ Newbie
 
Registered: Sep 2004
Posts: 5

Original Poster
Rep: Reputation: 0
thanks to michaelk, db391.

sda5 does it all. Now i see my "world" dir. seems like 5 is the first logical partition number.

:-) :-) :-)
 
Old 09-09-2004, 10:56 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
You are correct a logical partitions ID are anything >=5
 
  


Reply



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



LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:50 AM.

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