Hi,
On 2010年09月17日 03:09, Montaseri wrote:
I have figured out how to read the filesystem type from the superblock....
Looks like superblock on ext2 and ext3 starts at offset 1024 for a
length of 1024. The ext2 magic code is 2 byte code (
|EXT2_SUPER_MAGIC| of value 0xEF53 ) .
So, I dd(1) 2048 bytes out
dd if=/dev/sda2 of=/tmp/2blocks bs=1024 count=2
I then use od(1) to and read 2 bytes from offset 1024 + 53 (some magic
offset where fs type is)=1080
od -x -j1080 -N2 /tmp/2blocks
7b5a
This is not oxEF53 which is the ext2, ext3 FS type. hence mount(1) can
not work with it.
Looks like this product (the one I am cloneing) vendor is playing FS
type change game. Ok, I'll change it to what I want and then change it
back.
So I rolled up a handy dandy perl script to change FS type on the
first superblock. And mount still fails.
Do you know if mount(1) checks all the superblocks to make sure they
are consistant?
I think so...
Steven.
I am almost there to crack this case.
Medi
On Wed, Sep 15, 2010 at 2:06 PM, Montaseri <montas...@gmail.com
<mailto:montas...@gmail.com>> wrote:
Hi Steven,
The posting was pointing out that on the clonee box (being cloned)
my OS sees a hda and sda while when I boot to clonezilla, both
flash and sata disks are being seen as sda and sdb.
Per your recommendation and usage of blkid(1) and sda (a flash
drive for /boot and / ) and sdb for other stuff.
# blkid -p /dev/sda
/dev/sda PTTYPE="dos"
# blkid -p /dev/sda1
# echo $?
2
# blkid -p -u filesystem /dev/sda2
# echo $?
2
So mount(1) fails and blkid(1) is failing....is there any options
for blkid to debug further...
Thanks
Medi
On Wed, Sep 15, 2010 at 1:30 PM, Steven Shiau <ste...@nchc.org.tw
<mailto:ste...@nchc.org.tw>> wrote:
On 2010年09月16日 05:22, Montaseri wrote:
Thanks Les and Andy,
I suppose I can ignore this type recognition if I can solve
my real problem, which lead me to this inquiry.
My real problem is that I would like to boot off of
clonezilla and proceed to mount the root filesystem (of the
box being cloned) to learn stuff from /etc such as IP of the
box and such. This is to automate the cloneing to an NFS
location in a proper folder, for ease of restore and such.
Currently when I clonezilla fdisk reports my root filesystem
type to be 83. When I try to mount this like
mount -t ext3 /dev/sda2 /mnt
I get the following error message
VFS: Can't find ext3 filesystem on dev sda2
mount: wrong fs type, bad option, bad superblock on /dev/sda2 ...
.....and bunch of other suggestions including see dmesg
Any suggestions...
>From the message you posted:
===================
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 17 136552 83 Linux
/dev/sda2 18 540 4200997+ 82 Linux swap
/dev/sda3 541 1846 10490445 83 Linux
<snap>
===================
/dev/sda2 is swap, did you mean you want to mount /dev/sda3
actually?
Or please run:
sudo /sbin/blkid
then post the results.
Steven.
Thanks
Medi
On Wed, Sep 15, 2010 at 12:09 PM, Andy Berquist
<aberqu...@adnexustx.com <mailto:aberqu...@adnexustx.com>> wrote:
That’s normal. There was a kernel update somewhere in the
2.6 branch that deprecated the ide driver in favor of
scsi emulation. I don’t know the exact details off the
top of my head.
Is it actually stopping you from doing something?
-Andy
*From:* Montaseri [mailto:montas...@gmail.com
<mailto:montas...@gmail.com>]
*Sent:* Wednesday, September 15, 2010 2:52 PM
*To:* clonezilla-live@lists.sourceforge.net
<mailto:clonezilla-live@lists.sourceforge.net>
*Subject:* Re: [Clonezilla-live] clonezilla live sees my
flash as sd
I have not received any reply on this inquiry. Can
someone send me an email indicating that it is being heard.
Thanks
Medi
On Mon, Sep 13, 2010 at 6:14 PM, Montaseri
<montas...@gmail.com <mailto:montas...@gmail.com>> wrote:
Hi,
Just installed and tried Clonezilla ver
clonezilla-live-20100721-lucid.iso and booted my Linux box.
I have two PATA partitions and a few more SCSI
partitions. When I run fdisk from my (native) linux box,
I see
[r...@meditest]# fdisk -l
Disk /dev/hda: 1048 MB, 1048190976 bytes
32 heads, 63 sectors/track, 1015 cylinders
Units = cylinders of 2016 * 512 = 1032192 bytes
Device Boot Start End Blocks Id
System
/dev/hda1 1 131 132047+ 83 Linux
/dev/hda2 132 1015 891072 83 Linux
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id
System
/dev/sda1 1 17 136552 83 Linux
/dev/sda2 18 540 4200997+ 82
Linux swap
/dev/sda3 541 1846 10490445 83 Linux
/dev/sda4 1847 30401 229368037+ 5
Extended
/dev/sda5 1847 3152 10490444+ 83 Linux
/dev/sda6 3153 4458 10490444+ 83 Linux
/dev/sda7 4459 8636 33559784+ 83 Linux
/dev/sda8 8637 9942 10490444+ 83 Linux
/dev/sda9 9943 11248 10490444+ 83 Linux
/dev/sda10 11249 12554 10490444+ 83 Linux
/dev/sda11 12555 30401 143356027 83 Linux
But when I boot off of clonezilla, and run fdisk -l, I get
(bunch of stuff skipped)
Device Boot Start End
Blocks Id System
/dev/sda1 1 131
nnnn 83 Linux
/dev/sda2 132 1015
nnnnn 83 Linux // nnnn is ok...just lazy
...skipping stuff....
/dev/sdb1
/dev/sdb2
Basically, Clonezilla is seeing both my flash disk and
sata disk as scsi disks?
Any ideas
Thanks
Medi
This message (including any attachments) may contain
confidential, proprietary, privileged and/or private
proprietary information. The information is intended
to be for the use of the individual or entity
designated above. If you are not the intended
recipient of this message, please notify the sender
immediately, and delete the message and any
attachments. Any disclosure, reproduction,
distribution or other use of this message or any
attachments by an individual or entity other than the
intended recipient is prohibited.
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Clonezilla-live mailing list
Clonezilla-live@lists.sourceforge.net
<mailto:Clonezilla-live@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/clonezilla-live
--
Steven Shiau<steven _at_ nchc org tw> <steven _at_ stevenshiau org>
National Center for High-performance Computing,
Taiwan.http://www.nchc.org.tw
Public Key Server PGP Key ID: 1024D/9762755A
Fingerprint: A2A1 08B7 C22C 3D06 34DB F4BC 08B3 E3D7 9762 755A
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Clonezilla-live mailing list
Clonezilla-live@lists.sourceforge.net
<mailto:Clonezilla-live@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/clonezilla-live
--
Steven Shiau<steven _at_ nchc org tw> <steven _at_ stevenshiau org>
National Center for High-performance Computing, Taiwan.
http://www.nchc.org.tw
Public Key Server PGP Key ID: 1024D/9762755A
Fingerprint: A2A1 08B7 C22C 3D06 34DB F4BC 08B3 E3D7 9762 755A
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Clonezilla-live mailing list
Clonezilla-live@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clonezilla-live