Greetings.
Got a dockstar, usb harddisk and a couple of pendrives to test.
Have been running ALARM since the days of Arch Linux ARM.
Most of my problems have been difficulty in updating (pacman issues), and power outages.
Lately (past couple of weeks) I have had some other issues that I will post in other topics.
Since my regular setup is dockstar+usb hdd with everything in the same
Ext2 partition, power outages always give me headaches.
Now I would like to move /boot into it's own Ext2 partition and the / (rootfs) to an Ext4 partition.
Before I start, I should say that last week I updated my dockstar's uboot to the latest using instructions on
this post from Jeff Doozan.
Tried this without success:
- connected the usb hdd to a laptop running Linux
- did a backup to another hdd (could have used Gpart to resize partitions)
- removed all partitions and created a primary Ext2 partition with 256MB and another primary Ext4 partition with the remaining disk space.
- then I opened a terminal, and as "user root" and from the root of the Ext4 partition I:
$this->bbcode_second_pass_code('', 'wget http://archlinuxarm.org/os/ArchLinuxARM-armv5te-latest.tar.gz
tar -xzvf ArchLinuxARM-armv5te-*.tar.gz
rm ArchLinuxARM-armv5te-*.tar.gz
sync')
- then I copied the contents of /boot to the root of the Ext2 partition. So the Ext2 partition has no folders and just have a file called uImage.
- removed the /boot folder from the Ext4 partition. Don't need it any longer. (
or do I??)
- then I edited /etc/fstab on Ext4 partition and added a line at the end like this:
$this->bbcode_second_pass_code('', '/dev/sda1 /boot ext2 defaults,noatime 1 2')
- at this point I unmounted the usb hdd from the laptop, disconnected it from the laptop and connected it back to the dockstar
- then I connected the serial from my laptop to the dockstar
- I opened Putty (everybody prefers minicom but I am used to Putty from M$ days) from the laptop, and opened the serial port at /dev/ttyUSB0 to see the dockstar terminal
- rebooted the dockstar and pressed a key to stop it from booting up
- from the "Marvel>>" prompt I changed the environment like this:
$this->bbcode_second_pass_code('', 'setenv usb_scan_1 'usb=0:1 dev=sda2'
setenv usb_scan_2 'usb=1:1 dev=sdb2'
setenv usb_scan_3 'usb=2:1 dev=sdc2'
setenv usb_scan_4 'usb=3:1 dev=sdd2'
setenv usb_rootfstype ext4')
- did a quick printenv just to make sure everything looked alright from my changes and then I:
$this->bbcode_second_pass_code('', 'saveenv
reboot')
This should have worked, right? Or maybe I shouldn't had removed the /boot folder from the Ext4 partition?
The truth is, it didn't boot.
Any idea what I could be doing wrong?
I wouldn't like to mess with the UUID's etc.
Sorry for the long post. I am usually very verbose.
And remember, I am not a Linux noob but I am a very slow learner, so although I am using Linux for the past 4 years, my Linux knowledge is still very scarce.
All help is welcome.
Cheers