public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
[parent not found: <4pzyn-10f-33@gated-at.bofh.it>]
* Problem with usb-storage and /dev/sd?
@ 2005-08-10 19:22 DervishD
  2005-08-10 21:50 ` Tomasz Torcz
  0 siblings, 1 reply; 26+ messages in thread
From: DervishD @ 2005-08-10 19:22 UTC (permalink / raw)
  To: Linux-kernel

    Hi all :)

    If I plug my MP3 player (USB), the usb-storage module assigns it
device /dev/sda, which is right because I have it configured as such
in my /etc/fstab. Well, another day, another boot and I plug my USB
memory stick, and usb-storage assigns it device /dev/sda, quite cool
because I have it configured as such in my /etc/fstab, too.

    The problem is that if I plug my USB memory, unplug it and plug
my MP3 player, it gets /dev/sdb this time, not /dev/sda. The mess is
even greater if I plug my card reader, which has four LUN's...

    I'm not using hotplug currently so... how can I make the USB
subsystem to assign always the same /dev/sd? entry to my USB Mass
storage devices? For example, I will assign /dev/sda to my MP3
player, no matter if it is the first or the last USB gadget plugged,
etc. I would like fixed assignations, not the current way of 'first
item plugged gets /dev/sda and you have to remove the module if you
want the next item to be placed in /dev/sda'. I've googled a bit
without any success :(

    Thanks a lot in advance :)

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...

^ permalink raw reply	[flat|nested] 26+ messages in thread
* fdisk: What do plus signs after "Blocks" mean?
@ 2005-07-12 16:35 Konstantin Kudin
  2005-07-12 17:37 ` DervishD
  0 siblings, 1 reply; 26+ messages in thread
From: Konstantin Kudin @ 2005-07-12 16:35 UTC (permalink / raw)
  To: linux-kernel

 Hi there,

 Fdisk on my machine displays the output shown below. Many partitions
have pluses after "Blocks". The issue is that during installation on
the existing linux setup WinXP screwed up the partition table, and
these pluses were very difficult to recreate. Basically, if I remove
hda9, and then try to recreate it in fdisk, it loses the plus sign and
does not look as before. Also, sometimes fdisk creates a partition with
"+", and sometimes it does not.

 Since I did not want to take any chances, I used Knoppix to read a
similar partition table from /dev/hdb using "sfdisk -dx", and then
copied it to /dev/hda by using "sfdisk -fx". If I do not force sfdisk
by using "-f", it complains that there are some inconsistencies.

 Can anyone enlighten me what the pluses mean? Also, if a partition
loses pluses after "Blocks", would that destroy a RAID array?

 Thanks!
 Konstantin



#################
fdisk -l /dev/hda

Disk /dev/hda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1           3       24066    7  HPFS/NTFS
/dev/hda2               4       19457   156264255    5  Extended
/dev/hda5               4         264     2096451   82  Linux swap
/dev/hda6             265        2176    15358108+  fd  Linux raid
autodetect
/dev/hda7            2177        4088    15358108+   7  HPFS/NTFS
/dev/hda8            4089        7912    30716248+  fd  Linux raid
autodetect
/dev/hda9            7913       19457    92735212+  fd  Linux raid
autodetect



		
____________________________________________________
Sell on Yahoo! Auctions – no fees. Bid on great items.  
http://auctions.yahoo.com/

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2005-08-14 21:44 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1123702259.29404.linux-kernel2news@redhat.com>
2005-08-10 23:00 ` Problem with usb-storage and /dev/sd? Pete Zaitcev
2005-08-11  7:29   ` DervishD
2005-08-11 22:53     ` Horst von Brand
     [not found] <4pzyn-10f-33@gated-at.bofh.it>
     [not found] ` <4AubX-4w6-9@gated-at.bofh.it>
2005-08-12 10:49   ` Bodo Eggert
2005-08-12 17:38     ` Pete Zaitcev
2005-08-12 22:13       ` DervishD
2005-08-13 10:06       ` Bodo Eggert
2005-08-14  3:20         ` Pete Zaitcev
2005-08-14  7:32           ` DervishD
2005-08-14  8:48             ` Willy Tarreau
2005-08-14 21:48               ` DervishD
2005-08-10 19:22 DervishD
2005-08-10 21:50 ` Tomasz Torcz
2005-08-10 22:06   ` DervishD
2005-08-10 23:31     ` Greg KH
2005-08-11  7:33       ` DervishD
  -- strict thread matches above, loose matches on Subject: below --
2005-07-12 16:35 fdisk: What do plus signs after "Blocks" mean? Konstantin Kudin
2005-07-12 17:37 ` DervishD
2005-07-12 20:19   ` Horst von Brand
2005-07-12 20:48     ` Konstantin Kudin
2005-07-13 10:24       ` Jan Engelhardt
2005-07-14 13:50         ` kernel
2005-07-14 16:23           ` DervishD
2005-07-14 18:08           ` Jan Engelhardt
2005-07-13 12:14       ` DervishD
2005-07-13 12:13     ` DervishD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox