LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   mounting without knowing the filesystem (https://www.linuxquestions.org/questions/linux-software-2/mounting-without-knowing-the-filesystem-102686/)

mascon 10-11-2003 12:11 AM

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

jayakrishnan 10-11-2003 12:15 AM

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

ilikejam 10-11-2003 12:19 AM

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.


arunshivanandan 10-11-2003 01:11 AM

post the same thing in a single (and the most appropriate) forum only.

mascon 10-11-2003 11:05 PM

mount -t auto /dev/hdb /backup
doesn't work

fdisk /dev/hdb
doesnot give me the filesystem type

quatsch 10-11-2003 11:14 PM

what does
fdisk -l /dev/hdb
give you (notice the -l option; and do this as root)?

mascon 10-11-2003 11:27 PM

it gieves me detail about /dev/hdb
in which the filesystem it shows is linux

quatsch 10-11-2003 11:37 PM

there has to be a number before it says Linux in the column ID. What is the number?

mascon 10-12-2003 03:44 AM

it gives me 83

ionstorm 10-12-2003 05:10 AM

Type 83 is ext2.

Ion

wuck 10-12-2003 05:14 AM

Now try

# mount -t ext2 /dev/hdb1 /backup

mascon 10-13-2003 08:53 AM

doesn't work
it is a new filesystem. Let us say "newfs"
someone has modified the available existing filesystem(ext2 or ext3)

mascon 10-13-2003 09:23 AM

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

adz 10-13-2003 09:26 AM

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.

mascon 10-13-2003 09:32 AM

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.


All times are GMT -5. The time now is 07:15 PM.