Re: hibernation solution

2001-07-06 Thread David Chien

Date: Fri, 6 Jul 2001 11:24:44 -0700 (PDT)
From: David Chien <[EMAIL PROTECTED]>
Subject: Re: hibernation solution

another person tested the location of the hibernation partition under Linux and
found this:



Date: Mon, 28 May 2001 10:03:39 +0200
From: Christian Gennerat <[EMAIL PROTECTED]>
Subject: Localisation of the hibernation area (IBM 20 G)

I wanted an  hibernation partition with the minimal size on a Libretto 110
1) Create a partition about [8 Gb - 200 Mb ; 8 Gb + 100 Mb],
   then center the partition around the hibernation area
2) Write all zero on it "dd if=/dev/zero of=/dev/hda10 bs=1024 count=30"
3) Run some applications
4) Hibernate the Libretto "apm -s"
5) Restart the Libretto
6) Check with the following shell
#!/bin/sh
dd if=/dev/zero of=zero63 bs=1024 count=63
cyl=0
while [ $cyl -le 88326 ]
do
xcyl=`printf "%05x" $cyl`
cp -a zero63 cyl
dd if=/dev/hda10 bs=1024 skip=$cyl of=cyl count=63 &>/dev/null
cmp -s zero63 cyl && echo "$xcyl === $cyl"
cmp -s zero63 cyl || echo "$xcyl ###"
let "cyl = $cyl+63"
done

And the result with IBM-DJSA-220 is the partition defined as:

fdisk -l /dev/hda
Disque /dev/hda : 255 têtes, 63 secteurs, 2432 cylindres
Unités = cylindres sur 16065 * 512 octets
..
/dev/hda10 1017  1027 88326   a0  Hibernation Thinkpad IBM

The hibernation area is the center portion of the partition:
0x03e80-0x14680 ### 16000-83584 -> 67584 k
The rest of the partition (the first 16000k and the last 2800k)
can be used to store confidential cyphered raw data,
unreadable via ftp, nfs, samba.



=
adorable toshiba libretto
The latest news and information for the Toshiba Libretto owner.
http://www.silverace.com/libretto/

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/




**
http://libretto.basiclink.com - Libretto mailing list
http://libretto.basiclink.com/archive - Archives
http://www.picante.com/~gtaylor/portable/faq.html - FAQ 
 ---UNSUBSCRIBE---
mailto:[EMAIL PROTECTED]?subject=cmd:unsubscribe 
UNSUBSCRIBE DIGEST--
Use above but add DIGEST to the subject line...   
**




Re: hibernation solution

2001-07-05 Thread Lawrence Young

Date: Thu, 5 Jul 2001 15:34:24 -0400
From: "Lawrence Young" <[EMAIL PROTECTED]>
Subject: Re: hibernation solution

Here is my simple solution:

(1) attach the HDD to Lib and run FDISK to allocate the primary partition to
the maximum it can handle.

(2) attach the HDD to desktop machine with Win2K and create a dummy
partition of size 150MB right after the first partition created by Lib. This
is the space for hibernation data. I figure 150MB should be enough.

(3) Create and format a third partition from Win2K right after the dummy
partition.

I ran Win2K on my L100 so there is no problem seen the extended partition.

Lawrence

- Original Message -
From: "mne" <[EMAIL PROTECTED]>
To: "Libretto" <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 2:28 PM
Subject: hibernation solution


> Date: Thu, 05 Jul 2001 11:21:14 -0400
> From: mne <[EMAIL PROTECTED]>
> Subject: hibernation solution
>
> > Date: Thu, 5 Jul 2001 00:27:50 -0400 (Eastern Daylight Time)
> > From: Michael J Miller <[EMAIL PROTECTED]>
> > Subject: Linux and hibernation
> 
> > 3) Hibernation appears to cross the 1024 cylinder boundary.
> 
>
> > 3) My theory was that putting my /usr partition over the 1024 cylinder
> > boundary would keep it safe from hibernation but (after hibernating)
> and
> > then booting Linux I get the messages:
> >   "/usr contains a file system with errors, check forced", and
> >   "illegal triply indirect block found while reading bad blocks
> inode".
> > So my theory was clearly wrong, but what do I replace it with?  In
> > particular, where can I safely start my /usr partition?
> >
> > Mike Miller
>
> Mike,
> Here's great info for your hibernation issue.  This should take care of
> it.
> taken from:  http://ta.twi.tudelft.nl/DV/Staff/Lemmens/libretto70ct.html
>
> Get the hibernation mode working on the larger harddisk
>
> The only thing that caused me a real headache was the hibernation mode
> that uses a part on the harddisk to store the memory while the Libretto
> was
> switched off. If this part lays somewhere in the middle of a Linux
> partition the latter will be partly or wholly destroyed after one
> hibernation 
>
> In the original disk simply the last 18 cylinders were reserved for
> hibernation :
>
> raw size of 1.6 GB disk :788/64/63 (C/H/S), Linux usable size :770/64/63
> (C/H/S)
>
> However, with this new disk things were much more complicated as the
> Libretto BIOS - just like many older PCs - can't recognize disks larger
> than
> 8.4 GB. After some disasters (a trashed second partition and a trashed
> swap space !) I found out that hibernation takes place in the first
> sectors
> AFTER the 8.4 GB.
>
> To put things absolutely clear: it is NOT at the end of the 10 GB and it
> is also NOT just BEFORE the end of the 8.4 GB.
>
> After finding this out I decided upon the following partitioning scheme
> that already works flawlessly for some time without causing any damage
> to the
> Linux partitions after several hibernations and fscks / memory checks :
>
> Layout of the 10 GB disk : 1222 cylinders, 255 heads, 63 sectors
>
> My partitioning scheme :
>
>  Linux partition :1 -  192 (1.5 GB)
>  Work partition  :  193 - 1015 (6.5 GB)
>  Swap partition  : 1016 - 1023 ( 64 MB)
>  Hibernation : 1024 - 1929 ( 48 MB) (can be smaller : only need
> 32 MB)
>  Third partition : 1030 - 1222 (1.5 GB)
>
> Fdisk reports the following :
>
>  Disk /dev/hda: 255 heads, 63 sectors, 1222 cylinders
>  Units = cylinders of 16065 * 512 bytes
>
> Device Boot Start End  Blocks  Id System
>  /dev/hda1  *  1  192 1542208+ 83 Linux native
>  /dev/hda2   193 1015 6610747+ 83 Linux native
>  /dev/hda3  1016 1023 6426083 Linux native
>  /dev/hda4  1024 1222 1598467+  5 Extended
>  /dev/hda5  1024 1029 48163+   70 DiskSecure Multi-Boot
>  /dev/hda6  1030 1222 1550241  83 Linux native
>
>
>
>
> **
> http://libretto.basiclink.com - Libretto mailing list
> http://libretto.basiclink.com/archive - Archives
> http://www.picante.com/~gtaylor/portable/faq.html - FAQ
>  ---UNSUBSCRIBE---
> mailto:[EMAIL PROTECTED]?subject=cmd:unsubscribe
> UNSUBSCRIBE DIGEST--
> Use above but add DIGEST to the subject line...
>
> **
>




**
http://libretto.basiclink.com - Libretto mailing list
http://libretto.basiclink.com/archive - Archives
http://www.picante.com/~gtaylor/portable/faq.html - FAQ 
 ---UNSUBSCRIBE---
mailto:[EMAIL PROTECTED]?subject=cmd:unsubscribe 
UNSUBSCRIBE DIGEST--
Use above but add DIGEST to the subject line...   
**




hibernation solution

2001-07-05 Thread mne

Date: Thu, 05 Jul 2001 11:21:14 -0400
From: mne <[EMAIL PROTECTED]>
Subject: hibernation solution

> Date: Thu, 5 Jul 2001 00:27:50 -0400 (Eastern Daylight Time)
> From: Michael J Miller <[EMAIL PROTECTED]>
> Subject: Linux and hibernation

> 3) Hibernation appears to cross the 1024 cylinder boundary.


> 3) My theory was that putting my /usr partition over the 1024 cylinder
> boundary would keep it safe from hibernation but (after hibernating) and
> then booting Linux I get the messages:
>   "/usr contains a file system with errors, check forced", and
>   "illegal triply indirect block found while reading bad blocks inode".
> So my theory was clearly wrong, but what do I replace it with?  In
> particular, where can I safely start my /usr partition?
> 
> Mike Miller

Mike,
Here's great info for your hibernation issue.  This should take care of
it.
taken from:  http://ta.twi.tudelft.nl/DV/Staff/Lemmens/libretto70ct.html

Get the hibernation mode working on the larger harddisk

The only thing that caused me a real headache was the hibernation mode
that uses a part on the harddisk to store the memory while the Libretto
was
switched off. If this part lays somewhere in the middle of a Linux
partition the latter will be partly or wholly destroyed after one
hibernation  

In the original disk simply the last 18 cylinders were reserved for
hibernation : 

raw size of 1.6 GB disk :788/64/63 (C/H/S), Linux usable size :770/64/63
(C/H/S) 

However, with this new disk things were much more complicated as the
Libretto BIOS - just like many older PCs - can't recognize disks larger
than
8.4 GB. After some disasters (a trashed second partition and a trashed
swap space !) I found out that hibernation takes place in the first
sectors
AFTER the 8.4 GB. 

To put things absolutely clear: it is NOT at the end of the 10 GB and it
is also NOT just BEFORE the end of the 8.4 GB. 

After finding this out I decided upon the following partitioning scheme
that already works flawlessly for some time without causing any damage
to the
Linux partitions after several hibernations and fscks / memory checks : 

Layout of the 10 GB disk : 1222 cylinders, 255 heads, 63 sectors 

My partitioning scheme : 

 Linux partition :1 -  192 (1.5 GB)  
 Work partition  :  193 - 1015 (6.5 GB)  
 Swap partition  : 1016 - 1023 ( 64 MB)  
 Hibernation : 1024 - 1929 ( 48 MB) (can be smaller : only need
32 MB)  
 Third partition : 1030 - 1222 (1.5 GB) 

Fdisk reports the following : 

 Disk /dev/hda: 255 heads, 63 sectors, 1222 cylinders 
 Units = cylinders of 16065 * 512 bytes  

Device Boot Start End  Blocks  Id System  
 /dev/hda1  *  1  192 1542208+ 83 Linux native  
 /dev/hda2   193 1015 6610747+ 83 Linux native  
 /dev/hda3  1016 1023 6426083 Linux native  
 /dev/hda4  1024 1222 1598467+  5 Extended  
 /dev/hda5  1024 1029 48163+   70 DiskSecure Multi-Boot  
 /dev/hda6  1030 1222 1550241  83 Linux native




**
http://libretto.basiclink.com - Libretto mailing list
http://libretto.basiclink.com/archive - Archives
http://www.picante.com/~gtaylor/portable/faq.html - FAQ 
 ---UNSUBSCRIBE---
mailto:[EMAIL PROTECTED]?subject=cmd:unsubscribe 
UNSUBSCRIBE DIGEST--
Use above but add DIGEST to the subject line...   
**