From: "Владимир Гусев" <vova1971@narod.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] SD/MMC-карточки монтируются только на чтение.
Date: Mon, 1 Sep 2008 13:15:18 +0400
Message-ID: <20080901131518.6377986b@book.gusev.ru> (raw)
In-Reply-To: <200808311207.31762.mak@rsmu.ru>
> > > > > Вопрос - что сделать сейчас, чтобы автоматом включалась
> > > > > запись для SD/MMC карт, и почему это не сделано в
> > > > > дистрибутиве по умолчанию?
> > > > А у меня всё работает. И через USB'шный noname и через
> > > > встроенный в ноут на SDHCI. Что я делаю не так?
> > А куда посмотреть, чтобы прояснить этот момент? В предустановки hal?
>
> dmesg, /var/log/messages, /proc/mounts?
Выводы с машины, где не работает (ALD 4.0.1), будут позднее. Ниже привожу выводы логов с моего ноута с Branch 4.1, где все работает.
Также не работает на win2k, но работает в winXP.. (это к слову)
dmesg (подключение usb card reader/writer):
usb 1-2.1: New USB device found, idVendor=058f, idProduct=6362
usb 1-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-2.1: Product: Mass Storage Device
usb 1-2.1: Manufacturer: Generic
usb 1-2.1: SerialNumber: 058F312D81B
usb-storage: device found at 9
usb-storage: waiting for device to settle before scanning
scsi 2:0:0:0: Direct-Access Generic USB SD Reader 1.00 PQ: 0
ANSI: 0 sd 2:0:0:0: [sda] Attached SCSI removable disk
sd 2:0:0:0: Attached scsi generic sg0 type 0
scsi 2:0:0:1: Direct-Access Generic USB CF Reader 1.01 PQ: 0
ANSI: 0 sd 2:0:0:1: [sdb] Attached SCSI removable disk
sd 2:0:0:1: Attached scsi generic sg1 type 0
scsi 2:0:0:2: Direct-Access Generic USB SM Reader 1.02 PQ: 0
ANSI: 0 sd 2:0:0:2: [sdc] Attached SCSI removable disk
sd 2:0:0:2: Attached scsi generic sg2 type 0
scsi 2:0:0:3: Direct-Access Generic USB MS Reader 1.03 PQ: 0
ANSI: 0 sd 2:0:0:3: [sdd] Attached SCSI removable disk
sd 2:0:0:3: Attached scsi generic sg3 type 0
usb-storage: device scan complete
После подключения (но до монтирования) sd-карточки добавилось следующее:
sd 2:0:0:0: [sda] 1950720 512-byte hardware sectors (999 MB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Mode Sense: 03 00 00 00
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] 1950720 512-byte hardware sectors (999 MB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Mode Sense: 03 00 00 00
sd 2:0:0:0: [sda] Assuming drive cache: write through
sda: sda1
[vova@book /]$ cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/disk/by-uuid/b5596679-0fad-46e2-9a39-cee254b6193f / ext3
rw,errors=continue,data=ordered 0 0 /proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
udev /dev tmpfs rw,size=5120k,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,gid=5,mode=620 0 0
shmfs /dev/shm tmpfs rw 0 0
tmpfs /tmp tmpfs rw,nosuid 0 0
/dev/hda8 /home ext3 rw,nosuid,errors=continue,data=ordered 0 0
/dev/hda6 /usr ext3 rw,nodev,noatime,errors=continue,data=ordered 0 0
/dev/hda7 /var ext3 rw,nosuid,errors=continue,data=ordered 0 0
После монтирования карточки (из pcmanfm):
[vova@book /]$ cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/disk/by-uuid/b5596679-0fad-46e2-9a39-cee254b6193f / ext3 rw,errors=continue,data=ordered 0 0
/proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
udev /dev tmpfs rw,size=5120k,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,gid=5,mode=620 0 0
shmfs /dev/shm tmpfs rw 0 0
tmpfs /tmp tmpfs rw,nosuid 0 0
/dev/hda8 /home ext3 rw,nosuid,errors=continue,data=ordered 0 0
/dev/hda6 /usr ext3 rw,nodev,noatime,errors=continue,data=ordered 0 0
/dev/hda7 /var ext3 rw,nosuid,errors=continue,data=ordered 0 0
/dev/sda1 /media/disk vfat
rw,nosuid,nodev,uid=500,fmask=0077,dmask=0077,codepage=cp866,iocharset=utf8,shortname=mixed,utf8
0 0
[root@book ~]# fdisk -l
Disk /dev/hda: 20.0 GB, 20003880960 bytes
255 heads, 63 sectors/track, 2432 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf0d52c9f
Device Boot Start End Blocks Id System
/dev/hda1 1 98 787153+ 82 Linux swap / Solaris
/dev/hda4 99 2432 18747855 5 Extended
/dev/hda5 99 229 1052226 83 Linux
/dev/hda6 230 624 3172806 83 Linux
/dev/hda7 625 755 1052226 83 Linux
/dev/hda8 756 2342 12747546 83 Linux
/dev/hda9 * 2343 2432 722893+ 83 Linux
Disk /dev/sda: 998 MB, 998768640 bytes
20 heads, 51 sectors/track, 1912 cylinders
Units = cylinders of 1020 * 512 = 522240 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 1 1913 975328+ 6 FAT16
Тут fat16, там vfat..
Вот кусок messages от момента подключения card-reader/writer до монтирования карты:
Sep 1 13:01:30 book kernel: usb 1-2.1: new full speed USB device using uhci_hcd and address 9
Sep 1 13:01:30 book kernel: usb 1-2.1: configuration #1 chosen from 1 choice
Sep 1 13:01:30 book kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Sep 1 13:01:30 book kernel: usb 1-2.1: New USB device found, idVendor=058f, idProduct=6362
Sep 1 13:01:30 book kernel: usb 1-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Sep 1 13:01:30 book kernel: usb 1-2.1: Product: Mass Storage Device
Sep 1 13:01:30 book kernel: usb 1-2.1: Manufacturer: Generic
Sep 1 13:01:30 book kernel: usb 1-2.1: SerialNumber: 058F312D81B
Sep 1 13:01:32 book kernel: scsi 2:0:0:0: Direct-Access Generic USB SD Reader 1.00 PQ: 0 ANSI: 0
Sep 1 13:01:32 book kernel: sd 2:0:0:0: [sda] Attached SCSI removable disk
Sep 1 13:01:32 book kernel: sd 2:0:0:0: Attached scsi generic sg0 type 0
Sep 1 13:01:32 book kernel: scsi 2:0:0:1: Direct-Access Generic USB CF Reader 1.01 PQ: 0 ANSI: 0
Sep 1 13:01:32 book kernel: sd 2:0:0:1: [sdb] Attached SCSI removable disk
Sep 1 13:01:32 book kernel: sd 2:0:0:1: Attached scsi generic sg1 type 0
Sep 1 13:01:32 book kernel: scsi 2:0:0:2: Direct-Access Generic USB SM Reader 1.02 PQ: 0 ANSI: 0
Sep 1 13:01:32 book kernel: sd 2:0:0:2: [sdc] Attached SCSI removable disk
Sep 1 13:01:32 book kernel: sd 2:0:0:2: Attached scsi generic sg2 type 0
Sep 1 13:01:32 book kernel: scsi 2:0:0:3: Direct-Access Generic USB MS Reader 1.03 PQ: 0 ANSI: 0
Sep 1 13:01:32 book kernel: sd 2:0:0:3: [sdd] Attached SCSI removable disk
Sep 1 13:01:32 book kernel: sd 2:0:0:3: Attached scsi generic sg3 type 0
Sep 1 13:03:54 book kernel: sd 2:0:0:0: [sda] 1950720 512-byte hardware sectors (999 MB)
Sep 1 13:03:54 book kernel: sd 2:0:0:0: [sda] Write Protect is off
Sep 1 13:03:54 book kernel: sd 2:0:0:0: [sda] Assuming drive cache: write through
Sep 1 13:03:54 book kernel: sd 2:0:0:0: [sda] 1950720 512-byte hardware sectors (999 MB)
Sep 1 13:03:54 book kernel: sd 2:0:0:0: [sda] Write Protect is off
Sep 1 13:03:54 book kernel: sd 2:0:0:0: [sda] Assuming drive cache: write through
Sep 1 13:03:54 book kernel: sda: sda1
Sep 1 13:05:57 book kernel: FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
Sep 1 13:05:57 book hald: mounted /dev/sda1 on behalf of uid 500
Позже сравним с ALD 4.0.1
--
С уважением,
Владимир Гусев
next prev parent reply other threads:[~2008-09-01 9:15 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-30 18:29 Владимир Гусев
2008-08-30 19:00 ` Alexey I. Froloff
2008-08-30 20:02 ` Владимир Гусев
2008-08-31 7:47 ` Владимир Гусев
2008-08-31 8:07 ` Michael A. Kangin
2008-09-01 9:15 ` Владимир Гусев [this message]
2008-09-01 9:33 ` Владимир Гусев
2008-09-01 9:37 ` Владимир Гусев
2008-09-01 9:44 ` Alexei V. Mezin
2008-09-01 9:50 ` Dmitriy M. Maslennikov
2008-09-01 10:03 ` Alexei V. Mezin
2008-09-01 10:13 ` Dmitriy M. Maslennikov
2008-09-01 10:19 ` Alexei V. Mezin
2008-09-01 18:29 ` Michael Shigorin
2008-09-02 4:12 ` Владимир
2008-09-02 4:15 ` Владимир
2008-09-01 11:27 ` Владимир Гусев
2008-09-01 11:35 ` Alexei V. Mezin
2008-09-01 12:50 ` Владимир Гусев
2008-09-01 13:08 ` Alexei V. Mezin
2008-09-01 11:22 ` Yuri Bushmelev
2008-09-01 12:53 ` Владимир Гусев
2008-09-01 13:29 ` Victor
2008-09-01 18:32 ` Michael Shigorin
2008-08-31 9:27 ` Dmitriy Kruglikov
2008-08-31 12:25 ` Sergey Vlasov
2008-09-01 13:22 ` Yury Aliaev
2008-09-01 13:29 ` Владимир Гусев
2008-09-01 18:33 ` Michael Shigorin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080901131518.6377986b@book.gusev.ru \
--to=vova1971@narod.ru \
--cc=community@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git