RE: Running on usb flash

2012-09-02 Thread Brian Platt

Did I make a mistake on the below fstab as slug no longer boots

From: brianpl...@hotmail.com
To: debian-arm@lists.debian.org
Subject: RE: Running on usb flash
Date: Sat, 1 Sep 2012 21:56:39 +0100





Thanks

I've added


# /etc/fstab: static file system information.
#
# file system mount point   type  options   dump  pass
proc/proc   procdefaults0   0
/dev/sda2   /   ext3errors=remount-ro,noatime 0   1
/dev/sda1   /boot   ext2defaults,noatime0   2
/dev/sda6   /home   ext3defaults,noatime0   2
/dev/sda5   noneswapsw  0   0

to fstab, is it worth minimzing or disabling swap? 

I've just bought some decent fast kingston drives, like you say it's not worth 
the risk using cheap drives.

Date: Sat, 1 Sep 2012 22:03:20 +0200
Subject: Re: Running on usb flash
From: bjohv...@gmail.com
To: brianpl...@hotmail.com
CC: debian-arm@lists.debian.org

I've run several devices from usb flash for years and have always followed the 
advice of Martin Michlmayr to use -noatime. Through the years I've had a few 
crashes, but they have consistently been on cheap usb devices. My advice is to 
use noatime and sandisk memory, other measures give little in return. 


/B

(Skickat från min mobiltelefon, därför kanske något kortfattat.)

On Sep 1, 2012 9:55 PM, Brian Platt brianpl...@hotmail.com wrote:





I'm running lenny on my nslu2 on a usb flash stick and found a few guides on 
how to reduce wear and tear on it but not sure which ones are upto 
date/relevant. Could someone have a look at these and let me know what ones I 
should be doing is seems ott to do them all.


http://www.cyrius.com/debian/nslu2/linux-on-flash.html
http://wiki.pcprobleemloos.nl/my_debian_linux_on_the_nslu2_installation_and_configuration_guide/#preventing_flash_writes_reduce_wear_on_flash_memory

http://www.rawsontetley.org/ref_slug.html


  

  

Think i've killed my usb flash partitions

2012-09-02 Thread Brian Platt

Debian was running fine on my nslu2 until I added noatime to my fstab and 
rebooted and now it doesn't boot.

when I inserted the usb flash into another linux machine I get 

Sep  2 17:21:07 homebox kernel: [ 2676.694615]  sde: unknown partition table

and fdisk shows

Disk /dev/sde: 15.7 GB, 15724707840 bytes
64 heads, 32 sectors/track, 14996 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Disk identifier: 0xd2231a30

   Device Boot  Start End  Blocks   Id  System

Command (m for help): 

I also tried

mount /dev/sde /mnt/usbstick
mount: you must specify the filesystem type

So where have my partitions gone? I REALLY need to get a single file off the / 
partition. 

RE: Running on usb flash

2012-09-02 Thread Björn Wetterbom
Could be a file system check. Leave it alone over night and see what
happens. I can't see anything wrong with your fstab. If it's not fsck, you
may need a serial console.

B

Sent from my nexus 7
On Sep 2, 2012 4:57 PM, Brian Platt brianpl...@hotmail.com wrote:

  Did I make a mistake on the below fstab as slug no longer boots

 --
 From: brianpl...@hotmail.com
 To: debian-arm@lists.debian.org
 Subject: RE: Running on usb flash
 Date: Sat, 1 Sep 2012 21:56:39 +0100

  Thanks

 I've added


 # /etc/fstab: static file system information.
 #
 # file system mount point   type  options   dump  pass
 proc/proc   procdefaults0   0
 /dev/sda2   /   ext3errors=remount-ro,noatime 0   1
 /dev/sda1   /boot   ext2defaults,noatime0   2
 /dev/sda6   /home   ext3defaults,noatime0   2
 /dev/sda5   noneswapsw  0   0

 to fstab, is it worth minimzing or disabling swap?

 I've just bought some decent fast kingston drives, like you say it's not
 worth the risk using cheap drives.

 --
 Date: Sat, 1 Sep 2012 22:03:20 +0200
 Subject: Re: Running on usb flash
 From: bjohv...@gmail.com
 To: brianpl...@hotmail.com
 CC: debian-arm@lists.debian.org

 I've run several devices from usb flash for years and have always followed
 the advice of Martin Michlmayr to use -noatime. Through the years I've had
 a few crashes, but they have consistently been on cheap usb devices. My
 advice is to use noatime and sandisk memory, other measures give little in
 return.
 /B
 (Skickat från min mobiltelefon, därför kanske något kortfattat.)
 On Sep 1, 2012 9:55 PM, Brian Platt brianpl...@hotmail.com wrote:

  I'm running lenny on my nslu2 on a usb flash stick and found a few guides
 on how to reduce wear and tear on it but not sure which ones are upto
 date/relevant. Could someone have a look at these and let me know what ones
 I should be doing is seems ott to do them all.

 http://www.cyrius.com/debian/nslu2/linux-on-flash.html

 http://wiki.pcprobleemloos.nl/my_debian_linux_on_the_nslu2_installation_and_configuration_guide/#preventing_flash_writes_reduce_wear_on_flash_memory
 http://www.rawsontetley.org/ref_slug.html