LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-11-2003, 01:11 AM   #1
mascon
LQ Newbie
 
Registered: Oct 2003
Posts: 13

Rep: Reputation: 0
mounting without knowing the filesystem


i want to mount a harddisk which is primary slave and has linux installed on it
i donot know what filesystem it has
how do i mount it now

if i use this

mount -t ext3 /dev/hdb /backup

It doesnot work

please guide me
 
Old 10-11-2003, 01:15 AM   #2
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
try these step

1. fdisk /dev/hdb
2. press the p button it will show u what filesystem it is
3. press q to quit fdisk without saving

u can use the info got from the above step
 
Old 10-11-2003, 01:19 AM   #3
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Try this:

mount -t auto /dev/hdb /backup

if mount can read the filesystem, then it should work.

You may also want to try

mount -t auto /dev/hdb1 /backup - the partition numbers are needed for mount commands

You can list the available partitions with:

fdisk -l

Then try the above mount command with each of /dev/hdbX

Dave.


Last edited by ilikejam; 10-11-2003 at 01:22 AM.
 
Old 10-11-2003, 02:11 AM   #4
arunshivanandan
Member
 
Registered: May 2003
Location: Kerala,India
Distribution: RedHat,Mandrake,Debian
Posts: 643

Rep: Reputation: 30
post the same thing in a single (and the most appropriate) forum only.
 
Old 10-12-2003, 12:05 AM   #5
mascon
LQ Newbie
 
Registered: Oct 2003
Posts: 13

Original Poster
Rep: Reputation: 0
mount -t auto /dev/hdb /backup
doesn't work

fdisk /dev/hdb
doesnot give me the filesystem type
 
Old 10-12-2003, 12:14 AM   #6
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
what does
fdisk -l /dev/hdb
give you (notice the -l option; and do this as root)?
 
Old 10-12-2003, 12:27 AM   #7
mascon
LQ Newbie
 
Registered: Oct 2003
Posts: 13

Original Poster
Rep: Reputation: 0
it gieves me detail about /dev/hdb
in which the filesystem it shows is linux
 
Old 10-12-2003, 12:37 AM   #8
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
there has to be a number before it says Linux in the column ID. What is the number?
 
Old 10-12-2003, 04:44 AM   #9
mascon
LQ Newbie
 
Registered: Oct 2003
Posts: 13

Original Poster
Rep: Reputation: 0
it gives me 83
 
Old 10-12-2003, 06:10 AM   #10
ionstorm
Member
 
Registered: Jul 2003
Location: United Kingdom
Distribution: Slackware 8.0, 8.1, 9, 9.1 Crux 1.1,1.2
Posts: 80

Rep: Reputation: 15
Type 83 is ext2.

Ion
 
Old 10-12-2003, 06:14 AM   #11
wuck
Member
 
Registered: Sep 2003
Location: barneveld.nl
Distribution: Slackware
Posts: 170

Rep: Reputation: 30
Now try

# mount -t ext2 /dev/hdb1 /backup
 
Old 10-13-2003, 09:53 AM   #12
mascon
LQ Newbie
 
Registered: Oct 2003
Posts: 13

Original Poster
Rep: Reputation: 0
doesn't work
it is a new filesystem. Let us say "newfs"
someone has modified the available existing filesystem(ext2 or ext3)
 
Old 10-13-2003, 10:23 AM   #13
mascon
LQ Newbie
 
Registered: Oct 2003
Posts: 13

Original Poster
Rep: Reputation: 0
mount gives me

mount: wrong fs type, bad option, bad superblock on /dev/hdb9,
or too many mounted file systems


fidsk -l gives me

Disk /dev/ide/host0/bus0/target0/lun0/disc: 20.4 GB, 20409532416 bytes
255 heads, 63 sectors/track, 2481 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/ide/host0/bus0/target0/lun0/part1 * 1 638 5124703+ 7 HPFS/NTFS
/dev/ide/host0/bus0/target0/lun0/part2 639 2481 14803897+ f Win95 Ext'd (LBA)
/dev/ide/host0/bus0/target0/lun0/part5 639 893 2048256 b Win95 FAT32
/dev/ide/host0/bus0/target0/lun0/part6 894 1275 3068383+ b Win95 FAT32
/dev/ide/host0/bus0/target0/lun0/part7 1276 1815 4337518+ b Win95 FAT32
/dev/ide/host0/bus0/target0/lun0/part8 1816 2181 2939863+ 83 Linux
/dev/ide/host0/bus0/target0/lun0/part9 2182 2244 506016 82 Linux swap
/dev/ide/host0/bus0/target0/lun0/part10 2245 2481 1903671 83 Linux

Disk /dev/ide/host0/bus0/target1/lun0/disc: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/ide/host0/bus0/target1/lun0/part1 * 1 3 24066 83 Linux
/dev/ide/host0/bus0/target1/lun0/part2 4 2434 19527007+ 5 Extended
/dev/ide/host0/bus0/target1/lun0/part5 4 93 722893+ 83 Linux
/dev/ide/host0/bus0/target1/lun0/part6 94 157 514048+ 83 Linux
/dev/ide/host0/bus0/target1/lun0/part7 158 2376 17824086 83 Linux
/dev/ide/host0/bus0/target1/lun0/part8 2377 2408 257008+ 82 Linux swap
/dev/ide/host0/bus0/target1/lun0/part9 2409 2434 208813+ 83 Linux
 
Old 10-13-2003, 10:26 AM   #14
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
What error does it give you when you try to mount it? Copy and paste the exact output here.

You can try reiserfs. fdisk will give an 83 code for that aswell. In other words, try mount -t reiserfs /dev/hdb1 /backup. If that doesn't work then try a whole bunch of others like: jfs, ufs (may need some extra parameters), vfat, ntfs. If you can't find one that works try running fsck on it. Try this last as if you pick the wrong fs type you could permanently bugger any data on the drive.
 
Old 10-13-2003, 10:32 AM   #15
mascon
LQ Newbie
 
Registered: Oct 2003
Posts: 13

Original Poster
Rep: Reputation: 0
doesn't work

the exact output of mount

mount: wrong fs type, bad option, bad superblock on /dev/hdb9,
or too many mounted file systems

It is a newfs. modified one. how to mount this now.
 
  


Reply


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
help:about mounting filesystem ms_sachem Fedora 1 06-13-2005 07:34 AM
Mounting a filesystem codebox.nl Linux - Software 7 10-21-2004 07:18 AM
Mounting filesystem using C program laikos Programming 3 09-30-2004 08:47 PM
re: filesystem for mounting fd0 ergo_sum Linux - Newbie 4 11-08-2003 05:08 PM
Mounting HDD vs. Mounting Filesystem snailophone Linux - Hardware 4 08-12-2003 12:00 PM


All times are GMT -5. The time now is 05:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration