Change boot device

This forum is for all other ARMv5 devices

Re: Change boot device

Postby WarheadsSE » Tue Dec 04, 2012 2:55 pm

It might catch fire ... Oh, no that was the Video.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Change boot device

Postby xenoxaos » Tue Dec 04, 2012 3:33 pm

$this->bbcode_second_pass_quote('dinjo', 'H')ere are the drive details in case it helps

$this->bbcode_second_pass_code('', '[root@alarm ~]$ parted /dev/sdb2 print
Model: Unknown (unknown)
Disk /dev/sdb2: 499GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:

Number Start End Size File system Flags
1 0.00B 499GB 499GB ext3

[root@alarm ~]$ fdisk -l /dev/sdb2

Disk /dev/sdb2: 499.0 GB, 498970132480 bytes, 974551040 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
')



That would actually be the PARTITION details. One typically runs fdisk and parted on a disk and not a partition.
Arch Linux ARM exists and continues to grow through community support, please donate today!
xenoxaos
Developer
 
Posts: 323
Joined: Thu Jan 06, 2011 1:45 am

Re: Change boot device

Postby dinjo » Thu Dec 06, 2012 5:27 pm

Ok i ran it on hdd and it seems like partition is second not first which could be the cause , now if there is a seperate parition how to do i remove it ? to make this partition as first one.

$this->bbcode_second_pass_code('', '[root@alarm ~]$ parted /dev/sdb print
Model: Seagate FreeAgent GoFlex (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
2 1138MB 500GB 499GB primary ext3
')
dinjo
 
Posts: 258
Joined: Mon Nov 28, 2011 5:59 am

Re: Change boot device

Postby Geoff » Thu Dec 06, 2012 10:07 pm

$this->bbcode_second_pass_quote('dinjo', 'O')k i ran it on hdd and it seems like partition is second not first which could be the cause , now if there is a seperate parition how to do i remove it ? to make this partition as first one.

You can use the secret "expert" mode of fdisk to re-number the partitions: http://journalxtra.com/linuxsanity/how- ... bers-2768/
Geoff
 
Posts: 231
Joined: Wed Mar 09, 2011 5:14 pm

Re: Change boot device

Postby dinjo » Fri Dec 07, 2012 2:48 am

Is it safe I meant data wont be destroyed ?
dinjo
 
Posts: 258
Joined: Mon Nov 28, 2011 5:59 am

Re: Change boot device

Postby dinjo » Fri Dec 07, 2012 4:54 am

Before i move ahead and do this wanted to verify from WarSe whether this would help or Arch requires only one partition
dinjo
 
Posts: 258
Joined: Mon Nov 28, 2011 5:59 am

Re: Change boot device

Postby dinjo » Thu Dec 13, 2012 12:05 pm

@WarSE
Can you confirm that ordering of drive matters or it doesn't ?
dinjo
 
Posts: 258
Joined: Mon Nov 28, 2011 5:59 am

Re: Change boot device

Postby pazos » Thu Dec 13, 2012 6:55 pm

Hey dinjo! I don't have any oxnas device (yet) but can say that in the oxnas devices kernel expects a root filesystem on /dev/sda1 cause this string "root=/dev/sda1" has been passed to the kernel from the bootloader (uboot). Of course you can change uboot enviroment but you'll need a serial cable. If you don't want to (re-)format your drive you can change the bootargs variable in uboot to /dev/sdb2 an create a new fat partition using the little free space you have at the beggining of the disk (for the sake of WIndows :/ )
pazos
 
Posts: 21
Joined: Thu Aug 04, 2011 2:35 pm

Re: Change boot device

Postby WarheadsSE » Thu Dec 13, 2012 9:57 pm

If he is using NAND uboot, he doesn't need a serial cable for that.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Change boot device

Postby dinjo » Sat Dec 15, 2012 3:00 am

Can you clarify a bit on how to make it work ? So you are saying changing the drive order wont help and i have to modify uboot ?
dinjo
 
Posts: 258
Joined: Mon Nov 28, 2011 5:59 am

PreviousNext

Return to Community Supported

Who is online

Users browsing this forum: No registered users and 31 guests