Avatar of gothicbloody
gothicbloodyFlag for Libya

asked on 

mount problem

hi all
i'm trying 2 mount fs by live cd 2 recover my friend linux box root password
,,,,,
fsdisk -l
/dev/hda1   *           1          35       16506   83  Linux
/dev/hda2              36       13328     6280942+   5  Extended
/dev/hda5              36        2255     1048918+  82  Linux swap / Solaris
/dev/hda6            2256        3773      717223+  83  Linux
/dev/hda7            3774        4857      512158+  83  Linux
/dev/hda8            4858       12894     3797451   83  Linux
/dev/hda9           12895       13328      205033+  83  Linux

so now try mount linux part
>mount /dev/hda2 /tmp/hd
SQUASHFS error: Can't find a SQUASHFS  superblocks on hda2
FAT : bogus number of reserved sectors
mount : you must specify the filesystem type

what was that error ? filesystem ? is it Ext2 ?

M.Ayad
Linux

Avatar of undefined
Last Comment
gothicbloody
Avatar of nedvis
nedvis
Flag of United States of America image

You cannot mount /dev/hda2  since it's only placeholder for other partitions within
/dev/hda2 as an EXTENDED PARTITION.
You should be able to mount other partition though.
Firts thing you should know EXACTLY is what kind of
file systems they are ( ext2, ext3, reiserfs, XFS and such )
Avatar of gothicbloody
gothicbloody
Flag of Libya image

ASKER

how i can determine that file system ?
Avatar of nedvis
nedvis
Flag of United States of America image

You can't?
 Ask your friend if he remeber what was files system chosen during Linux setup.
 What Linux distribution is installed on that PC? It might help us to determine
 file system used.
Avatar of gothicbloody
gothicbloody
Flag of Libya image

ASKER

i can't reach to my friend 2 ask him but  it is Redhat  and as default Ext2 is file system right !

M.Ayad
Avatar of nedvis
nedvis
Flag of United States of America image

You may wish to play a little bit with guessing what file system type(s) are partitions you want to mount.

crete firs mount point within /mnt  directory
for example :
cd /mnt
mkdir rescue
mount /dev/hda3  /mnt/rescue  ext3  defaults  0 0
or
mount /dev/hda3 /mnt/rescue  ext2  defaults 0 0
or
mount /dev/hda3  /mnt/rescue  reiserfs defaults 0 0

and so on...

Avatar of nedvis
nedvis
Flag of United States of America image

"...Redhat  and as default Ext2 is file system right !"
Correct , but it could be ext3 too

Avatar of gothicbloody
gothicbloody
Flag of Libya image

ASKER

ok from fdisk list which directory linux installed or to be more specific the redhat files ?

 
Avatar of nedvis
nedvis
Flag of United States of America image

Now that's gonna be the tricky part.
My guess is that /dev/hda1 is most likely  /boot prtition and you don't need that one.
You acctually need only read/write access  to /etc  directory which is usually within  /
  (system root directory) of the Linux file system.
It is most likely /dev/hda8 according to the number of sectors alocated to that partition.
/dev/hda6 looks like  /tmp
and
/dev/hda7 might be /var  partition
but also largest one
/dev/hda8 may be  /home   partiton

Anyway you have to examine all partitons - one at time!


 
Avatar of gothicbloody
gothicbloody
Flag of Libya image

ASKER

sysresccd mode # mount -t ext2 /dev/hda8 /mode
mount: wrong fs type, bad option, bad superblock on /dev/hda8,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

sysresccd mode # mount -t ext3 /dev/hda8 /mode
mount: wrong fs type, bad option, bad superblock on /dev/hda8,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

sysresccd mode # mount -t reiserfs /dev/hda8 /mode
mount: wrong fs type, bad option, bad superblock on /dev/hda8,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

and all partitions the same error
Avatar of nedvis
nedvis
Flag of United States of America image

Can you post your    /etc/fstab   file   contens here :
Navigate to your Live CD  /etc direcory and type :
cat  /etc/fstab
copy and paste its contens .

You have to edit that file in order to create MOUNT POINT  where you're going
to mount partitions . If there's no mount point defined your mount  will fail.
Also copy and paste  dmesg | tail log here.

Avatar of nedvis
nedvis
Flag of United States of America image

From your system log outputs I can see you are using SystemRescueCd.
If so, try then to use either GParted (Partition Magic clone for Linux)
or GNU Parted which is the best text tool for editing your disk partitions under linux
to retreive exact informations on what file system types are all those hard-disk
partitions.
Take notes on paper and exit programs . Be very carefull when using partition editors
DO NOT MAKE CHANGES - JUST READ DISK PARTITIONS INFO !!!.
Avatar of gothicbloody
gothicbloody
Flag of Libya image

ASKER

tmpfs           /                               tmpfs   defaults        0 0
tmpfs           /lib/firmware                   tmpfs   defaults        0 0
tmpfs           /usr/portage                    tmpfs   defaults        0 0
/dev/fd0        /mnt/floppy                     auto    noauto          0 0

yes i'm using SystemRescue CD
but GParted not working it's need xwindows

Avatar of gothicbloody
gothicbloody
Flag of Libya image

ASKER

thnx nedvis
i think i destroy my system i used mkfs command and that damage file system

M.ayad
ASKER CERTIFIED SOLUTION
Avatar of nedvis
nedvis
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of nedvis
nedvis
Flag of United States of America image

I,m sorry to hear that.
Anyway, You shoud still be able to rescue files from that hard-disk.
But this time,please, use Knoppix Live CD which will automatically mount all
readable partitions so you can see and rescue personal files to , for example USB flash drive .
Or you can use Gparted Live CD and copy entire partitions to other locations.
If you , as you said issued mkfs command it is executed only on one partition,
so most likely other partitions are intact and in good shape.

Avatar of gothicbloody
gothicbloody
Flag of Libya image

ASKER

thnx i'll try
Linux
Linux

Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.

71K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo