Entra

View Full Version : quel bastardo di fstab...


X3noN
11-02-2005, 09:55
mi sta facendo impazzire...


riesco a montare senza problemi tutte le mie partizioni windows da riga di comando, ma se metto la entry a manina su /etc/fstab non va un cazz.

Ho provato con varie formattazioni ma non va niente!!!

uso debian sarge e la riga che metto in fstab e' la seguente:

mount /dev/sda1 /mnt/storage -t ntfs -ro umask=0222


ho provato anche con piu' varianti tipo:

mount /dev/sda1 /mnt/storage ntfs -r -o umask=0222

oppure

mount /dev/sda1 /mnt/storage -t ntfs -ro,umask=0222

ma ogni volta non monta niente!!!!


AIUTOOOOOOOOOOOOOOOOO :cry: :cry: :cry: :mad:

Shinobi
11-02-2005, 10:05
secondo me devi mettere i dati in questa maniera:

<file system> <mount point> <type> <options> <dump> <pass>


io non ho partizioni ntfs ma il mio fstab è così:

# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda5 / reiserfs notail 0 1
/dev/hda6 /media/winfat32 vfat defaults,auto,uid=1000,gid=1000 0 2
/dev/hda2 none swap sw 0 0
/dev/hdb5 /media/hdbfat32 vfat defaults,auto,uid=1000,gid=1000 0 2
/dev/hdc /media/cdrom0 iso9660 ro,user,noauto 0 0
/dev/hdd /media/cdrom1 iso9660 ro,user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

Psycotic
11-02-2005, 10:10
Ma poi nn ti sei accorto come erano fatte le altre righe di fstab che ti incazzi x niente??

X3noN
11-02-2005, 10:13
no mi incazzo perche' anche mettendole esattamente formattate come le altre non va istess...

senno' non postavo giusto? ;)

Ziosilvio
11-02-2005, 13:19
Originariamente inviato da X3noN
anche mettendole esattamente formattate come le altre non va istess...
Quindi hai provato anche:
/dev/sda1 /mnt/storage ntfs ro,user,noauto,owner 0 0

pigio
11-02-2005, 14:20
prova così:

/dev/sda1 /mnt/storage ntfs defaults,ro,users,noauto,umask=000 0 0

PiloZ
11-02-2005, 15:16
Originariamente inviato da X3noN

uso debian sarge e la riga che metto in fstab e' la seguente:

mount /dev/sda1 /mnt/storage -t ntfs -ro umask=0222

ho provato anche con piu' varianti tipo:

mount /dev/sda1 /mnt/storage ntfs -r -o umask=0222

oppure

mount /dev/sda1 /mnt/storage -t ntfs -ro,umask=0222

ma ogni volta non monta niente!!!!

scusa ma nella sintassi del file fstab la parola mount non ci sta a fare niente :)

X3noN
11-02-2005, 15:20
Originariamente inviato da PiloZ
scusa ma nella sintassi del file fstab la parola mount non ci sta a fare niente :)


si l'ho scritto nel post per sbaglio ma in realta' non c'e' nel mio fstab.

Non ho ancora avuto tempo di provare le altre soluzioni suggeritemi perche' sono incasinatisimo col lavoro...piu' tardi provo.

Intanto grazie a tutti

X3noN
11-02-2005, 18:09
edit:

son riuscito con:

/dev/sda1 /mnt/storage ntfs ro,user,noauto,owner,umask=0222 0 0


grazie a tutti per le info.

Ciao!

josephdrivein
12-02-2005, 08:33
Originariamente inviato da X3noN
mount /dev/sda1 /mnt/storage ntfs -r -o umask=0222
Te credo che non va, cos'è sta roba??? :p

gio84
12-02-2005, 09:29
ho anche io problemi con fstab, quando inserisco la penna usb non si accende la lucetta spia e per montarla devo fare
mount mnt/usbpen
attacco/stacco
mount mnt/usbpen
attacco/stacco
mount mnt/usbpen

se mi va bene...
qsto è il mio fstab:

/dev/hda5 / ext3 defaults,noatime 1 1
/dev/hda6 swap swap sw,pri=1 0 0
none /proc proc defaults 0 0
none /proc/bus/usb usbfs devmode=0666 0 0
none /dev/pts devpts mode=0622 0 0
none /sys sysfs defaults 0 0
/dev/sda1 /mnt/usbpen vfat users,rw,auto 0 0
# Dynamic entries
/dev/hda1 /mnt/hda1 ntfs noauto,users,exec,ro,umask=0222 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,users,dev,ro 0 0

josephdrivein
12-02-2005, 13:18
Originariamente inviato da gio84
/dev/sda1 /mnt/usbpen vfat users,rw,auto 0 0

Direi che dovresti metterla così
/dev/sda1 /mnt/usbpen vfat users,rw,noauto 0 0
Sennò cerca di montartela sempre quando avvi il sistema, anche quando la chiavetta è disinserita. Prova e facci sapere :)
Ciao!

gio84
12-02-2005, 13:37
fatto

ma ho sempre lo stesso problema la lucetta spia nn si accende appena inserisco la penna nella porta usb....
addirittura ora non funziona nemmeno la procedura che ho illustrato prima: monta attacca e stacca....

utilizzo mepis

josephdrivein
12-02-2005, 13:42
Originariamente inviato da gio84
fatto

ma ho sempre lo stesso problema la lucetta spia nn si accende appena inserisco la penna nella porta usb....
addirittura ora non funziona nemmeno la procedura che ho illustrato prima: monta attacca e stacca....
Inserisci la chiavetta e dai lsusb -v che ti dice? la vede?
Cosa vuoldire esattamente che "monta attacca e stacca"?

gio84
12-02-2005, 15:28
monta attacca e stacca è riferito alla procedura che ti ho detto prima, cioè la penna vien montata solo se faccio
mount /mnt/usbpen
stacco e riattacco la penna
etc etc....


ecco qui la risposta del comando che mi hai chiesto di inviare:

Bus 004 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.10 uhci_hcd
iProduct 2 UHCI Host Controller
iSerial 1 0000:00:1d.2
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 255
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 2
wHubCharacteristic 0x000a
No power switching (usb 1.0)
Per-port overcurrent protection
bPwrOn2PwrGood 1 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x08
PortPwrCtrlMask 0x58
Hub Port Status:
Port 1: 0000.0101 power connect
Port 2: 0000.0100 power

Bus 003 Device 003: ID 046d:c016 Logitech, Inc. Optical Mouse
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x046d Logitech, Inc.
idProduct 0xc016 Optical Mouse
bcdDevice 3.40
iManufacturer 1 Logitech
iProduct 2 Optical USB Mouse
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 34
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
Remote Wakeup
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Devices
bInterfaceSubClass 1 Boot Interface Subclass
bInterfaceProtocol 2 Mouse
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.10
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 52
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0004 1x 4 bytes
bInterval 10

Bus 003 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.10 uhci_hcd
iProduct 2 UHCI Host Controller
iSerial 1 0000:00:1d.1
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 255
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 2
wHubCharacteristic 0x000a
No power switching (usb 1.0)
Per-port overcurrent protection
bPwrOn2PwrGood 1 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x08
PortPwrCtrlMask 0x58
Hub Port Status:
Port 1: 0000.0303 lowspeed power enable connect
Port 2: 0000.0100 power

Bus 002 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.10 uhci_hcd
iProduct 2 UHCI Host Controller
iSerial 1 0000:00:1d.0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 255
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 2
wHubCharacteristic 0x000a
No power switching (usb 1.0)
Per-port overcurrent protection
bPwrOn2PwrGood 1 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x08
PortPwrCtrlMask 0x58
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0100 power

Bus 001 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 1 Single TT
bMaxPacketSize0 8
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.10 ehci_hcd
iProduct 2 EHCI Host Controller
iSerial 1 0000:00:1d.7
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 12
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 6
wHubCharacteristic 0x0008
Ganged power switching
Per-port overcurrent protection
TT think time 8 FS bits
bPwrOn2PwrGood 10 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x08
PortPwrCtrlMask 0x58
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0100 power
Port 3: 0001.0000 C_CONNECT
Port 4: 0000.0100 power
Port 5: 0001.0000 C_CONNECT
Port 6: 0000.0100 power

^[H3ad-Tr1p]^
13-02-2005, 12:35
io sono mooolto newbies ma vi provo a rispondere a grasndi linee

nn ho ancora capito xche' ma a seconda di come parte nn sempre vede le periferiche come sda1...almeno,nn e' detto che le veda sempre cosi',a volte si' ed a volte no:p nn so xche',appena lo so ve lo dico

cmq,puo' darsi che nn lo riesci a montare x questo motivo

x vedere come te la vede prova a fare cosi':

tail -f /var/log/messages

poi inserisci la periferica usb

ctrl+c x terminare

e vedi 1 po'....io avevo 1 problema simile con 1 disco ed ho risolto con questo xche' anziche' vederlo come sda1 lo vedeva come sdb1

nn so da cosa dipenda poi il fatto che ogni tanto me lo veda come sda1:rolleyes:

mykol
13-02-2005, 14:02
ma cos'è sta sda1 ? una penna USB ?

sei sicuro di aver caricato tutti moduli per l'USB '

io ho

[root@MDK10 giorgio]# lsusb
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 002: ID 0ed1:6680 WinMaxGroup
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
[root@MDK10 giorgio]#

Nel tuo lsusb non trovo la periferica ...

^[H3ad-Tr1p]^
13-02-2005, 14:16
se vuoi far funzare 1 penna usb o 1 hd ext usb o qualcosa del genere,nel kernel nn devi solo caricare i moduli relativi alle gestioni delle periferiche usb

devi compilare 1 modulo nel kernel dell emulazione scsi che trovi sotto le voci relative all emulazione scsi

si chiama

sd_mod

mi sembra
cercalo...dovrebbe esserci scritto emulazione scsi o qualcosa del genere,poi digiti h e ti dice a che serve e che verra' installato il suddetto modulo

senza quello nn funza sdxx

gio84
13-02-2005, 14:36
come faccio a ricompilare un unico modulo???

^[H3ad-Tr1p]^
13-02-2005, 14:43
Originariamente inviato da gio84
come faccio a ricompilare un unico modulo???
nn ho capito la domanda:confused:
sai ricompilare il kernel?

se si fai cosi'

anziche' ricompilare daccapo

cp /path_to_config /usr/src/linux/.config

cosi' ti copi l ultimo config funzante che stai usando

es:

il mio config:

cp /boot/config-2.6.10 /usr/src/linux/.config

poi prepari l ambiente con mrproper e poi makemenuconfig

ricompili,salvi e riavvii

gio84
13-02-2005, 17:23
il kernel l'ho ricompilato già qlke giorno fa ma con il comando make oldconfig ed ovviamente nn ho avuto miglioramenti... come faccio a sapere cosa devo inserire nella configurazione manuale del kernel?:confused:

josephdrivein
13-02-2005, 19:51
Oh ora ho capito. Dal codice che hai postato la chiavetta non te la vede. Proprio non sembra essere inserita.
C'è una voce nel kernel: tipo enable low voltage usb devices
Guarda com'é (presumo sia abilitata...) e mettila all'opposto
Ricompila tutto e posta i risultati ;)

gio84
13-02-2005, 22:10
dove dovrei cercarla questa voce??
In qualche file?

Psycotic
14-02-2005, 11:10
visto che il tuo problema nn riguarda fstab.. ti consiglio di aprire una nuova discussione..

e poi scrivi cosa ti esce quando inserisci la chiavetta..
se vai nella prima console in genere qando inserisci qualcosa se hai hotplug installato ti escono un paio di scritte..

e le posti qui cosi' vediamo.. oppure le prendi dai log

josephdrivein
15-02-2005, 07:26
Originariamente inviato da gio84
dove dovrei cercarla questa voce??
In qualche file?
do you know make menuconfig? ;)