LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-04-2006, 06:15 PM   #1
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Rep: Reputation: 30
mounting other hard drive


hi everyone
I have 3 hard drive
1 80 gig for windows, i supose linux reads it as hda
2 200 gig for documents, with 2 partitions hdb
3 20 gig for slackware hdd

I'd like to mount my 200g drive, how can i do this?
I try to look up at the /dev directory and i find a lot of hdb(1-20). I don't know which one is which
Thank You
 
Old 01-04-2006, 06:18 PM   #2
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
type, as root

Code:
fdisk -l
that prints all the partitions of all your disks.

Also you can type, as root too

Code:
cfdisk /dev/hd?
to manipulate the given disk hd?

and you can see the partition numbers and mount them wherever you want

Last edited by raska; 01-04-2006 at 06:24 PM.
 
Old 01-04-2006, 06:25 PM   #3
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Try:
Code:
mount -t vfat /dev/hdb1 /mnt/doc
Change '/mnt/doc' to what ever you want. Make sure the directory exists. And the vfat is only an assumption

Change the vfat to whatever your file system is. (Remember, linux can't write to a NTFS partition, only read, at least not without modification)

Try
Code:
man mount
to get the different options

Last edited by cwwilson721; 01-04-2006 at 06:26 PM.
 
Old 01-04-2006, 07:05 PM   #4
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Original Poster
Rep: Reputation: 30
i tried the fdisk -l
i can mount the windows drive
i can mount one of the partition from second drive
but when i tried to mount the second partition from the second drive it says you must specify the filesystem type. The command i try is mount /dev/hdb2 /mnt/d



when i fdisk -l, it shows
hdb1 , i can mount w95 fat32(LBA)
hdb2, can not mount w95 Ext'd (LBA)
hdb5, can not mount w95 fat32

when i tried mount vfat /dev/hdb2 /mnt/d it gives me a detail about mount command

Thank You
 
Old 01-04-2006, 07:11 PM   #5
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Code:
mount -t vfat ....
 
Old 01-04-2006, 07:19 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
hdb2 is an extended partition and can not be mounted. In a nutshell an extended partition is a container for logical partitions which is hdb5. Post the exact errors when trying to mount hdb5

When drives first started appearing in PCs there was a limitation of 4 partitions.
It soon became apparent that with larger capacity drives and users wanting to install multiple OSs that 4 was inadequate so the extended / logical partitions were developed. The original 4 are now called primary partitions and have an ID of 1-4. Any partition with an ID>4 is a logical partition.

Lots more info can be found by googling...

Last edited by michaelk; 01-04-2006 at 07:21 PM.
 
Old 01-04-2006, 07:32 PM   #7
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Quote:
Originally Posted by michaelk
hdb2 is an extended partition and can not be mounted. In a nutshell an extended partition is a container for logical partitions which is hdb5. Post the exact errors when trying to mount hdb5

When drives first started appearing in PCs there was a limitation of 4 partitions.
It soon became apparent that with larger capacity drives and users wanting to install multiple OSs that 4 was inadequate so the extended / logical partitions were developed. The original 4 are now called primary partitions and have an ID of 1-4. Any partition with an ID>4 is a logical partition.

Lots more info can be found by googling...
Um...2 is > 4?
hdb2 is part 2, drive 1
hda1 is part 1, drive 0
So may not be extended/logical. Depends on original setup w/windows. Could be a primary

Last edited by cwwilson721; 01-04-2006 at 07:33 PM.
 
Old 01-04-2006, 07:38 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
A primary partition can be defined as an extended partition. I skipped that part.

http://www.faqs.org/docs/linux_admin/x1139.html

Quote:
hdb2, can not mount w95 Ext'd (LBA)
The Ext'd means this is an extended partition.

Last edited by michaelk; 01-04-2006 at 07:46 PM.
 
Old 01-04-2006, 07:48 PM   #9
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Original Poster
Rep: Reputation: 30
ok, i get that extended hdb2 drive can not be mounted

when i use mount -t vfat /dev/hdb5 /mnt/d
mount: wrong fs type, bad option, bad superblock on /dev/hdb5,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
is there any way to get arround this?
Thank you
 
Old 01-04-2006, 07:58 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Look at the output of dmesg command
dmesg | tail

Post any errors that reference mounting hdb5

Last edited by michaelk; 01-04-2006 at 07:59 PM.
 
Old 01-04-2006, 08:04 PM   #11
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Original Poster
Rep: Reputation: 30
this is what i got after is use dmesg | tail

VFS: Can't find a valid FAT filesystem on dev 03:42.
FAT: bogus logical sector size 0
VFS: Can't find a valid FAT filesystem on dev 03:42.
UMSDOS: msdos_read_super failed, mount aborted.
FAT: bogus logical sector size 0
VFS: Can't find a valid FAT filesystem on dev 03:42.
spurious 8259A interrupt: IRQ7.
VFS: Can't find a valid FAT filesystem on dev 03:45.
VFS: Can't find a valid FAT filesystem on dev 03:45.
VFS: Can't find a valid FAT filesystem on dev 03:45.
 
Old 01-04-2006, 08:07 PM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
I assume that windows does not have any problem accessing this drive?

Last edited by michaelk; 01-04-2006 at 08:09 PM.
 
Old 01-04-2006, 08:15 PM   #13
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Original Poster
Rep: Reputation: 30
in my xp
i have c , d, f
c and d i can mount but the f not
c is hda, d hdb1 , f hdb?
Is it because it is 150G ?
 
Old 01-04-2006, 08:31 PM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Your f drive is hdb5. So does this drive work in windows correctly?

150GB should not be a problem.

What windows OS are you running?
How was this partition formated? Windows XP can not create or format a partition >32GB?

Last edited by michaelk; 01-04-2006 at 08:34 PM.
 
Old 01-04-2006, 08:34 PM   #15
lilili
Member
 
Registered: Jan 2006
Location: SantaBarbara
Distribution: Slackware 12.1
Posts: 196

Original Poster
Rep: Reputation: 30
in windows everything is good
i used the western digital disk tool to create the partition for this drive
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
mounting hard drive thug_poet22 Linux - Hardware 14 01-04-2005 02:11 AM
Mounting a Hard Drive Bill413 Linux - Newbie 6 11-15-2004 05:19 PM
Mounting a Hard Drive Garoth Linux - Software 9 11-11-2004 08:47 PM
mounting a second hard drive evilRhino Linux - General 2 10-17-2002 01:22 AM
mounting a hard drive n_ick2000 Linux - Newbie 5 04-10-2002 04:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:58 PM.

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