Re: [gentoo-user] Externel drive should be /dev/sda1, but /dev/sda1 does not exist

2010-01-02 Thread Dirk Heinrichs
Am Freitag 01 Januar 2010 14:48:52 schrieb Michael Sullivan:

> My wife's computer is pretty slow, so I've attached and old hard drive
> into a hard drive enclosure and hooked it into her USB port for
> additional swap space.  It used to work.  The swap space is supposed to
> be /dev/sda1.  The problem is that for some reason when I rebooted this
> morning with a new kernel, /dev/sda does not exist anymore.

Why don't you give it a fixed name, then? Google: "Writing udev rules".

Bye...

Dirk



Re: [gentoo-user] Externel drive should be /dev/sda1, but /dev/sda1 does not exist

2010-01-01 Thread Michael Sullivan
On Fri, 2010-01-01 at 16:12 +0200, Alan McKinnon wrote:
> On Friday 01 January 2010 15:48:52 Michael Sullivan wrote:
> > Hello
> > 
> > My wife's computer is pretty slow, so I've attached and old hard drive
> > into a hard drive enclosure and hooked it into her USB port for
> > additional swap space.  It used to work.  The swap space is supposed to
> > be /dev/sda1.  The problem is that for some reason when I rebooted this
> > morning with a new kernel, /dev/sda does not exist anymore.  I'm at a
> > lost as to what to do now.  Here's dmesg, or at least the parts
> > portaining to usb devices:
> 
> does it make a difference if you disable CONFIG_USB_SUSPEND, which can be 
> done 
> by reloading the module "usbcore" with the option "autosuspend=-1" ?
> 

catherine dev # modprobe usbcore autosuspend=-1
catherine dev # ls /dev/sda1
ls: cannot access /dev/sda1: No such file or directory



Did I do this right?




Re: [gentoo-user] Externel drive should be /dev/sda1, but /dev/sda1 does not exist

2010-01-01 Thread Alan McKinnon
On Friday 01 January 2010 15:48:52 Michael Sullivan wrote:
> Hello
> 
> My wife's computer is pretty slow, so I've attached and old hard drive
> into a hard drive enclosure and hooked it into her USB port for
> additional swap space.  It used to work.  The swap space is supposed to
> be /dev/sda1.  The problem is that for some reason when I rebooted this
> morning with a new kernel, /dev/sda does not exist anymore.  I'm at a
> lost as to what to do now.  Here's dmesg, or at least the parts
> portaining to usb devices:

does it make a difference if you disable CONFIG_USB_SUSPEND, which can be done 
by reloading the module "usbcore" with the option "autosuspend=-1" ?


> 
> catherine dev # dmesg | grep usb
> usbcore: registered new interface driver usbfs
> usbcore: registered new interface driver hub
> usbcore: registered new device driver usb
> usb usb1: configuration #1 chosen from 1 choice
> usbcore: registered new interface driver usb-storage
> usb usb2: configuration #1 chosen from 1 choice
> usb usb3: configuration #1 chosen from 1 choice
> usb usb4: configuration #1 chosen from 1 choice
> usbcore: registered new interface driver hiddev
> usbcore: registered new interface driver usbhid
> usbhid: v2.6:USB HID core driver
> usb 3-2: new full speed USB device using ohci_hcd and address 2
> usb 3-2: device descriptor read/64, error -62
> usb 3-2: device descriptor read/64, error -62
> usb 3-2: new full speed USB device using ohci_hcd and address 3
> usb 3-2: device descriptor read/64, error -62
> usb 3-2: device descriptor read/64, error -62
> usb 3-2: new full speed USB device using ohci_hcd and address 4
> usb 3-2: device not accepting address 4, error -62
> usb 3-2: new full speed USB device using ohci_hcd and address 5
> usb 3-2: device not accepting address 5, error -62
> 
> and here is lsmod:
> 
> catherine dev # lsmod
> Module  Size  Used by
> nfsd  212004  9
> xt_DSCP 2676  17
> xt_multiport2512  4
> xt_tcpudp   2528  55
> iptable_nat 4308  1
> nf_nat 16104  1 iptable_nat
> xt_limit2036  27
> nf_conntrack_ipv4  11692  18 iptable_nat,nf_nat
> nf_defrag_ipv4  1668  1 nf_conntrack_ipv4
> xt_state1780  15
> nf_conntrack   60044  4
> iptable_nat,nf_nat,nf_conntrack_ipv4,xt_state
> ipt_LOG 4896  27
> iptable_mangle  2268  1
> xt_string   1764  0
> ipt_ULOG5784  0
> iptable_filter  2260  1
> ip_tables  10264  3
> iptable_nat,iptable_mangle,iptable_filter
> x_tables   14684  10
> xt_DSCP,xt_multiport,xt_tcpudp,iptable_nat,xt_limit,xt_state,ipt_LOG,xt_str
> ing,ipt_ULOG,ip_tables ipv6  216088  20
> snd_pcm_oss30740  0
> snd_mixer_oss  13456  2 snd_pcm_oss
> snd_seq_oss23496  0
> snd_seq_midi_event  6312  1 snd_seq_oss
> snd_seq42988  4 snd_seq_oss,snd_seq_midi_event
> snd_seq_device  6352  2 snd_seq_oss,snd_seq
> lp  8184  0
> snd_intel8x0   26864  1
> snd_ac97_codec 93624  1 snd_intel8x0
> ac97_bus1456  1 snd_ac97_codec
> snd_pcm60476  3 snd_pcm_oss,snd_intel8x0,snd_ac97_codec
> sis900 17960  0
> ppdev   5752  0
> mii 4736  1 sis900
> shpchp 27540  0
> pcspkr  2204  0
> processor  35088  0
> pci_hotplug24584  1 shpchp
> snd_timer  18172  2 snd_seq,snd_pcm
> sis_agp 6640  1
> agpgart31260  1 sis_agp
> snd51020  9
> snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_seq_device,snd_intel8x0,s
> nd_ac97_codec,snd_pcm,snd_timer snd_page_alloc  8168  2
>  snd_intel8x0,snd_pcm
> button  5192  0
> rtc_cmos9432  0
> floppy 47372  0
> fan 4084  0
> rtc_core   15912  1 rtc_cmos
> rtc_lib 2620  1 rtc_core
> thermal12828  0
> parport_pc 32580  1
> thermal_sys12432  3 processor,fan,thermal
> tg395332  0
> libphy 21256  1 tg3
> e1000 103876  0
> fuse   52728  0
> xfs   428276  0
> exportfs3764  2 nfsd,xfs
> nfs   228192  1
> auth_rpcgss33564  2 nfsd,nfs
> nfs_acl 2612  2 nfsd,nfs
> lockd  59124  2 nfsd,nfs
> sunrpc169108  15 nfsd,nfs,auth_rpcgss,nfs_acl,lockd
> jfs   151124  0
> raid10 19696  0
> dm_bbr  9656  0
> dm_snapshot22180  0
> dm_crypt   11148  0
> dm_mirror  13076  0
> dm_region_hash 10704  1 dm_mirror
> dm_log  8680  2 dm_mirror,dm_region_hash
> dm_m