bitmonster1070 (OP)
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 86
Merit: 15
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 18, 2012, 01:19:58 PM |
|
Just wondering if anyone has any advice on what I can do to prevent my usb stick from corrupting when I shut it down. Any time I need to regrease a card or change a fan I shutdown, and better than half the time, the usb is corrupt/messed up and won't get back to a terminal window again. It doesn't even get to the linux main screen. It will say something like "no boot device recognized" or sometimes it turns into real little script and scrolls the screen. I shutdown by either holding down power button, turning power off at psu, or a sudo shutdown now and all get the same result. Any ideas?
|
|
|
|
RaTTuS
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 18, 2012, 01:24:22 PM |
|
sudo sync sudo shutdown -h now should do it
|
In the Beginning there was CPU , then GPU , then FPGA then ASIC, what next I hear to ask ....
1RaTTuSEN7jJUDiW1EGogHwtek7g9BiEn
|
|
|
Foxpup
Legendary
Online
Activity: 4480
Merit: 3163
Vile Vixen and Miss Bitcointalk 2021-2023
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 18, 2012, 02:19:35 PM |
|
In case the above doesn't work, there's always the Magic SysRq key:
Hold down Alt+SysRq and press (in order): R to unraw the keyboard (otherwise killing X Windows may cause your terminal to behave strangely) E to terminate all processes (this should dump you at a text-mode login prompt) I to kill all processes not terminated by Alt+SysRq+E S to sync mounted filesystems (IMPORTANT: wait until this step finishes before continuing!) U to unmount all filesystems (again, wait until this step finishes before continuing!) B to reboot the machine (or O to power it off) (NOTE: this is NOT SAFE unless you have performed the above steps!)
These commands are hard-coded into the kernel, and thus will work even if your system is completely hosed (unless the kernel itself has crashed, but absolutely nothing will save your drives in that case). Note that this should be considered a last resort only. "sudo shutdown now" or "sudo reboot" are completely safe and if they work you should use them.
Note also that none of these things will protect your drive if it's already screwed up, which is evidently the case if you're getting "no boot device recognised". Your original post leaves me a bit confused as to exactly what is happening. Does it crash when you try to shut down, or does it shut down normally and then crash the next time you boot it up? Or am I misunderstanding the situation completely and need more caffeine?
|
Will pretend to do unspeakable things (while actually eating a taco) for bitcoins: 1K6d1EviQKX3SVKjPYmJGyWBb1avbmCFM4I am not on the scammers' paradise known as Telegram! Do not believe anyone claiming to be me off-forum without a signed message from the above address! Accept no excuses and make no exceptions!
|
|
|
bitmonster1070 (OP)
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 86
Merit: 15
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 18, 2012, 03:11:22 PM |
|
Rattus, thanks I will try that. Foxpup, I need to be a bit more clear as my post may be a bit confusing. After I shut it down normally (sudo shutdown now), then it won't come back up, just the no bootable device screen or random scrolling. Doesn't happen everytime, but more often do I find myself up late rewriting the drive, than luckily it coming back to life.
|
|
|
|
overtime
Newbie
Offline
Activity: 7
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 18, 2012, 03:15:55 PM |
|
Another possibility is a flaky USB port. You need to do some testing with a different USB drive.
|
|
|
|
DeathAndTaxes
Donator
Legendary
Offline
Activity: 1218
Merit: 1079
Gerald Davis
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 18, 2012, 03:18:33 PM Last edit: April 18, 2012, 04:32:47 PM by DeathAndTaxes |
|
You may just want to try a different brand drive. I was using these (because I got a great deal on about 20 of them): http://www.amazon.com/Verbatim-Flash-Drive-96816-Purple/dp/B001UHTDS2/ref=sr_1_2?ie=UTF8&qid=1334762142&sr=8-2Complete garbage. Would get corrupt, often fail to boot, occasionally the filesystem would go read only (which creates lots of fun bugs) and a couple of them simply died (less than 6 months mining). I wasted way more hours than I care to admit trying to get them stable.I switched to these: http://www.amazon.com/SanDisk-Cruzer-Flash-Drive-SDCZ36-004G-B35/dp/B001XURP7W/ref=sr_1_10?ie=UTF8&qid=1334762229&sr=8-10Haven't had a single corrupted filesytem or boot problem in 3+ months. (knock on wood). Also (and this may just be superstition) I have found the best luck w/ the USB ports closest the the keyboard connector. Usually they tend to be native southbridge ports and not 3rd party controller (to add more ports). The other option which I am exploring now is PXE and boot from LAN where the rig simply boots an image from a PXE server over the network. No drives even needed just connect power and network.
|
|
|
|
bitmonster1070 (OP)
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 86
Merit: 15
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 18, 2012, 03:53:52 PM |
|
I will check the usb ports and use the native ones like you said. I use patriot axle on 4 machines and flex on the other. They all crash so maybe it is time for a switch too. My freind has the same problem with his so maybe using the native ports and these drives that DT uses along with the proper shutdown commands will solve the problem . I like the pxe idea ! I am sure we are right there with you on hours of wasted time.
|
|
|
|
Nyaaan
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 19, 2012, 10:27:59 AM |
|
You should try to cool it down with a USB cooling system. I do this and now my USB never crashes like before.
|
|
|
|
check_status
Full Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 196
Merit: 100
Web Dev, Db Admin, Computer Technician
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 20, 2012, 06:35:21 AM |
|
With flash media there are different Class types. Class 4 will drop some bits when writing to the flash medium. For pictures it may not be a big deal if there is a little missing data, but for binary files and Operating Systems it is a nightmare. To prevent this, make sure you purchase Class 10 flash media, which will preserve all of your bits when writing to the media. When you buy cheap flash media you get what you pay for unfortunately, and Class 4 is the cheapest. Currently, Class4 2GB Micro SD cards sell for $2-$4 while Class 10 2GB Micro SD cards sell for $4-$6 dollars each.
I'm writing this from an OS installed on a 16GB Micro SD card and have been running this computer for 5 months like this. This is my minimalist phase.
|
For Bitcoin to be a true global currency the value of BTC needs always to rise. If BTC became the global currency & money supply = 100 Trillion then ⊅1.00 BTC = $4,761,904.76. P2Pool Server List | How To's and Guides Mega List | 1 EndfedSryGUZK9sPrdvxHntYzv2EBexGA
|
|
|
bitmonster1070 (OP)
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 86
Merit: 15
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 22, 2012, 08:40:27 AM |
|
Thanks, I will look for the class 10 as well. Maybe that will solve the problem. Worth a shot anyway.
|
|
|
|
DeathAndTaxes
Donator
Legendary
Offline
Activity: 1218
Merit: 1079
Gerald Davis
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 22, 2012, 03:37:34 PM |
|
Class 4 vs Class 10 is nonsense.
The class rating is for SD not USB drives and it merely indicates the minimum sustained write rate.
|
|
|
|
Rainarrow
Newbie
Offline
Activity: 13
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 24, 2012, 06:56:32 AM |
|
The OP never specified what OS he's using.
|
|
|
|
Foxpup
Legendary
Online
Activity: 4480
Merit: 3163
Vile Vixen and Miss Bitcointalk 2021-2023
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 24, 2012, 07:14:33 AM |
|
The OP never specified what OS he's using.
It doesn't even get to the linux main screen.
You're absolutely right. If he's using something other than Linux (and he never said he was), that would explain why it doesn't get to the Linux main screen. ![Roll Eyes](https://bitcointalk.org/Smileys/default/rolleyes.gif)
|
Will pretend to do unspeakable things (while actually eating a taco) for bitcoins: 1K6d1EviQKX3SVKjPYmJGyWBb1avbmCFM4I am not on the scammers' paradise known as Telegram! Do not believe anyone claiming to be me off-forum without a signed message from the above address! Accept no excuses and make no exceptions!
|
|
|
|