[Solved] How to align sector boundary after installing?

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

[Solved] How to align sector boundary after installing?

Postby hasukuma » Wed Jun 05, 2013 1:26 am

I have successfully installed archlinux on goflex by following this procedure:
http://archlinuxarm.org/platforms/armv5 ... s-ui-tabs2

Even though I use Linux Mint on my primary home computer, I am not very good at the command line or Linux structure/internals
Even for me those instructions were fantastic and spot on! After installing arch linux, I have also installed samba and setup my fileshare etc. Now, I have two partions on the hard drive /dev/sda1 and /dev/sda2.

After doing all that when checked fdisk -l it says that the partions "does not start on physical sector boundary". I know that it is because of the 512 vs 4096 bytes of minimum allocation unit (or something similar :) )

How can I bring them back to proper alignment? Can I use some kind of backup and restore? Or can I create a USB boot disk and boot from that so that I can format the hard drive with proper alignment and then re-install?

Is it possible to use parted or a similar program to resize partitions in place?

Any help is much appreciated!

Thanks.
Last edited by hasukuma on Sun Jun 09, 2013 9:45 pm, edited 1 time in total.
hasukuma
 
Posts: 8
Joined: Tue Jun 04, 2013 2:42 pm

Re: How to align sector boundary after installing archlinux?

Postby WarheadsSE » Wed Jun 05, 2013 12:26 pm

You can't realign a partition with active data. You will have to move the data, change the partition, put the data back.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: How to align sector boundary after installing archlinux?

Postby hasukuma » Wed Jun 05, 2013 2:19 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'Y')ou can't realign a partition with active data. You will have to move the data, change the partition, put the data back.


Many thanks for the reply, WarheadsSE.

Since it is a new setup, I don't really need to preserve the user data (/dev/sda2).
Can I just remove the hard drive and attach that to my linux box and take a back up of the OS partition, /dev/sda1?

Will these steps work?

1. Shutdown the Goflex Home device
2. Remove the SATA drive and attach it to my Linux box as /dev/sdx
3. Use dd command to copy /dev/sdx1 to a file on my linux box
4. Reformat and repartition in the recommended way
5. Put the image back on /dev/sdx1
6. Reinstall SATA to goflex and start the device

I am wondering if there is any information on the boot sector of the hard drive, which I need to preserve? I know that GRUB gets installed on boot sector. I don't know how goflex starts the boot process. Does it start the boot process from an internal memory and then transferred over to the attached SATA drive?

Thanks!
hasukuma
 
Posts: 8
Joined: Tue Jun 04, 2013 2:42 pm

Re: How to align sector boundary after installing archlinux?

Postby WarheadsSE » Thu Jun 06, 2013 3:34 am

There is no boot sector that needs preserved. I might suggest a tarball vs a dd.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: How to align sector boundary after installing archlinux?

Postby hasukuma » Thu Jun 06, 2013 4:43 am

$this->bbcode_second_pass_quote('WarheadsSE', 'T')here is no boot sector that needs preserved. I might suggest a tarball vs a dd.


Thanks for the reply!

I installed the Arch Linux on a USB flash drive attached to GoFlex and then transferred that image to a different hard drive using my linux box. I could boot using the new sata drive successfully. That means if I transfer that image to the seagate hdd that should work too. But the problem now is that I could not find a way to open the GoFlex case without breaking it. Seagate did a good job of making the enclosure such that it is pretty hard to take it apart without damaging the case.

Best option now is to boot from the USB, so that I can repartition the hard drive on the goflex itself without taking it apart.

How do I boot goflex Arch Linux from USB? I already confirmed that my USB image is good.
But GoFlex Arch Linux is not booting from USB even when I don't have the sata hard drive attached.

Any ideas?

Thanks!
hasukuma
 
Posts: 8
Joined: Tue Jun 04, 2013 2:42 pm

Re: How to align sector boundary after installing archlinux?

Postby moonman » Thu Jun 06, 2013 6:17 am

If you didnt upgarade the u-boot you need to label your usb stick "rootfs". Im confused though, werent you already booting using the usb port?
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: How to align sector boundary after installing archlinux?

Postby hasukuma » Thu Jun 06, 2013 2:04 pm

$this->bbcode_second_pass_quote('moonman', 'I')f you didnt upgarade the u-boot you need to label your usb stick "rootfs". Im confused though, werent you already booting using the usb port?


Thanks moonman!

I was booting from the SATA drive. I installed Arch Linux on the SATA drive following the steps given in the following link
http://archlinuxarm.org/platforms/armv5 ... s-ui-tabs2

I should have u-boot 0.6, I think.

I will change the USB label and boot from that.
hasukuma
 
Posts: 8
Joined: Tue Jun 04, 2013 2:42 pm
Top

Re: How to align sector boundary after installing archlinux?

Postby hasukuma » Fri Jun 07, 2013 5:23 am

$this->bbcode_second_pass_quote('hasukuma', '')$this->bbcode_second_pass_quote('moonman', 'I')f you didnt upgarade the u-boot you need to label your usb stick "rootfs". Im confused though, werent you already booting using the usb port?


Thanks moonman!

I was booting from the SATA drive. I installed Arch Linux on the SATA drive following the steps given in the following link
http://archlinuxarm.org/platforms/armv5 ... s-ui-tabs2

I should have u-boot 0.6, I think.

I will change the USB label and boot from that.


I have opened up the SATA drive and re-formatted it on my LinuxMint box. So sector alignment issue has been resolved!
I guess I call it done. Shooting in the dark takes too many shots to get things done!
hasukuma
 
Posts: 8
Joined: Tue Jun 04, 2013 2:42 pm
Top


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 4 guests