[+] Partycja Windows w Linuksie

Ogólne pytania dotyczące systemu
sonfire
Posty: 13
Rejestracja: 04 marca 2009, 15:56

Post autor: sonfire »

Po:

Kod: Zaznacz cały

chown -R sonfire:sonfire /mnt/winda/*
powyskakiwało mi dużo adresów plików i przed każdym: chown: zmiana właściciela
i po każdym System plików wyłącznie do odczytu.

Po:

Kod: Zaznacz cały

mount -t ext3 /dev/sdx 
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
One can change the type of mount containing the directory dir:
mount --make-shared dir
mount --make-slave dir
mount --make-private dir
mount --make-unbindable dir
One can change the type of all the mounts in a mount subtree
containing the directory dir:
mount --make-rshared dir
mount --make-rslave dir
mount --make-rprivate dir
mount --make-runbindable dir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say man 8 mount
Po:

Kod: Zaznacz cały

 fstab -l
bash: fstab: command not found
Czyli coś nie wyszło. Wiem tylko, że coś się przynajmniej ruszyło.
winnetou

Post autor: winnetou »

Dziękuję...
sonfire
Posty: 13
Rejestracja: 04 marca 2009, 15:56

Post autor: sonfire »

Po:

Kod: Zaznacz cały

fdisk -l
wyskoczyło:

Kod: Zaznacz cały

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000001

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       10387    83433546    7  HPFS/NTFS
/dev/sda2           10388       30070   158103697+  83  Linux
/dev/sda3           30071       30401     2658757+   5  Extended
/dev/sda5           30071       30401     2658726   82  Linux swap / Solaris
Po:

Kod: Zaznacz cały

mount -t ext3 /dev/hda1 /mnt/winda2/*
efekt ten sam co wcześniej.

Po:

Kod: Zaznacz cały

mount -t ext3 /dev/hda1 /mnt/winda2/
mount: special device /dev/hda1 does not exist
winnetou

Post autor: winnetou »

Dziękuję...
borlus
Beginner
Posty: 299
Rejestracja: 08 stycznia 2008, 14:27
Lokalizacja: okolice Poznania

Post autor: borlus »

Panowie, a nie powinien tej partycji z Windowsem montować poleceniem:

Kod: Zaznacz cały

ntfs-3g /dev/sda1 /mnt
?

//ubiegliście mnie ;-)
sonfire
Posty: 13
Rejestracja: 04 marca 2009, 15:56

Post autor: sonfire »

Kod: Zaznacz cały

mount -t ntfs /dev/sda1 /mnt/winda2/ 
Nie wiem chyba weszło, po prostu przeskoczyło do następnej linijki.

Kod: Zaznacz cały

mount  ntfs /dev/sda1 /mnt/winda2/ 
Ten błąd co wcześniej.

Kod: Zaznacz cały

ntfs-3g /dev/sda1 /mnt/winda2/
ntfs-3g-mount: mount failed: Urządzenie lub zasoby zajęte
RTFM - jestem tylko prostym człowiekiem, który wcześniej nie miał styczności z niczym innym niż Windowsem. Ten system wystarczająco mnie odmóżdżył.
borlus
Beginner
Posty: 299
Rejestracja: 08 stycznia 2008, 14:27
Lokalizacja: okolice Poznania

Post autor: borlus »

Jeśli po pierwszym poleceniu przeskoczyło do następnej linijki, oznacza to, że partycja jest zamontowana. Drugie polecenie nie wejdzie, bo jest błędne, a trzecie nie odpali bo pierwsze zadziałało ;-)
winnetou

Post autor: winnetou »

Dziękuję...
sj65
Beginner
Posty: 265
Rejestracja: 17 czerwca 2007, 21:21
Lokalizacja: Pu³awy

Post autor: sj65 »

Przepraszam zaćmiło mnie, oczywiście mój błąd. Postaram się poprawić
Teraz, aby po każdym uruchomieniu systemu mieć dostęp do partycji ntfs zamontowanej w katalogu /mnt/winda

Kod: Zaznacz cały

su
nano /etc/fstab
i tam wklej następującą linię:

Kod: Zaznacz cały

/dev/sda1       /mnt/winda    ntfs-3g rw,user,uid=1000,locale=pl_PL.UTF-8,auto    0 0
Jeszcze raz wykonaj polecenie:

Kod: Zaznacz cały

su
mount -t ntfs-3g /dev/sda1 /mnt/winda

Kod: Zaznacz cały

chown -R nazwa_uzytkownika.grupa_użytkownika /mnt/winda/*
albo po restarcie dwa ostatnie.
Zazwyczaj nazwa i grupa mają taką sma nazwę, chyba, że masz inaczej.

Pozdrawiam
sj65
winnetou

Post autor: winnetou »

Dziękuję...
ODPOWIEDZ