Page 1 of 2

Cannot see the 2nd hd [Solved]

Posted: 7. May 2010, 15:00
by Sybelius
Hi All :)

Very happy after installing Salix 13.0 32 bit, I am trying to customize it as I like; looking for my 2nd hd (file system "ntfs"), which I am using as "Archive" for important files, I am unable to see it.
Also I dont see the partitions (10) on the 1st hd (where I have been installing all distros of mine); maybe I made error installing Salix and in this moment I dont remember (maybe I dont know) the procedure to set up this issue.
Please, somebody could help me ?
I am giving you some output:

Code: Select all

dominum[~]$ mount
/dev/root on / type ext4 (rw,noatime,barrier=1,data=ordered)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
gvfs-fuse-daemon on /home/dominum/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=dominum)
dominum[~]$ cat /etc/fstab
devpts              /dev/pts            devpts         gid=5,mode=620      0         0
proc                /proc               proc           defaults            0         0
tmpfs               /dev/shm            tmpfs          defaults            0         0
/dev/sda5           swap                swap           defaults            0         0
/dev/sda9           /                   ext4           noatime,defaults    1         1

Code: Select all

root[dominum]# fdisk -l

Disco /dev/sda: 320.0 GB, 320072933376 byte

255 testine, 63 settori/tracce, 38913 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Identificativo disco: 0x8f8000b1

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sda1               1       38913   312568610+   5  Esteso
/dev/sda5               1         233     1871509+  82  Linux swap
/dev/sda6             234        4024    30451176   83  Linux
/dev/sda7   *        4025        7792    30266428+  83  Linux
/dev/sda8            7793       11589    30499371   83  Linux
/dev/sda9           11590       15196    28973196   83  Linux
/dev/sda10          15197       19038    30860833+  83  Linux
/dev/sda11          19039       22775    30017421   83  Linux
/dev/sda12          22776       26487    29816608+  83  Linux
/dev/sda13          26488       30215    29945128+  83  Linux
/dev/sda14          30216       33990    30322656   83  Linux
/dev/sda15          33991       38913    39543966   83  Linux

Disco /dev/sdb: 500.1 GB, 500107862016 byte

255 testine, 63 settori/tracce, 60801 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Identificativo disco: 0x000475e6

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1       60801   488384001    7  HPFS/NTFS
Nota: la dimensione del settore è 2048 (non 512)

Disco /dev/sdc: 1015 MB, 1015021568 byte
32 testine, 61 settori/tracce, 253 cilindri
Unità = cilindri di 1952 * 2048 = 3997696 byte
Identificativo disco: 0x6f20736b

Dispositivo Boot      Start         End      Blocks   Id  System
root[dominum]# 
(Salix is installed on /dev/sda9).

Thank You very much for your kind attention. Ciao :)

Re: Cannot see the 2nd hd

Posted: 7. May 2010, 15:39
by Shador
You need to create additional entries in /etc/fstab for each partition you want to be mounted. Just search on the web for "fstab". You will be flooded with information.

Here are some extracts from mine:

Code: Select all

/dev/sda6        /home            xfs         defaults         1   2
/dev/sda3        /media/salix64old ext4       defaults         0   2
/dev/sda5        /media/data      ntfs-3g     defaults         0   2
UUID=BC34-5D82	 /media/D2        vfat defaults,noauto,utf8,umask=0,shortname=mixed,users 0   0

Re: Cannot see the 2nd hd

Posted: 8. May 2010, 04:22
by Sybelius
Shador wrote:You need to create additional entries in /etc/fstab for each partition you want to be mounted. Just search on the web for "fstab". You will be flooded with information.
Hi Shador,

Thank you very much for your kind help. Ciao :)

Re: Cannot see the 2nd hd [Solved]

Posted: 8. May 2010, 09:51
by Sybelius
Well, I got my 2nd hd. But I am afraid that something is wrong :geek:
Just to enjoy the "conversation", I tell you that after some different experiments (even after copying the fstab line from Slackware 13.0), the 2nd hd comes out only after adding to /etc/fstab the following line:

Code: Select all

UUID=1286503864855350 /dev/disk/by-uuid ntfs-3g        defaults,noauto,utf8,umask=0,shortname=mixed,users 0   0 
It is funny that I reach it following this footpath:
/dev/disk/by-uuid.
The "by-uuid" directory is containing all directories about the 2nd hd and I can work with files; apparently nothing is wrong, but I dont understand why I dont get it under /media or /mnt, or on the left side of the file manager's window.

Anyway, I got my 2nd hd, I got the printer Hp Officejet 6500 working, I got the scanner Epson Perfection 1260 working, I have been installing the program "GTK+UVC Viewer" (guvcview) which works perfectly.
My Salix is in order, I suppose :mrgreen: Ciao

Re: Cannot see the 2nd hd [Solved]

Posted: 8. May 2010, 22:46
by Shador
Sybelius wrote:It is funny that I reach it following this footpath:
/dev/disk/by-uuid.
The "by-uuid" directory is containing all directories about the 2nd hd and I can work with files; apparently nothing is wrong, but I dont understand why I dont get it under /media or /mnt, or on the left side of the file manager's window.
You shouldn't touch anything in mount. Especially you shouldn't mount to directories inside dev. By mounting to /dev/disk/by-uuid you hid away the original files. Anything now trying to access them would fail.
Always mount to /mnt or /media, possibly others too, but be aware that by mounting e.g. to a directory /home/user/test containing the file /home/user/test/file, that file is not anymore accessible as long the volume stays mounted to /home/user/test.

I recommend you change the line to something like:

Code: Select all

UUID=1286503864855350 /mnt/data ntfs-3g        defaults,noauto,utf8,umask=0,shortname=mixed,users 0   0 
The problem you probably faced was that /mnt/data was not yet existent so don't forget to create it beforehand. If you wanted the directory to be directly accessible from within your home directory,you could use a symlink like ln -s /mnt/data ~/data
Of course you can replace /mnt/data with any other (empty) existent directory, you want to use.

Re: Cannot see the 2nd hd [Solved]

Posted: 9. May 2010, 17:55
by Sybelius
I recommend you change the line to something like:

Code: Select all

UUID=1286503864855350 /mnt/data ntfs-3g        defaults,noauto,utf8,umask=0,shortname=mixed,users 0   0 
Hi Shador,

I have been following your advice and now my "fstab" is this one:

Code: Select all

devpts              /dev/pts            devpts         gid=5,mode=620      0         0
proc                /proc               proc           defaults            0         0
tmpfs               /dev/shm            tmpfs          defaults            0         0
/dev/sda5           swap                swap           defaults            0         0
/dev/sda9           /                   ext4           noatime,defaults    1         1
UUID=1286503864855350 /mnt/Archivio ntfs-3g        defaults,noauto,utf8,umask=0,shortname=mixed,users 0   0 
But I dont see my 2nd hd anywhere.
The problem you probably faced was that /mnt/data was not yet existent so don't forget to create it beforehand. If you wanted the directory to be directly accessible from within your home directory,you could use a symlink like ln -s /mnt/data ~/data
Of course you can replace /mnt/data with any other (empty) existent directory, you want to use.
I am sorry but I am not really expert, so, I did mistake, I suppose; I have been running as root this command:

Code: Select all

ln -s /mnt/Archivio ~/Archivio
:oops: Ciao

Re: Cannot see the 2nd hd [Solved]

Posted: 9. May 2010, 18:26
by Shador
It should now be visible in /mnt/Archivio and because you created that symlink also inside your homedir using the name Archivio.
If /mnt/Archivio is empty can you please post the output of mount (as root).

Re: Cannot see the 2nd hd [Solved]

Posted: 10. May 2010, 18:15
by Sybelius
Hi Shador,

Unfortunately, I dont see the 2nd hd (Archivio) anywhere, this is the terminal's output:

Code: Select all

root[dominum]# mount
/dev/root on / type ext4 (rw,noatime,barrier=1,data=ordered)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
gvfs-fuse-daemon on /home/dominum/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=dominum)
root[dominum]# 
"mnt" shows only: cdrecorder, cdrom, dvd, floppy, hd, memory, tmp, zip and "README".
All directories are empty.

Ciao :)

Re: Cannot see the 2nd hd

Posted: 10. May 2010, 18:17
by Shador
Shador wrote:The problem you probably faced was that /mnt/data was not yet existent so don't forget to create it beforehand
The directory you want to mount to MUST be EXISTENT. I.e.:

Code: Select all

mkdir -p /mnt/Archivio

Re: Cannot see the 2nd hd

Posted: 10. May 2010, 19:29
by Sybelius
Shador wrote:The directory you want to mount to MUST be EXISTENT. I.e.:

Code: Select all

mkdir -p /mnt/Archivio
:oops: running "mkdir -p /mnt/Archivio" I get the directory "Archivio" under /mnt but it is empty :oops: Ciao