Install on SATA port with 3TB drive how?

This forum is for all other ARMv5 devices

Install on SATA port with 3TB drive how?

Postby Raymondday » Sat Nov 19, 2011 1:54 pm

I don't have any USB drives on my "Pogoplug Pro -US" what is says for Model on the box. My "cat /proc/cpuinfo" looks like this:

Code: Select all
/sbin # cat /proc/cpuinfo
Processor       : ARMv6-compatible processor rev 5 (v6l)
processor       : 0
BogoMIPS        : 279.34

processor       : 1
BogoMIPS        : 279.34

Features        : swp half thumb fastmult edsp java
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xb02
CPU revision    : 5

Hardware        : Oxsemi NAS
Revision        : 0000
Serial          : 0000000000000000
/sbin #


Here is the code I did to install this, after I did "killall hbwd".

Code: Select all
/sbin # ./fdisk -l

fdisk: device has more than 2^32 sectors, can't use all of them

Disk /dev/sda: 2199.0 GB, 2199023255040 bytes
255 heads, 63 sectors/track, 267349 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               1      267350  2147483647+ ee EFI GPT
/sbin #
/sbin # cd /
/ # /sbin/fdisk /dev/sda
fdisk: device has more than 2^32 sectors, can't use all of them

The number of cylinders for this disk is set to 267349.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): o
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that the previous content
won't be recoverable.


The number of cylinders for this disk is set to 267349.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sda: 2199.0 GB, 2199023255040 bytes
255 heads, 63 sectors/track, 267349 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-267349, default 1): Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-267349, default 267349): Using default value 267349

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table
/ # sync
/ # cd /tmp
/tmp # wget http://archlinuxarm.org/os/pogoplug/mke2fs
Connecting to archlinuxarm.org (206.217.130.189:80)
/tmp # ls
hbplug.log   mke2fs       resolv.conf  var
/tmp # chmod 755 mke2fs
/tmp # ./mke2fs -j /dev/sda1
mke2fs 1.41.9 (22-Aug-2009)
/dev/sda1: Memory allocation failed while setting up superblock
/tmp #  # wget http://archlinuxarm.org/os/oxnas/oxnas-install.sh
Connecting to archlinuxarm.org (206.217.130.189:80)
/tmp # chmod 755 oxnas-install.sh
/tmp # ./oxnas-install.sh
#############################
##
## Pogoplug OXNAS based boards
## Arch Linux ARM rootfs Installer
##
#############################
##
## For use with OXNAS 7820 only.
##
#############################
## PREPARATION
# Switching to /tmp...
# Ensuring we're ready to proceed...
killall: hbwd: no process killed
umount: can't umount /dev/sda1: Invalid argument
# Preparing our way...
mount: mounting /dev/sda1 on /tmp/usb failed: Invalid argument
# Getting uboot parameters...
# = MAC : 00:25:31:01:8F:27
# = load_nand : nboot 60500000 0 200000
# = bootargs : root=ubi0:rootfs ubi.mtd=2,512 rootfstype=ubifs console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes
# = board : PPRO1
#
# Checking board revision...
# board has PCI: 1
#
# Deriving boot partition format...
# = PARTITION: /dev/sda1
# = FMT :
#
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ABORTING!!! Cannot boot from
=================================
See the wiki on how to format your
drive to ext2/ext3
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
/tmp #


What is wrong and is there any thing I can do to get this to work?

I would love to install Ubuntu server on this. I seen on the Net that some people have. But I have not found any place were it says how.

-Raymond Day
Raymondday
 
Posts: 77
Joined: Sat Nov 19, 2011 1:46 pm

Re: Install on SATA port with 3TB drive how?

Postby WarheadsSE » Sat Nov 19, 2011 2:39 pm

I am not going to help you with Ubuntu, because I keep telling people: "I don't support other distributions, here's the gist ...."

Please, PAY ATTENTION to the error message.
Code: Select all
fdisk: device has more than 2^32 sectors, can't use all of them


And the output states that it is already partitioned as a GPT.

Maybe these things would be useful on google? LMGTFY
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6436
Joined: Mon Oct 18, 2010 2:12 pm

Re: Install on SATA port with 3TB drive how?

Postby pepedog » Sat Nov 19, 2011 2:44 pm

I agree with WarheadsSe
Can't you prep the drive on another linux system, install parted

parted -s /dev/sdX unit mb print free
this gets size

parted /dev/sdX mklabel msdos
This "zeros" the drive

parted /dev/sdX mkpart primary ext3 101 999999999
This creates partition (999999999, replace with drive Mb size)

mke2fs -j /dev/sdX
This formats
pepedog
Developer
 
Posts: 2417
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Install on SATA port with 3TB drive how?

Postby Raymondday » Sat Nov 19, 2011 4:21 pm

Thank you for replying back so soon.

I put the 3TB drive on a Linux PC and did the commands like you said. But on the:

"parted /dev/sdX mkpart primary ext3 101 999999999
This creates partition (999999999, replace with drive Mb size)"

I get a error. Here is my code for this:

Code: Select all
root@raymond-desktop:/# parted -s /dev/sdb unit mb print free
Model: ATA WDC WD30EZRS-11J (scsi)
Disk /dev/sdb: 3000593MB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos

Number  Start   End        Size       Type  File system  Flags
        0.03MB  3000593MB  3000593MB        Free Space

root@raymond-desktop:/# parted /dev/sdb mkpart primary ext3 101 3000593
Error: partition length of 5860335616 sectors exceeds the                 
msdos-partition-table-imposed maximum of 4294967295
root@raymond-desktop:/# parted /dev/sdb mkpart primary ext3 03 3000593
Error: partition length of 5860526080 sectors exceeds the                 
msdos-partition-table-imposed maximum of 4294967295
root@raymond-desktop:/#


The Desktop Ubuntu using to do this is on a 1TB drive.

I guess I could format this in 2 partitions like one 2TB and the last 1TB then it could see it. But it be nice if could use it as a full 3TB drive.

-Raymond Day
Raymondday
 
Posts: 77
Joined: Sat Nov 19, 2011 1:46 pm

Re: Install on SATA port with 3TB drive how?

Postby Raymondday » Sat Nov 19, 2011 4:44 pm

I think I my of got it. I did Google what WarheadsSE said. That was neat how it just filled in the Google part were you type with that link!

The first link I went to and now it's "Writing inode tables: X/22357" The X is going up slow, so it will take a little time.

Here is what the out put looked like:

Code: Select all
(parted) mkpart primary 0.00TB 3.00TB                                     
Warning: You requested a partition from 0.00TB to 3.00TB.                 
The closest location we can manage is 0.00TB to 0.00TB.
Is this still acceptable to you?
Yes/No? no
(parted) mklabel gpt                                                     
Warning: The existing disk label on /dev/sdb will be destroyed and all data on
this disk will be lost. Do you want to continue?
Yes/No? yes                                                               
(parted) unit TB                                                         
(parted) mkpart primary 0.00TB 3.00TB                                     
(parted) print                                                           
Model: ATA WDC WD30EZRS-11J (scsi)
Disk /dev/sdb: 3.00TB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number  Start   End     Size    File system  Name     Flags
 1      0.00TB  3.00TB  3.00TB               primary

(parted) quit                                                             
Information: You may need to update /etc/fstab.                           

root@raymond-desktop:/# mkfs.ext3 /dev/sdb1
mke2fs 1.41.14 (22-Dec-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=1 blocks, Stripe width=1 blocks
183148544 inodes, 732566272 blocks
36628313 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
22357 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
   32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
   4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
   102400000, 214990848, 512000000, 550731776, 644972544

Writing inode tables: done                           
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 26 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
root@raymond-desktop:/#


It was about 15 min. to do this. Then I guess I can run the commands in my PogoPlug Pro for it.

I will post back. Thank you.

-Raymond Day
Raymondday
 
Posts: 77
Joined: Sat Nov 19, 2011 1:46 pm

Re: Install on SATA port with 3TB drive how?

Postby Raymondday » Sat Nov 19, 2011 5:32 pm

It all looked good. I did not run the code to reformat it. When it booted up before the commands the Green LED stayed on. Now all I am getting is a fast flashing Green LED!

I can't SSH to it any more and I know it's IP is same name is in my router. Wait. I just seen Alarm name and that's it. Yes. I can SSH to it now.

Here is the code how it went this time. I don't have time to mess with it now. I have to get to work soon. But looks good.

Thank you.

The code.

Code: Select all
raymond@raymond-desktop:~$ su
Password:
root@raymond-desktop:/home/raymond# cd /root
root@raymond-desktop:~# ssh 192.168.2.113
The authenticity of host '192.168.2.113 (192.168.2.113)' can't be established.
RSA key fingerprint is ed:de:68:f3:53:41:70:2c:70:0e:ed:22:0e:ce:d0:f8.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.2.113' (RSA) to the list of known hosts.
root@192.168.2.113's password:
~ # ls
~ # df
Filesystem           1K-blocks      Used Available Use% Mounted on
ubi0:rootfs             104288     12576     91712  12% /
none                     62880        16     62864   0% /tmp
/tmp/.cemnt/sda1     2884283608    205964 2737564392   0% /tmp/.cemnt/mnt_sda1
~ # killall hbwd
~ # df
Filesystem           1K-blocks      Used Available Use% Mounted on
ubi0:rootfs             104288     12576     91712  12% /
none                     62880        16     62864   0% /tmp
~ # cd /tmp
/tmp # ls
hbplug.log   resolv.conf  var
/tmp # wget http://archlinuxarm.org/os/oxnas/oxnas-install.sh
Connecting to archlinuxarm.org (206.217.130.189:80)
/tmp # ls
hbplug.log        oxnas-install.sh  resolv.conf       var
/tmp # chmod 755 oxnas-install.sh
/tmp # ./oxnas-install.sh
#############################
##
## Pogoplug OXNAS based boards
## Arch Linux ARM rootfs Installer
##
#############################
##
## For use with OXNAS 7820 only.
##
#############################
## PREPARATION
# Switching to /tmp...
# Ensuring we're ready to proceed...
killall: hbwd: no process killed
umount: can't umount /dev/sda1: Invalid argument
# Preparing our way...
# Getting uboot parameters...
# = MAC : 00:25:31:01:8F:27
# = load_nand : nboot 60500000 0 200000
# = bootargs : root=ubi0:rootfs ubi.mtd=2,512 rootfstype=ubifs console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes
# = board : PPRO1
#
# Checking board revision...
# board has PCI: 1
#
# Deriving boot partition format...
# = PARTITION: /dev/sda1
# = FMT : ext3
#
#############################
## RETRIEVING FILES
# Downloading ArchLinuxARM-oxnas-rootfs...(approx. 138MB)
Connecting to archlinuxarm.org (206.217.130.189:80)
# Verifying MD5
# Extracting
# Recording MAC Address
# Coping key CE binaries...
cp: can't stat '/usr/sbin/nanddump': No such file or directory
# Done copying.
#############################
## FLASHING NAND & UBOOT VARS
# backing up mtd1
./oxnas-install.sh: line 212: /usr/sbin/nanddump: not found
# Erasing mtd1 @ 0x500000 for 17 erase blocks (kernel location)
Erase Total 17 Units
Performing Flash Erase of length 131072 at offset 0x700000 done
# Erasing mtd1 @ 0xB00000 for 17 erase blocks (2nd kernel location)
Erase Total 17 Units
Performing Flash Erase of length 131072 at offset 0xd00000 done
# Flashing Kernel...
# - @ 0x500000
Writing data to block 40 at offset 0x500000
Writing data to block 41 at offset 0x520000
Writing data to block 42 at offset 0x540000
Writing data to block 43 at offset 0x560000
Writing data to block 44 at offset 0x580000
Writing data to block 45 at offset 0x5a0000
Writing data to block 46 at offset 0x5c0000
Writing data to block 47 at offset 0x5e0000
Writing data to block 48 at offset 0x600000
Writing data to block 49 at offset 0x620000
Writing data to block 50 at offset 0x640000
Writing data to block 51 at offset 0x660000
Writing data to block 52 at offset 0x680000
Writing data to block 53 at offset 0x6a0000
Writing data to block 54 at offset 0x6c0000
Writing data to block 55 at offset 0x6e0000
Writing data to block 56 at offset 0x700000
# - @ 0xB00000
Writing data to block 88 at offset 0xb00000
Writing data to block 89 at offset 0xb20000
Writing data to block 90 at offset 0xb40000
Writing data to block 91 at offset 0xb60000
Writing data to block 92 at offset 0xb80000
Writing data to block 93 at offset 0xba0000
Writing data to block 94 at offset 0xbc0000
Writing data to block 95 at offset 0xbe0000
Writing data to block 96 at offset 0xc00000
Writing data to block 97 at offset 0xc20000
Writing data to block 98 at offset 0xc40000
Writing data to block 99 at offset 0xc60000
Writing data to block 100 at offset 0xc80000
Writing data to block 101 at offset 0xca0000
Writing data to block 102 at offset 0xcc0000
Writing data to block 103 at offset 0xce0000
Writing data to block 104 at offset 0xd00000
# Done Flashing Kernel

# NEW uBoot Parameters
# = bootargs_usb : root=/dev/sda1 ubi.mtd=2,512 rootfstype=ext3 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes rootwait
# = load_custom_nand : nboot 60500000 0 500000
# = rootfs : /dev/sda1
# = root fs type : ext3
#
# Setting up uboot parameters
#
# Checking uboot parameters...
# = bootargs_stock : root=ubi0:rootfs ubi.mtd=2,512 rootfstype=ubifs console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes
# = bootargs : root=/dev/sda1 ubi.mtd=2,512 rootfstype=ext3 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes rootwait
# = load_custom_nand : nboot 60500000 0 500000
# = boot_custom : run load_custom_nand boot || run load_custom_nand2 boot
#############################
## Looks good!
# Sync ...
# Unmount
# Reboot to enter into Arch Linux ARM
/tmp # # cd /sbin
/sbin # ls
arp         hotplug     iwconfig    lsmod       modprobe    swapoff
depmod      ifconfig    iwevent     lspci       pivot_root  swapon
devmem2     ifdown      iwgetid     lsusb       poweroff    sysctl
fdisk       ifrename    iwlist      mkdosfs     reboot      tune2fs
fsck        ifup        iwpriv      mke2fs      rmmod       udhcpc
getty       init        iwspy       mkfs.ext2   route       zcip
halt        insmod      losetup     mkfs.vfat   sulogin
/sbin # reboot
-sh: reboot: not found
/sbin # ./reboot
Connection to 192.168.2.113 closed by remote host.
Connection to 192.168.2.113 closed.
root@raymond-desktop:~# exit
exit
raymond@raymond-desktop:~$


-Raymond Day
Raymondday
 
Posts: 77
Joined: Sat Nov 19, 2011 1:46 pm


Return to Community Supported

Who is online

Users browsing this forum: No registered users and 0 guests