ts-7000
[Top] [All Lists]

[ts-7000] Resizing TS-7800 Debian SD

To:
Subject: [ts-7000] Resizing TS-7800 Debian SD
From: "craignied" <>
Date: Sat, 05 Dec 2009 15:11:36 -0000
Hi Gurus, can someone help me out here.  I can successfully create a Debian SD 
card for a TS-7800 with:

sudo dd if=512mbsd-latest.dd of=/dev/sdf

It's a 2 GB card, though, and I'd like to have the full card available for 
Debian.  The instructions on the TS ftp site state:

"The bootable SD card has four partitions.  Partition 1 is a VFAT partition  
which is normally empty.  (On 2GB cards from the factory, this partiton  
contains Eclipse tools and documentation.)  Partition 2 contains a raw kernel 
image.  Partition 3 contains the initial ramdisk.  Partition 4 contains the 
Debian root file system.  After writing your SD card with the image, if your 
card is larger than 512MB you can use fdisk to resize partition 4."

and sure enough
sudo fdisk -l /dev/sdf

Disk /dev/sdf: 2002 MB, 2002255872 bytes
62 heads, 62 sectors/track, 1017 cylinders
Units = cylinders of 3844 * 512 = 1968128 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdf1               1           3        4096    c  W95 FAT32 (LBA)
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(0, 4, 13) logical=(0, 4, 9)
Partition 1 has different physical/logical endings:
     phys=(17, 2, 30) logical=(2, 12, 16)
Partition 1 does not end on cylinder boundary.
/dev/sdf2               3           4        3072   da  Non-FS data
Partition 2 does not end on cylinder boundary.
/dev/sdf3               5           6        1536   da  Non-FS data
Partition 3 has different physical/logical beginnings (non-Linux?):
     phys=(16, 12, 25) logical=(4, 20, 25)
Partition 3 has different physical/logical endings:
     phys=(19, 13, 58) logical=(5, 7, 58)
Partition 3 does not end on cylinder boundary.
/dev/sdf4               7         258      482944   83  Linux
Partition 4 has different physical/logical beginnings (non-Linux?):
     phys=(50, 7, 6) logical=(6, 28, 33)
Partition 4 has different physical/logical endings:
     phys=(1023, 7, 61) logical=(257, 45, 22)
Partition 4 does not end on cylinder boundary.

However, when I try fdisk to resize by deleting partition 4, then making a new 
primary partition (d 4 n p 4) starting at 7 and ending at the default 1017, 
then write (w) then try

sudo resize2fs /dev/sdf4

I get

resize2fs 1.41.4 (27-Jan-2009)
resize2fs: Bad magic number in super-block while trying to open /dev/sdf4
Couldn't find valid filesystem superblock.

My system (Intrepid Ibex) doesn't have ext2resize.

When I try parted, I get

(parted) resize 4                                                         
Start?  [11.8MB]?                                                         
End?  [2002MB]?                                                           
Error: Could not detect file system.   

Can anyone help me figure out how to resize partition 4?

Many TIA,
Craig




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU