Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
usb hdd (ntfs)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
JaSoN-X
Tux's lil' helper
Tux's lil' helper


Joined: 13 Sep 2004
Posts: 80
Location: Italy

PostPosted: Sat Sep 25, 2004 7:45 pm    Post subject: usb hdd (ntfs) Reply with quote

Hi, hab eine usb festplatte als dateisystem ist ntfs drauf. (160GB Samsung IDE)
Hab versucht nach der doku das zu machen
https://forums.gentoo.org/viewtopic.php?t=53537
Leider komm ich bei dem punkt nicht weiter
mkdir /mnt/usbstick
mount -t ntfs /dev/sda1 /mnt/usbstick


also mkdir das klar aber sda1 wird bei mir schon genutz da ich ne sata habe.
das wegen meine frage was gebe ich da ein ?

fdisk -l

Code:
Platte /dev/sda: 160.0 GByte, 160041885696 Byte
255 Köpfe, 63 Sektoren/Spuren, 19457 Zylinder
Einheiten = Zylinder von 16065 * 512 = 8225280 Bytes

    Gerät Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        4462    35840983+   7  HPFS/NTFS
/dev/sda2            4463        4467       40162+  83  Linux
/dev/sda3            4468        4530      506047+  82  Linux Swap
/dev/sda4            4531       19457   119901127+  83  Linux


hier ist noch meine dmesg
http://nopaste.php-q.net/86900


Last edited by JaSoN-X on Sat Sep 25, 2004 10:26 pm; edited 2 times in total
Back to top
View user's profile Send private message
Lenz
Veteran
Veteran


Joined: 17 Jul 2003
Posts: 1439
Location: Marburg [HE, D, EU]

PostPosted: Sat Sep 25, 2004 8:07 pm    Post subject: Reply with quote

Wenn da ntfs drauf ist, wirst du sie mit vfat auch nicht mounten können. Tausche vfat mit ntfs aus.
Falls sda1 schon belegt ist, probiere mal sdb1.
_________________
.:: Lenz' Signature 1.7b ::.

| Gentoo Linux since v1.4 (08-2003) [Screenshot]
| NetHack Highscore: 5.476.380 Pts., Val-Dwa-Fem-Law, ~ ascended to demigoddess-hood ~
Back to top
View user's profile Send private message
JaSoN-X
Tux's lil' helper
Tux's lil' helper


Joined: 13 Sep 2004
Posts: 80
Location: Italy

PostPosted: Sat Sep 25, 2004 8:43 pm    Post subject: Reply with quote

Lenz wrote:
Wenn da ntfs drauf ist, wirst du sie mit vfat auch nicht mounten können. Tausche vfat mit ntfs aus.
Falls sda1 schon belegt ist, probiere mal sdb1.


usb 1-5: new high speed USB device using address 3
tux dev # mount -t ntfs /dev/sdb1 /mnt/usb
mount: Gerätedatei /dev/sdb1 existiert nicht

hmm leider auch net kann man das nicht irgend wo genau nach schauen ?
Back to top
View user's profile Send private message
JaSoN-X
Tux's lil' helper
Tux's lil' helper


Joined: 13 Sep 2004
Posts: 80
Location: Italy

PostPosted: Sat Sep 25, 2004 10:21 pm    Post subject: Reply with quote

das hab ich alles aktiviert in meinen Kernel in sachen USB

http://mitglied.lycos.de/milan/usb.jpg

hab eben noch den USB Mass Storage support aktiviert

Code:
tux root # cat /proc/partitions
major minor  #blocks  name

   8     0  156290904 sda
   8     1   35840983 sda1
   8     2      40162 sda2
   8     3     506047 sda3
   8     4  119901127 sda4


leider klappts immer noch nicht :cry:
Back to top
View user's profile Send private message
øxygen
Apprentice
Apprentice


Joined: 09 Mar 2004
Posts: 236
Location: Bergheim, Germany

PostPosted: Sun Sep 26, 2004 7:54 am    Post subject: Reply with quote

USB Mass Storage ist auch nicht aktiviert im Kernel. Bau die ganzen USB Sachen einfach als Modul, man weiß ja nie was man mal für Hardware in die Finger bekommt. Bringt ja keine Nachteile außer, dass das Kernel bauen länger dauert.
Back to top
View user's profile Send private message
dp20eic
n00b
n00b


Joined: 17 Jul 2002
Posts: 38
Location: Wolfsburg

PostPosted: Sun Sep 26, 2004 8:04 am    Post subject: Reply with quote

JaSoN-X wrote:
das hab ich alles aktiviert in meinen Kernel in sachen USB

http://mitglied.lycos.de/milan/usb.jpg

hab eben noch den USB Mass Storage support aktiviert

Code:
tux root # cat /proc/partitions
major minor  #blocks  name

   8     0  156290904 sda
   8     1   35840983 sda1
   8     2      40162 sda2
   8     3     506047 sda3
   8     4  119901127 sda4


leider klappts immer noch nicht :cry:


Hi,

meine 2 Cent zu dem Thema.

1.) NTFS ist zur Zeit nur lesend möglich, schreiben auf eigene Gefahr. (Ausnahme es gibt da wohl ein Treiber als "not open source")
2.) ist bei Dir NTFS im Kernel Aktiv?
grep 'NTFS' /usr/src/linux/.config
CONFIG_NTFS_FS=m
# CONFIG_NTFS_DEBUG is not set
CONFIG_NTFS_RW=y <-- auf eigene Gefahr, siehe Doku.

3.) 1. u. 2. für Kernel 2.6.8


Tschö
BErnd
Back to top
View user's profile Send private message
Lenz
Veteran
Veteran


Joined: 17 Jul 2003
Posts: 1439
Location: Marburg [HE, D, EU]

PostPosted: Sun Sep 26, 2004 8:19 am    Post subject: Reply with quote

@ dp20eic: Das Problem ist erstmal nicht das Dateisystem. Die Festplatte wird erst gar nicht richtig erkannt, sda-1-4 sind Partitionen auf eine S-ATA Platte, wie ich gestern im IRC erfahren habe. Folglich müsste die USB-Platte dann sdb sein, wird aber von cat /proc/partitions nicht angezeigt.

Was du mal machen könntest, wäre Knoppix zu booten und schauen ob da die Platte erkannt wird und mit was er die mounted.
_________________
.:: Lenz' Signature 1.7b ::.

| Gentoo Linux since v1.4 (08-2003) [Screenshot]
| NetHack Highscore: 5.476.380 Pts., Val-Dwa-Fem-Law, ~ ascended to demigoddess-hood ~
Back to top
View user's profile Send private message
JaSoN-X
Tux's lil' helper
Tux's lil' helper


Joined: 13 Sep 2004
Posts: 80
Location: Italy

PostPosted: Sun Sep 26, 2004 8:42 am    Post subject: Reply with quote

Lenz wrote:
@ dp20eic: Das Problem ist erstmal nicht das Dateisystem. Die Festplatte wird erst gar nicht richtig erkannt, sda-1-4 sind Partitionen auf eine S-ATA Platte, wie ich gestern im IRC erfahren habe. Folglich müsste die USB-Platte dann sdb sein, wird aber von cat /proc/partitions nicht angezeigt.

Was du mal machen könntest, wäre Knoppix zu booten und schauen ob da die Platte erkannt wird und mit was er die mounted.


Thx Lenz das kann ich mal testen ...
Back to top
View user's profile Send private message
JaSoN-X
Tux's lil' helper
Tux's lil' helper


Joined: 13 Sep 2004
Posts: 80
Location: Italy

PostPosted: Sun Sep 26, 2004 11:45 am    Post subject: Reply with quote

Also das Bekomme ich wenn ich mit Knoppix drauf bin.

Code:
root@ttyp0[/]# cat /proc/partitions
major minor  #blocks  name

   8     0  156290904 sda
   8     1   35840983 sda1
   8     2      40162 sda2
   8     3     506047 sda3
   8     4  119901127 sda4
   8    16  156290904 sdb
   8    17   53857881 sdb1
   8    18          1 sdb2
   8    21  102422376 sdb5
Back to top
View user's profile Send private message
JaSoN-X
Tux's lil' helper
Tux's lil' helper


Joined: 13 Sep 2004
Posts: 80
Location: Italy

PostPosted: Sun Sep 26, 2004 11:48 am    Post subject: Reply with quote

Also bei Knoppix kann ich aufsdb5 & sdb1 zugreifen da sind meine Daten drauf (ntfs) dann sollte es ja bei Gentoo auch klappen ;)
Back to top
View user's profile Send private message
Eric E.
n00b
n00b


Joined: 26 May 2004
Posts: 37
Location: Oberhausen

PostPosted: Sun Sep 26, 2004 1:50 pm    Post subject: Reply with quote

Versuch doch mal die Platte so zu mounten:

mount /dev/scsi/hostX/bus0/target0/lun0 /mnt/abc,

weibei für X vermutlich 2 einzusetzen ist, wenn du 2 interne SATA Anschlüsse hast.. einfach mal durchprobieren.
Back to top
View user's profile Send private message
Benzman
n00b
n00b


Joined: 02 Jun 2003
Posts: 32
Location: Neu-Ulm, Germany

PostPosted: Sun Sep 26, 2004 3:07 pm    Post subject: Reply with quote

Das "USB Mass Storage support" allein reicht nicht aus. Damit es funktioniert brauchst du auch noch "SCSI Device support" und "SCSI Disk support", zu finden unter "Device drivers --> SCSI device support-->"
Back to top
View user's profile Send private message
JaSoN-X
Tux's lil' helper
Tux's lil' helper


Joined: 13 Sep 2004
Posts: 80
Location: Italy

PostPosted: Sun Sep 26, 2004 5:55 pm    Post subject: Reply with quote

oke also ich hab die platte jetzt am laufen mit sdb1 & sdb5 hab das auch so im fstab drine.


Code:
/dev/sdb1               /mnt/usb        ntfs            uid=jason,gid=users,umask=0222,defaults,users    0 0
/dev/sdb5               /mnt/usb-2        ntfs            uid=jason,gid=users,umask=0222,defaults,users    0 0


Das Problem ist sobald ich die platte raus machen und 1std wieder rein mache will ich die wieder brauche heisst die USB Platte

sdc1 & sdc5 das heisst ich muss die fstab wieder ändern ist das normal oder kann man das geschickter machen ?? danke das er die sdb1 & sdb5 behält !
Back to top
View user's profile Send private message
caraboides
Apprentice
Apprentice


Joined: 29 Jun 2004
Posts: 180
Location: Rostock

PostPosted: Sun Sep 26, 2004 5:58 pm    Post subject: Reply with quote

Was glaube ich mal gut wäre wenn du die Ausgabe von dmesg nach dem Einstecken mal hier postest, aber nur die letzten ca. 20 Zeilen. Das weisst ob deine Platte erkannt wird und welches dev du zu mounten hast. So mache ich das immer.
_________________
Long live the fighters!
Back to top
View user's profile Send private message
flo_02_mu
n00b
n00b


Joined: 06 Aug 2004
Posts: 73

PostPosted: Sun Sep 26, 2004 6:04 pm    Post subject: Reply with quote

JaSoN-X wrote:

Das Problem ist sobald ich die platte raus machen und 1std wieder rein mache will ich die wieder brauche heisst die USB Platte

sdc1 & sdc5 das heisst ich muss die fstab wieder ändern ist das normal oder kann man das geschickter machen ?? danke das er die sdb1 & sdb5 behält !


Du kannst udev verwenden. Da schreibst du dir eine Regel die dir beim anstöpseln der USB-Platte einen symbolischen Link Namens /dev/usb_hd1 oder so erstellt. Diesen schreibst du dann anstelle von /dev/sdb1 in /etc/fstab und schon kannst du das Laufwerk immer mounten, egal ob es sich hinter sda, b, y verbirgt. :)
Back to top
View user's profile Send private message
JaSoN-X
Tux's lil' helper
Tux's lil' helper


Joined: 13 Sep 2004
Posts: 80
Location: Italy

PostPosted: Sun Sep 26, 2004 7:01 pm    Post subject: Reply with quote

flo_02_mu wrote:
JaSoN-X wrote:

Das Problem ist sobald ich die platte raus machen und 1std wieder rein mache will ich die wieder brauche heisst die USB Platte

sdc1 & sdc5 das heisst ich muss die fstab wieder ändern ist das normal oder kann man das geschickter machen ?? danke das er die sdb1 & sdb5 behält !


Du kannst udev verwenden. Da schreibst du dir eine Regel die dir beim anstöpseln der USB-Platte einen symbolischen Link Namens /dev/usb_hd1 oder so erstellt. Diesen schreibst du dann anstelle von /dev/sdb1 in /etc/fstab und schon kannst du das Laufwerk immer mounten, egal ob es sich hinter sda, b, y verbirgt. :)


hört sich gut an, die frage ist ich hab keine Plan wie ich das machen soll.
Kannst mir genau sagen wie das geht ? Danke

Ich hab eben das Programm installiert udev nur wie das geht hmmmm....
Back to top
View user's profile Send private message
flo_02_mu
n00b
n00b


Joined: 06 Aug 2004
Posts: 73

PostPosted: Sun Sep 26, 2004 8:26 pm    Post subject: Reply with quote

JaSoN-X wrote:

hört sich gut an, die frage ist ich hab keine Plan wie ich das machen soll.
Kannst mir genau sagen wie das geht ? Danke

Ich hab eben das Programm installiert udev nur wie das geht hmmmm....

Hier gibt's dazu eine Anleitung.
Ich hab hier für ein Digital Album (=mobile USB-Festplatte) folgenden Eintrag in /etc/udev/rules.d/10-local.rules:
Code:
BUS="scsi", KERNEL="sd*", SYSFS{model}="Digital Album", NAME="%k", SYMLINK="usbhd%n"


- Flo
Back to top
View user's profile Send private message
JaSoN-X
Tux's lil' helper
Tux's lil' helper


Joined: 13 Sep 2004
Posts: 80
Location: Italy

PostPosted: Sun Sep 26, 2004 9:23 pm    Post subject: Reply with quote

ja das auch ne mobile usb festplatte kann leider net viel mit der doku anfangen da mein englisch net mehr so fit ist :(
Back to top
View user's profile Send private message
flo_02_mu
n00b
n00b


Joined: 06 Aug 2004
Posts: 73

PostPosted: Sun Sep 26, 2004 9:42 pm    Post subject: Reply with quote

Also gut, dann versuchen wir das mal Schritt für Schritt:

emerge udev hast du ja anscheinend bereits ausgeführt, ansonsten jetzt nachholen. Jetzt die Platte anstöpseln und irgendwie ( anhand der syslog-Ausgaben, oder per mount-Versuchen ) ausfindig machen, welchem scsi-device sie zugeordnet wird. Gehen wir mal von sdb aus. Dann ist der nächste Schritt ein:

Code:
 udevinfo -a -p /sys/block/sdb |grep model


Das müsste eine Zeile ähnlich dieser hier ausspucken:
Code:
SYSFS{model}="Digital Album"


Anhand dieser Information kannst du nun eine Datei /etc/udev/rules.d/10-local.rules mit folgender Zeile erstellen:
Code:
BUS="scsi", KERNEL="sd*", SYSFS{model}="Digital Album", NAME="%k", SYMLINK="usbhd%n"

(Bei SYSFS{model} natürlich dann das eintragen was du vorhin mit udevinfo... (hoffentlich) bekommen hast).

Dies sollte dir nun beim nächsten anstöpseln der USB-Platte einen symbolischen Link /dev/usbhd1, /dev/usbhd2, ... auf die entsprechenden Partitionen der Platte erstellen die du dann in /etc/fstab eintragen kannst.

- Flo
Back to top
View user's profile Send private message
JaSoN-X
Tux's lil' helper
Tux's lil' helper


Joined: 13 Sep 2004
Posts: 80
Location: Italy

PostPosted: Mon Sep 27, 2004 3:10 pm    Post subject: Reply with quote

Code:
tux root # cat /proc/partitions
major minor  #blocks  name

   8     0  156290904 sda
   8     1   35840983 sda1
   8     2      40162 sda2
   8     3     506047 sda3
   8     4  119901127 sda4
   8    16  156290904 sdb
   8    17   53857881 sdb1
   8    18          1 sdb2
   8    21  102422376 sdb5
tux root # udevinfo -a -p /sys/block/sdb |grep model
    SYSFS{model}="SP1604N         "


die sdb ist meine Mobile Festplatte
Back to top
View user's profile Send private message
JaSoN-X
Tux's lil' helper
Tux's lil' helper


Joined: 13 Sep 2004
Posts: 80
Location: Italy

PostPosted: Mon Sep 27, 2004 3:14 pm    Post subject: Reply with quote

so sieht bei mir das jetzt aus

nano -w /etc/udev/rules.d/10-local.rules

hier drine steht das:

BUS="scsi", KERNEL="sd*", SYSFS{model}="SP1604N", NAME="%k", SYMLINK="usbhd%n"
Back to top
View user's profile Send private message
JaSoN-X
Tux's lil' helper
Tux's lil' helper


Joined: 13 Sep 2004
Posts: 80
Location: Italy

PostPosted: Mon Sep 27, 2004 3:15 pm    Post subject: Reply with quote

nur die frage was soll ich jetzt genau in meine fstab eintragen ?
Back to top
View user's profile Send private message
Lenz
Veteran
Veteran


Joined: 17 Jul 2003
Posts: 1439
Location: Marburg [HE, D, EU]

PostPosted: Mon Sep 27, 2004 3:29 pm    Post subject: Reply with quote

Das gleiche wie vorher, nur halt dann /dev/usbhd1 als Device denke ich.
_________________
.:: Lenz' Signature 1.7b ::.

| Gentoo Linux since v1.4 (08-2003) [Screenshot]
| NetHack Highscore: 5.476.380 Pts., Val-Dwa-Fem-Law, ~ ascended to demigoddess-hood ~
Back to top
View user's profile Send private message
JaSoN-X
Tux's lil' helper
Tux's lil' helper


Joined: 13 Sep 2004
Posts: 80
Location: Italy

PostPosted: Mon Sep 27, 2004 5:52 pm    Post subject: Reply with quote

Lenz wrote:
Das gleiche wie vorher, nur halt dann /dev/usbhd1 als Device denke ich.


denken ist nich wissen LENZ hehe :lol: ich teste es mal im moment steht es so drine:

/dev/sdb1 /mnt/usb ntfs uid=jason,gid=users,umask=0222,defaults,users 0 0
/dev/sdb5 /mnt/usb-2 ntfs uid=jason,gid=users,umask=0222,defaults,users 0 0
Back to top
View user's profile Send private message
flo_02_mu
n00b
n00b


Joined: 06 Aug 2004
Posts: 73

PostPosted: Mon Sep 27, 2004 5:54 pm    Post subject: Reply with quote

Ja, und jetzt nimmst du eben nicht mehr /dev/sdb1 und /dev/sdb5 sondern /dev/usbhd1 und /dev/usbhd5 her.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum