Griffin: Difference between revisions

From miki
Jump to navigation Jump to search
No edit summary
Line 11: Line 11:
<ul>
<ul>
<li>[<tt>2011-01-14</tt>] '''Info''' - Original partition:</li>
<li>[<tt>2011-01-14</tt>] '''Info''' - Original partition:</li>
<source lang="bash">
sfdisk -l -uS /dev/sda

# Disk /dev/sda: 60801 cylinders, 255 heads, 63 sectors/track
# Units = sectors of 512 bytes, counting from 0
#
# Device Boot Start End #sectors Id System
# /dev/sda1 * 2048 976771119 976769072 7 HPFS/NTFS
# /dev/sda2 0 - 0 0 Empty
# /dev/sda3 0 - 0 0 Empty
# /dev/sda4 0 - 0 0 Empty
</source>
<li>[<tt>2011-01-14</tt>] '''Disk''' - (Ubuntu USB) '''Gparted''' &mdash; Resize partition /dev/sda1 to 61440 MiB (60GiB), align to Cylinder.</li>
<li>[<tt>2011-01-14</tt>] '''Disk''' - (Ubuntu USB) '''Gparted''' &mdash; Setting partitions as shown below.</li>
<li>[<tt>2011-01-14</tt>] '''Backup''' - (Ubuntu USB) Resize and backup windows system partition:
|<source lang="bash">
sudo dd if=/dev/sda of=griffin-sda-20110114.mbr bs=512 count=2048
sudo sfdisk -l -uS /dev/sda >griffin-sfdisk-20110114.txt
sudo sfdisk -d /dev/sda >griffin-sda-20110114-sfdisk.dump
sudo ntfsclone --force --save-image -o - /dev/sda3 | gzip -c > griffin-sda1-ntfs-resized-20110114.img.gz
</source>
</ul>

=== Partition ===
''Extended partition'' is aligned to cylinder so that to DOS/Linux both reports the same size (warning from <tt>sfdisk</tt>)
{| class="wikitable"
{| class="wikitable"
|-
|-
!Device!!Label!!Size!!Type!!Comment
!Linux dev!!Windows dev!!Type!!Label!!Size!!Type!!Linux Options!!Linux Mount
|-
|-
|<tt>/dev/sda1</tt>|| ||align="right"|500 GB||NTFS||Windows C:
|<tt>/dev/sda1</tt>||<tt>\Device\Harddisk0\Partition1</tt>||primary||WINDOWS||align="right"|60 GiB||ntfs|| ||<tt>/win/c</tt>
|}
<li>[<tt>2011-01-14</tt>] '''Disk''' - (Ubuntu USB) '''Gparted''' &rarr; Resize partition /dev/sda1 to 61440 MiB (60GiB), align to Cylinder. Created new partitions as follows (all aligned on cylinder):</li>
{| class="wikitable"
|-
|-
|<tt>/dev/sda2</tt>||<tt>\Device\Harddisk0\Partition?</tt>||primary||SWAP||align="right"|4 GiB||swap|| ||
!Partition!!Label!!Size!!Type!!Comment
|-
|-
|<tt>/dev/sda1</tt>|| ||align="right"|60 GiB||NTFS||Windows C:
|<tt>/dev/sda3</tt>||<tt>\Device\Harddisk0\Partition?</tt>||primary||BOOT||align="right"|150 MiB||ext2|| ||<tt>/boot</tt>
|-
|-
|<tt>/dev/sda2</tt>||SWAP||align="right"|4 GiB||linux-swap||
|<tt>/dev/sda5</tt>||<tt>\Device\Harddisk0\Partition?</tt>||logical||ROOT||align="right"|10 GiB||reiserfs||notail,noatime||<tt>/</tt>
|-
|-
|<tt>/dev/sda3</tt>||BOOT||align="right"|150 MiB||ext3||
|<tt>/dev/sda6</tt>||<tt>\Device\Harddisk0\Partition?</tt>||logical||HOME||align="right"|20 GiB||reiserfs||notail,noatime||<tt>/home</tt>
|-
|-
|<tt>/dev/sda5</tt>||ROOT||align="right"|10 GiB||reiserfs||
|<tt>/dev/sda7</tt>||<tt>\Device\Harddisk0\Partition?</tt>||logical||DATA||align="right"|351.60 GiB||ext4|| ||<tt>/data</tt>
|-
|<tt>/dev/sda6</tt>||HOME||align="right"|20 GiB||reiserfs||
|-
|<tt>/dev/sda7</tt>||DATA||align="right"|351.60 GiB||ext4||
|-
|<tt>/dev/sda8</tt>||WIN_DATA||align="right"|20.00 GiB||ntfs||
|}
<source lang="text">
SWAP - 4096 MiB - align cylinder
BOOT - 150MiB - ext3 - align cylinder
logical
ROOT
HOME
DATA
</source>
</ul>

=== Partition ===
{| class="wikitable"
|-
!Linux dev!!Windows dev!!Type!!Label!!Size!!Type!!Linux Options!!Linux Mount
|-
|-
|<tt>/dev/sda1</tt>||<tt>\Device\Harddisk0\Partition1</tt>||primary||WINDOWS||align="right"|500 GB||ntfs|| ||
|<tt>/dev/sda8</tt>||<tt>\Device\Harddisk0\Partition?</tt>||logical||WIN_DATA||align="right"|20 GiB||ntfs|| ||<tt>/win/d</tt>
|}
|}

Revision as of 11:20, 17 January 2011

Installed Operating System

System

Log

  • [2011-01-14] Info - Original partition:
  • sfdisk -l -uS /dev/sda
    
    # Disk /dev/sda: 60801 cylinders, 255 heads, 63 sectors/track
    # Units = sectors of 512 bytes, counting from 0
    #
    #    Device Boot    Start       End   #sectors  Id  System
    # /dev/sda1   *      2048 976771119  976769072   7  HPFS/NTFS
    # /dev/sda2             0         -          0   0  Empty
    # /dev/sda3             0         -          0   0  Empty
    # /dev/sda4             0         -          0   0  Empty
    
  • [2011-01-14] Disk - (Ubuntu USB) Gparted — Resize partition /dev/sda1 to 61440 MiB (60GiB), align to Cylinder.
  • [2011-01-14] Disk - (Ubuntu USB) Gparted — Setting partitions as shown below.
  • [2011-01-14] Backup - (Ubuntu USB) Resize and backup windows system partition: |
    sudo dd if=/dev/sda of=griffin-sda-20110114.mbr bs=512 count=2048
    sudo sfdisk -l -uS /dev/sda >griffin-sfdisk-20110114.txt
    sudo sfdisk -d /dev/sda >griffin-sda-20110114-sfdisk.dump
    sudo ntfsclone --force --save-image -o - /dev/sda3 | gzip -c > griffin-sda1-ntfs-resized-20110114.img.gz
    

Partition

Extended partition is aligned to cylinder so that to DOS/Linux both reports the same size (warning from sfdisk)

Linux dev Windows dev Type Label Size Type Linux Options Linux Mount
/dev/sda1 \Device\Harddisk0\Partition1 primary WINDOWS 60 GiB ntfs /win/c
/dev/sda2 \Device\Harddisk0\Partition? primary SWAP 4 GiB swap
/dev/sda3 \Device\Harddisk0\Partition? primary BOOT 150 MiB ext2 /boot
/dev/sda5 \Device\Harddisk0\Partition? logical ROOT 10 GiB reiserfs notail,noatime /
/dev/sda6 \Device\Harddisk0\Partition? logical HOME 20 GiB reiserfs notail,noatime /home
/dev/sda7 \Device\Harddisk0\Partition? logical DATA 351.60 GiB ext4 /data
/dev/sda8 \Device\Harddisk0\Partition? logical WIN_DATA 20 GiB ntfs /win/d