Mounting partitions

Christoph Bier christoph.bier at web.de
Fri Apr 2 12:02:01 UTC 2010


alan duval schrieb am 02.04.2010 12:43:

[...]

> "Can't find sda7 (my virtual partition) in /etc/fstab or /etc/mtab". 
> I looked at fstab but didn't know what values to put for sda7.
> I then opened mtab and it looked simpler, so I added the line:
> /dev/sda7 /Virtual ext3 rw,relatime 0 0
> which is similar to the line for sda6
> 
> This then loaded my Virtual partition in the media folder and I am able
> to use it but I notice that the line I inserted in mtab has disappeared.

mtab is a dynamic file showing currently mounted partitions (by
fstab entries or manually). You need to edit fstab.

> Although this works I doubt that I have followed accepted practice.
> 
> Could someone enlighten me as to the correct procedure for mounting a
> partition which is not shown in fstab or mtab?

I'm not sure if I understand you correctly. You want to mount a
partition that was not auto mounted? Have a look at the output of
/var/log/messages, e. g. with

	tail -f /var/log/messages

and see which device (sdaX ...) appears after pluging in the
corresponding drive. Then you mount this device.

HTH

Best
Christoph
-- 
+++ Typografie-Regeln (1.7): http://zvisionwelt.de/?page_id=56





More information about the ubuntu-users mailing list