Autor Beitrag
Boldar
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1555
Erhaltene Danke: 70

Win7 Enterprise 64bit, Win XP SP2
Turbo Delphi
BeitragVerfasst: Do 14.07.11 20:51 
Hallo,
ich habe nun, wie einige vielleicht in der SB mitbekommen haben, Xubuntu installiert.
Das System ist auf ner 14.6GB IDE HDD. Nun will ich noch ne 200GB Sata Platte anschließen, die ich hier im Schrank gefunden habe. Also angesteckt... formatiert ist die mit ntfs, die Daten da drauf will ich unbedingt behalten. Nun muss ich die ja irgendwie mounten? Ich bin da als Linux-Anfänger echt ein bisschen überfordert. Hab gelesen ich soll in /dev/disk schauen und die Dateinamen irgendwo in /etc/fstab eintragen? Wie genau muss ich das machen? In /dev/disk/byID sehe ich Dateien mit der id der Platte, also schein sie ja korrekt erkannt zu werden. Nur was muss ich jetzt wo eintragen?
In /etc/fstab steht schon einiges Zeug...
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Do 14.07.11 21:34 
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
sudo bash
aptitude install ntfs-3g
ls -la /dev/sd*
fdisk -l
cd /mnt
mkdir /mnt/Platte
mount -t ntfs /dev/sd??????? /mnt/Platte
mount
exit


Wobei sd??????? durch die Bezeichnung der Partition zu ersetzen ist. Also z.B. sdb1.

Zur /etc/fstab: Wenn das Mounten wie oben beschrieben funktioniert hat, dann kopierst Du dir von z.B. sda1 (Dürfte dein Root-Dateisystem sein) und fügst eine Kopie davon am Ende der Datei ein. Danach entfernst Du aus der Zeile das Flag auto und fügst stattdessen nosuid,nosgid,noexec in die Liste ein. Device-Namen und Einhänge-Punkt entsprechend wie oben gezeigt aktualisieren (siehe die längere Zeile). Genauso auch die Spalte, wo vermutlich ext3 stehen dürfte durch ntfs (siehe Mount-Befehl) ersetzen.

Ach ja: Ggf. prüfen, ob dein Kernel integrierten NTFS-RW-Support hat. Wenn nicht, wird das ETWAS schwieriger ;-)

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.

Für diesen Beitrag haben gedankt: Boldar
Boldar Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1555
Erhaltene Danke: 70

Win7 Enterprise 64bit, Win XP SP2
Turbo Delphi
BeitragVerfasst: Do 14.07.11 23:17 
Welches ist denn die Bezeichnung der Partition? Bei fdisk -l werden drei Partitionen angezeigt, aber ohne Bezeichner?
Als ich die sdb2 Probiert habe, wo "erweitert" dran steht (bei sdb1 steht "Linux", bei sdb5 steht "Linux Swap / Solaris"), kam NTfS Signature is missing
...
The Device doesnt seem to have a valid ntfs

Listet fdisk -l alle partitionen auf?


Edit: Habs hingekriegt... war nur zu blöd...
Boldar Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1555
Erhaltene Danke: 70

Win7 Enterprise 64bit, Win XP SP2
Turbo Delphi
BeitragVerfasst: Sa 16.07.11 11:41 
Also, das manuelle Mounten hat geklappt.
Nur was muss ich jetzt fürs automounten eintragen?
In /etc/fstab steht:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
/dev/sda1       /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=e794b5b2-47ec-476a-ab45-5d771fb318aa none            swap    sw              0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0

Die Platte ist sdb:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
root@Boldar-Ubuntu:~/Arbeitsfläche# fdisk -l

Platte /dev/sda: 14.3 GByte, 14260811776 Byte
255 Köpfe, 63 Sektoren/Spur, 1733 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000988ed

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sda1   *           1        1473    11828224   83  Linux
/dev/sda2            1473        1734     2096129    5  Erweiterte
/dev/sda5            1473        1734     2096128   82  Linux Swap / Solaris

Platte /dev/sdb: 200.0 GByte, 200049647616 Byte
240 Köpfe, 63 Sektoren/Spur, 25841 Zylinder
Einheiten = Zylinder von 15120 × 512 = 7741440 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000001

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sdb1   *           1       25840   195350368+   7  HPFS/NTFS

Was muss ich nun eintragen?
mfg Boldar
Regan
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2157
Erhaltene Danke: 72


Java (Eclipse), Python (Sublimetext 3)
BeitragVerfasst: Sa 16.07.11 11:59 
Ich habe mal die Hilfe-Zeile hervorgehoben :P
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
/dev/sda1       /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=e794b5b2-47ec-476a-ab45-5d771fb318aa none            swap    sw              0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
/dev/sdb1       /mnt/Platte     ntfs    user,rw,nodev,noexec,nosuid   0     0


Edit: Ergänzt ;)


Zuletzt bearbeitet von Regan am Sa 16.07.11 12:34, insgesamt 1-mal bearbeitet

Für diesen Beitrag haben gedankt: Boldar
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Sa 16.07.11 12:31 
Fast: Da fehlen noch user und rw bei den Options, sonst aber korrekt ;-)

Ach ja: Wenn du die nur temporär ansteckst, sollte auch noch noauto ergänzt werden.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.

Für diesen Beitrag haben gedankt: Boldar, Regan