Boot from USB and share SATA drive

This forum is for all other ARMv5 devices

Boot from USB and share SATA drive

Postby ldi9999 » Sat Mar 24, 2012 5:23 am

If I install the system on a USB driver, can I share (samba) the hard drive connected to SATA port? My understanding is when you connect both, the system won't boot because SATA would come first.
ldi9999
 
Posts: 59
Joined: Mon Mar 05, 2012 10:31 pm

Re: Boot from USB and share SATA drive

Postby WarheadsSE » Sat Mar 24, 2012 2:48 pm

You can, but its no cakewalk.

You'll need to understand how to safely change the rootfs parameter of uboot, and you'll need to know the ramifications of such a change.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Boot from USB and share SATA drive

Postby icewewe » Sat Mar 24, 2012 2:50 pm

@WarheadSE:

Wouldn't you just be modifying uboot parameters on the SATA drive? Or does the pogo skip SATA if it doesn't find uboot?
icewewe
 
Posts: 4
Joined: Sat Mar 24, 2012 2:49 pm

Re: Boot from USB and share SATA drive

Postby WarheadsSE » Sat Mar 24, 2012 2:52 pm

If the magic isn't on the SATA drive, it will want to boot from stage1 & uboot in NAND.

If the drive is prepared as a SATA boot, then just share out a portion ;)
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Boot from USB and share SATA drive

Postby ldi9999 » Mon Apr 02, 2012 4:28 pm

WarheadsSE,
Can I boot from USB drive without attaching the SATA drive and then connect SATA after boot to share?
Thanks.
ldi9999
 
Posts: 59
Joined: Mon Mar 05, 2012 10:31 pm

Re: Boot from USB and share SATA drive

Postby WarheadsSE » Mon Apr 02, 2012 7:34 pm

You can try 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: Boot from USB and share SATA drive

Postby mota37 » Fri Sep 21, 2012 5:20 am

I would like to look into this further. I would like to boot USB and only run the when access by Samba. I installed using the guide. Am I correct in thinking I need to install Uboot based on the instructions in the [How-To] Boot Entirely from SATA, then reconfigure Uboot to point to my USB drive?


I have been running my pro since last July 24/7. I recently decided to do something about the disk spinning night and day. After installing hdparm I could only get the drive to spin down for about 1 second, even after following a dozen guides on how to stop programs from accessing the HD frequently. My drive now has 9700 hours spinning and 1.5MILLION load counts which is more than twice it's rated life.
mota37
 
Posts: 7
Joined: Sat Jan 15, 2011 6:55 am

Re: Boot from USB and share SATA drive

Postby karog » Fri Sep 21, 2012 2:17 pm

@mota37, one thing you could do is boot from USB with the SATA disk powered off. After boot, turn the SATA disk power on and then mount it. It wont automount but with this command you can recognize it ie have it show up as a /dev/sdX device.
$this->bbcode_second_pass_code('', 'echo "0 0 0" > /sys/class/scsi_host/host0/scan')
Then you can mount it.

Kind of a pain but if you do not reboot often it might be workable.
karog
 
Posts: 305
Joined: Thu Jan 05, 2012 7:55 pm

Re: Boot from USB and share SATA drive

Postby Socaltom » Mon Sep 24, 2012 5:55 pm

Have you tried HD-idle? Its in the repository. I've read a comment that said you should set the drive parameters to noatime,nodiratime for it to be effective.

Also, this is a good read on disk drive life expectancy. it an article google wrote about their actual drive life expectancy.
http://static.googleusercontent.com/ext ... ilures.pdf

I also have a sata drive that's been on for over 10000 hours. The life expectancy for these things is well over 10,000 operating hours. Mine has an annual failure rate of 0.32% per year assuming 2500 hours of operation per year, but after reading google's paper, I think that if the drive survives the first 3 months, the failure rate is even less than that.

Google didn't see a big correlation between run time and elevated failure rates, but there stuff is on most of the time.
Tom
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: Boot from USB and share SATA drive

Postby mmoalem » Tue Oct 02, 2012 3:34 pm

how about installing grub on the sata drive and configuring it to boot from sdb? not sure if and how it can be done but assuming it is possible...
mmoalem
 
Posts: 19
Joined: Tue Sep 04, 2012 1:06 pm

Next

Return to Community Supported

Who is online

Users browsing this forum: No registered users and 10 guests

cron