Trying to Move ALArm to same drive (multiple partitions)

Ask questions about Arch Linux ARM. Please search before making a new topic.

Trying to Move ALArm to same drive (multiple partitions)

Postby ant129 » Tue Jul 05, 2011 5:34 pm

Ok a little back ground, I started my Alarm install on a separate 320 gig hard drive. Now that I have gotten a little more comfortable with it I want to move it to a 1.5 TB hard drive that already has most of my media on, in NTFS format. I have succesfully copied the whole install using rsync and booted from a different flash drive as a test.

On the 1.5 TB hard drive I used Gparted (live disk version) to add a new 10 gig partition in front of the already used space formatted for ext2. (This is after just trying windows 7 partition tool to add 10 gigs at the end). I did this thinking my new partition would be accessed first so that I can boot from it before it sees the media drive (the NTFS 1.49 partition).

Still don't think that it is accessing the alarm partition first since it never boots into alarm. If I use the separate 320 gig or flash drive to boot, the NTFS 1.49 partition shows us as dev/sdb1 and the alarm 10 gig partition shows up as dev/sdb2. I am sure this has something to do with not booting properly without the other boot drives. Anyone know how to fix this?
Noob alert!
Pogoplug v2 (not pink but grey)
Subsonic
ant129
 
Posts: 21
Joined: Sat Jun 11, 2011 5:00 am

Re: Trying to Move ALArm to same drive (multiple partitions)

Postby WarheadsSE » Tue Jul 05, 2011 6:01 pm

Despite location on the drive, the order in the partition table matters most.

There should be a way to tell it root is /dev/sda2 ?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Trying to Move ALArm to same drive (multiple partitions)

Postby hydro » Tue Jul 05, 2011 8:43 pm

In addition to that, u-boot also needs to know it has to search for the kernel image in the second partition.
I assume the following will do the trick:
$this->bbcode_second_pass_code('', '
fw_setenv usb_scan_1 'usb=0:2 dev=sda2'
fw_setenv usb_scan_2 'usb=1:2 dev=sdb2'
fw_setenv usb_scan_3 'usb=2:2 dev=sdc2'
fw_setenv usb_scan_4 'usb=3:2 dev=sdd2'
')
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: Trying to Move ALArm to same drive (multiple partitions)

Postby ant129 » Tue Jul 05, 2011 10:48 pm

Forgive my ignorance, I had seen that suggestion before, I am just clueless as to what file I need to edit.
Noob alert!
Pogoplug v2 (not pink but grey)
Subsonic
ant129
 
Posts: 21
Joined: Sat Jun 11, 2011 5:00 am

Re: Trying to Move ALArm to same drive (multiple partitions)

Postby hydro » Tue Jul 05, 2011 11:10 pm

I'm afraid it's not as easy as just editing a file. You need to configure the bootloader. If you cannot execute fw_setenv, look at the FAQ in the install guide.
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: Trying to Move ALArm to same drive (multiple partitions)

Postby ant129 » Wed Jul 06, 2011 2:35 am

Ah successful! Thanks guys for the help.
Noob alert!
Pogoplug v2 (not pink but grey)
Subsonic
ant129
 
Posts: 21
Joined: Sat Jun 11, 2011 5:00 am

Re: Trying to Move ALArm to same drive (multiple partitions)

Postby Fieryphoenix » Wed Jul 06, 2011 5:47 am

Why not use uuids?
Fieryphoenix
 
Posts: 27
Joined: Sun May 22, 2011 8:41 pm

Re: Trying to Move ALArm to same drive (multiple partitions)

Postby hydro » Wed Jul 06, 2011 6:46 am

Using the root partition's uuid requires an initial ramdisk, which is not present by default, see this thread.
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany


Return to User Questions

Who is online

Users browsing this forum: No registered users and 8 guests