LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-11-2007, 05:49 AM   #1
Tortanick
Member
 
Registered: Jul 2006
Distribution: Debian Testing
Posts: 299

Rep: Reputation: 30
How to get the filesystem for an unmounted drive?


the mount command requests that you specify the filesystem, but if you don't know it how would you go about finding it out?
 
Old 03-11-2007, 05:52 AM   #2
justsimran
Member
 
Registered: Mar 2007
Location: Aus
Distribution: RHEL-4,5,UBUNTU,SUSE,FEDORA-6,7
Posts: 109

Rep: Reputation: 15
r u sure the partion u r mounting to is format or not?

do u make this mouting partition as ext3?

if you dnt knw my answers can you please specify what command you r using and what you r interested in doing ,,

because normally this error comes when you havent formatted the specific partion into ext3 or swap,,,
 
Old 03-11-2007, 05:56 AM   #3
Glennzo
Member
 
Registered: May 2003
Location: Salem, Mass USA
Distribution: Fedora
Posts: 394

Rep: Reputation: 52
Quote:
Originally Posted by Tortanick
the mount command requests that you specify the filesystem, but if you don't know it how would you go about finding it out?
One way would be to issue the command fdisk -l /dev/hda (assuming you are working with hda). That will list all partitions on the disk with file system type. Here's the output from my computer:

[glenn@dad ~]$ sudo fdisk -l /dev/hda
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 2550 20482843+ 7 HPFS/NTFS
/dev/hda2 2551 19457 135805477+ 5 Extended
/dev/hda5 2551 5100 20482843+ 83 Linux
/dev/hda6 5101 7650 20482843+ 83 Linux
/dev/hda7 7651 10200 20482843+ 83 Linux
/dev/hda8 10201 12750 20482843+ 83 Linux
/dev/hda9 12751 15300 20482843+ 83 Linux
/dev/hda10 15301 17850 20482843+ 83 Linux
/dev/hda11 17851 19457 12908196 83 Linux

You may need to use /sbin/fdisk -l /dev/hda depending on your path settings.
 
Old 03-11-2007, 06:05 AM   #4
Tortanick
Member
 
Registered: Jul 2006
Distribution: Debian Testing
Posts: 299

Original Poster
Rep: Reputation: 30
justmran, I can mount the partitions fine, I just want to know how to do this encase I ever am asked to take a live cd and rescue someone's data. I know many live cds will set it up for me, but I'd feel better if I knew how to do it manually.

Glennzo, that worked fine for hda, but it didn't work on my USB stick, is there any way that will work on anything?

Last edited by Tortanick; 03-11-2007 at 06:09 AM.
 
Old 03-11-2007, 06:15 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,129

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Don't rely on "fdisk -l" - purely indicative. Not worth spit.
Use "file -s /dev/???"
 
Old 03-11-2007, 07:06 AM   #6
Tortanick
Member
 
Registered: Jul 2006
Distribution: Debian Testing
Posts: 299

Original Poster
Rep: Reputation: 30
thanks syg00, that was exactly what I'm looking for but it only works for primary partitions

Last edited by Tortanick; 03-11-2007 at 07:22 AM.
 
Old 03-11-2007, 08:37 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
hmmmm.....file -s works on my system for some logical partitions and not others
??????
 
Old 03-11-2007, 09:03 AM   #8
Tortanick
Member
 
Registered: Jul 2006
Distribution: Debian Testing
Posts: 299

Original Poster
Rep: Reputation: 30
better than mine, it just says their boot sectors but dosn't mention the FS
 
Old 03-12-2007, 06:20 AM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,129

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
I predominantly use ext[2|3] - works fine for me.
NTFS shows up with a boot record, but has the eyecatcher.

Sorry, never needed anything else, so never gone looking.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB Pen Drive / Flash Drive Unmounted but the power is there teluguswan Linux - Hardware 11 10-04-2008 03:36 PM
moved files to unmounted drive, cannot find now mrelectron Linux - Software 2 11-13-2006 06:11 PM
playing DVD, CD and mounted & unmounted drive Q. brjoon1021 Linux - Newbie 0 07-25-2006 09:51 AM
Root FIlesystem not cleanly unmounted bouke Fedora 2 08-03-2004 01:24 PM
Broken filesystem on cig@r drive allelopath Linux - Hardware 1 07-18-2004 03:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:34 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