Friday, September 18, 2009

How Do I Open An .rsd File

fstab and mount subdirectories

decided today that the disc will mount XPkiem at every system startup. Ultimately, I want to standardize collection of catalogs, images, code, etc., so I do not have to search hard time with XP, once disk with Ubuntu in search of what happened to occupy. For example, I work on the report in OO.org on Windows and Ubuntu, but I do not have access to an ext3 partition from Windows. Therefore Podlinkuj the My Documents / home / daniel, including the need to appropriate entries in the fstab.

It was with this little problem, but I do not załatwiłoby use search engine.
in turn:
can type "sudo

fdisk-l" to get a list of all drives. Since my drive is internal and has no chance to change his name, I could just refer to her
/ dev/sda1 /
. However, the other drives in fstab UUID link to disk, so I just I do. Such a small digression: I have two external drives and USB flash drive. I tell them not to be installed in the directory / media / disk and / media/disk1, but for example in the directory / media / black / media / silver depending on which one is connected.
For UUID disk type: sudo

vol_id / dev/sda1

In my case I got:

ID_FS_UUID = 5E543A8F543A69C3
Now we need to open the fstab: gksu gedit / etc / fstab
and at the end add:

#
XP disk with UUID = 5E543A8F543A69C3 / media / xp ntfs-3g defaults 0 0

I segregate tabem column, but can also be a space. After the turn, they are: Disc ID, mount point, file system, options, and another about 2 parameters that are mostly zeros. Anything relating to the frequency of some activities, but do not know how because I did not go into the subject. ;) Alternative entry may be:

/ dev/sda1 / media / xp ntfs-3g defaults 0 0

Here I refer to the disk by name. For more information on what else may be appealed on the web.
Finally save and go back to the console. Now we need to let us know the system to przemontował wszystkie dyski zgodnie z nowym plikiem fstab:

sudo mount -a

No i błąd:

mount: mount point /media/XP does not exist

Zatem trzeba naprawić to niedopatrzenie:

sudo mkdir /media/XP

Tym razem
sudo mount -a
nie wyrzuca żadnych komunikatów i można cieszyć się zamontowanym dyskiem.

Teraz przykładowe dowiązanie katalogu z obrazami: /media/XP/Documents\040and\040Settings/Yelonek/Moje\040dokumenty/Moje\040obrazy /home/daniel/Obrazy none bind 0 0
Co to za \040? Otóż jeśli w nazwie występuje spacja, instead we give a corresponding "escape sequence". This value is 32 (ANSI code for space) in octal. Were there a simple insert a space, then after calling sudo mount-a will get a message that "fstab is bad", because the program finds a space for the transition to the next column.

repeated calling
~ / Images

and again we see the old files. You can move them to the My Pictures directory and then bind to the directories. Now everything is as it should be.
* PS ~ (tilde) represents your home directory, or in my case / home / daniel

0 comments:

Post a Comment