Questions about installing

milo7
Posts: 22
Joined: Wed Jul 11, 2012 12:36 am

Re: Questions about installing

Postby milo7 » Thu Jul 19, 2012 12:45 am

thanks :D
You can mount NTFS formatted drives in Linux and then set up shares to access the drive or parts of the drive via Windows. In my opinion, that is the best method and the one most use in my opinion.
thats what i want to do, I mounted my drives, says something like this (some have been manually mounted before):

root@storage:~# hda-diskmount
****************************************************************
Ignoring /dev/sdb5 - already mounted
****************************************************************
Ignoring /dev/sdc5 - already mounted
****************************************************************
Ignoring /dev/sdd5 - already mounted
****************************************************************
Ignoring /dev/sde5 - already mounted
****************************************************************
Ignoring /dev/sdf5 - already mounted
****************************************************************
Ignoring /dev/sdg5 - already mounted
****************************************************************
Ignoring /dev/sdh1 - already mounted
****************************************************************
Ignoring /dev/sda1 - already mounted
Ignoring /dev/sda1 - already in /etc/fstab as /dev/sda1
Ignoring /dev/sda1 - already in /etc/fstab as UUID=d976e1ff-c4ba-473b-b1dd-11042fa75f76
This device appears to be commented out of your /etc/fstab. You will need to remove it from there for hda-diskmount to be able to mount it.
****************************************************************
Ignoring /dev/sda5 - already in /etc/fstab as /dev/sda5
Ignoring /dev/sda5 - already in /etc/fstab as UUID=3b6b7995-db67-4947-bd94-5d334326a89b
This device appears to be commented out of your /etc/fstab. You will need to remove it from there for hda-diskmount to be able to mount it.
****************************************************************
No usable Linux, Windows or Mac partitions found on your disks.


maybe you can give me a hint with that. the drives dont show up as mounted drives on reboot.
how do I modify the /etc/fstab in order to have it remounted on startup? thats what fstab is saying:

# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=d976e1ff-c4ba-473b-b1dd-11042fa75f76 / ext4 errors=remoun$
# swap was on /dev/sda5 during installation
UUID=3b6b7995-db67-4947-bd94-5d334326a89b none swap sw $

now, do I have to remove the devices first, or can I just add the other ones? what does the error mean? How do I find the devices ID if the drives are already mounted? Do I have to unmount it first? And then mount it again in order to get the id?
Bunch of questions ;)

Concerning greyhole, I dont like the drive pools, rather have it the old fashioned way. Every drive for its purpose

Have a wonderful day

edit: The drives actually show all up on startup, even in the starter menue ( I've put it there also), but they are not mounted.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Questions about installing

Postby bigfoot65 » Thu Jul 19, 2012 5:04 am

Did you follow the wiki guidance for adding additional drives? Also were these connected when you did the initial install of the OS and Amahi?

It is best to install with only the OS drive connected, then once Amahi is working you connect the drives and follow the tutorial.

http://wiki.amahi.org/index.php/Adding_ ... o_your_HDA

Doing it any other way is more complicated and could cause problems with Amahi. If you do not want to use Greyhole and storage pools, that is ok. You still need to follow the guidance for getting them mounted.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

milo7
Posts: 22
Joined: Wed Jul 11, 2012 12:36 am

Re: Questions about installing

Postby milo7 » Thu Jul 19, 2012 6:58 am

Did you follow the wiki guidance for adding additional drives?
yes I did, but I left the part where you format the drive :shock:
Also were these connected when you did the initial install of the OS and Amahi?
Yes, I left them conected and installed amahi on the first physical drive, the only one that is boot active in bios.
On this drive I also installed the swap part.

Well, I installed it like in the wiki, and all drives are accessable, I just want to have them mounted on startup.
The wiki says:



Mount the hard drive

A script is provided with Amahi that will look for unmounted partitions in your system, and mount any it finds.

In a Terminal, as root, type the following command:

hda-diskmount

Example:

[root@hda ~]$ hda-diskmount
****************************************************************
Ignoring /dev/sda1 - already in /etc/fstab or mounted
****************************************************************
Mounted /dev/sdb1 as '/var/hda/files/drives/sdb1' (read-write)
You may want your system to mount it every time you boot.
To do so, add this line VERY CAREFULLY to /etc/fstab and reboot:
UUID=9d972abc-1639-44df-a60e-668618d40236 /var/hda/files/drives/sdb1 ext4 defaults 1 2
****************************************************************
All Linux, Windows and Mac partitions on non-removable disks have been mounted

Do not edit /etc/fstab just yet. What you'll need to add there will depend on how you want to use the extra storage. More about that below.
Just note down the information in bold (green, red and blue). We'll use them below.


But they use it only to bind that drive into the greyhole pool, but it doesnt explain how you use it for the remount on startup.

Well took a look at greyhole.. Well always got the feeling to loose control over my harddisks by installing a pool. The software is taking care of my data ! Seems to me like worst case :roll:
But I have read that if I loose a disk, the files could be recovered like in Raid 1. That sounds pretty good, and is worth a thought. In that case didn't and don't trust windows
Because we got a reliable Linux system that won't crash that often (I hope) ;)

So can I bind my NTFS drives to greyhole without loosing files? That would also solve the remount problem. And does it mix the folders, for example:
Got Pictures on drive D: and films on drive E: making a new folder in films, copy a film into it, the film is bigger than the space of the disk, would it move it to anoter location, f.e. D:? phisycally?

and do I need to have a phisicall copy of all my files? So I would need some more disks...

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Questions about installing

Postby bigfoot65 » Thu Jul 19, 2012 7:16 am

Example:

[root@hda ~]$ hda-diskmount
****************************************************************
Ignoring /dev/sda1 - already in /etc/fstab or mounted
****************************************************************
Mounted /dev/sdb1 as '/var/hda/files/drives/sdb1' (read-write)
You may want your system to mount it every time you boot.
To do so, add this line VERY CAREFULLY to /etc/fstab and reboot:
UUID=9d972abc-1639-44df-a60e-668618d40236 /var/hda/files/drives/sdb1 ext4 defaults 1 2
****************************************************************
All Linux, Windows and Mac partitions on non-removable disks have been mounted
Note the line that says to add this line to your /etc/fstab and reboot. That is what mounts the drive on reboot. If you did not do that, then that is why they are not mounting.

There is also instructions that tell you to install certain dependencies as well at the beginning. One of those if necessary for NTFS drives.

So, did you not add the lines as it indicated? If not, what I recommend you do is start over with the hda-diskmount part. That might involve a power down, then when you boot they should not be mounted until you run the script.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

milo7
Posts: 22
Joined: Wed Jul 11, 2012 12:36 am

Re: Questions about installing

Postby milo7 » Thu Jul 19, 2012 1:56 pm

they are in fstab now, but they dont show up on startup :cry:

GNU nano 2.2.6 Datei: /etc/fstab

# /etc/fstab: static file system information.
#
# Use 'blkid' 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
# / was on /dev/sda1 during installation
UUID=d976e1ff-c4ba-473b-b1dd-11042fa75f76 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=3b6b7995-db67-4947-bd94-5d334326a89b none swap sw 0 0
UUID=CC02DCA902DC9A32 /var/hda/files/drives/drive21 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100$
UUID=106E82876E8264F6 /var/hda/files/drives/drive22 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100$
UUID=72CA083CCA07FADD /var/hda/files/drives/drive23 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100$
UUID=9E007F1A007EF91B /var/hda/files/drives/drive24 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100$
UUID=20C4B56CC4B544B6 /var/hda/files/drives/drive25 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100$
UUID=C488C6CD88C6BCE4 /var/hda/files/drives/drive26 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100$
UUID=8844AB1B44AB0AD0 /var/hda/files/drives/drive27 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100$

hda diskmount says they are already in fstab....
any ideas?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Questions about installing

Postby bigfoot65 » Thu Jul 19, 2012 2:11 pm

I am guessing the mount points is the issue here. When hda-diskmount is run, the drives are mounted in /var/hda/files/drives/drive1, drive2, etc. You will notice they are listed as
/var/hda/files/drives/drive21, drive22 and so on.

Recommend you remove them from the /etc/fstab. Then as root user, do umount /var/hda/files/drives/drive21 and for each one to ensure they are no longer mounted. Once that is done, when you run hda-diskmount they should show up.

Then look at /var/hda/files/drives and I you will probably find several folders there. hda-diskmount typically starts at drive1, so I am guessing you have run the script several times. I would remove all the folders (which are really mount points) before running hda-diskmount. When you do it this time, you should see all the drives get mounted along with their respective /etc/fstab entry. Recommend you copy them exactly as is and add to the file.

Hope I did not confuse you too much. What I learned along time ago is when things are not working as expected. Reset and start over. That is basically what I have tried to describe here.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

milo7
Posts: 22
Joined: Wed Jul 11, 2012 12:36 am

Re: Questions about installing

Postby milo7 » Thu Jul 19, 2012 2:36 pm

You mean I should unmount 27 drives with
umount /var/hda/files/drives/drive21
(where the 21 is the drive number) and delete it from /etc/fstab again.
And then same procedure with
hda diskmount
and pasting the "new" ID's in /etc/fstab?

Right?
Then look at /var/hda/files/drives and I you will probably find several folders there.
There are 27 folders. Isn't it just enough to delete the folders and the lines in fstab? The drives aren't mounted yet

well unmounted all 27 drives, lot of them weren't mounted and deleted the fstab entries. All my drives appeared unmounted in starter...
After reboot my drives are still present - unmounted. All 27 folders are still there, but empty.

Can I delete them and start over with the diskmount?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Questions about installing

Postby bigfoot65 » Thu Jul 19, 2012 5:01 pm

Yes, remove them and start over. I did not intend for you to umount all of them, only the ones your drives were mounted as. Sorry about that.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

milo7
Posts: 22
Joined: Wed Jul 11, 2012 12:36 am

Re: Questions about installing

Postby milo7 » Thu Jul 19, 2012 11:11 pm

Yes, remove them and start over
Removed it with $ rmdir /var/hda/files/drives/drive21 in the terminal
I did not intend for you to umount all of them, only the ones your drives were mounted as
Fortunately we have copy an paste in the terminal, so it was no big deal.
hda-diskmount
root@storage:~# hda-diskmount
****************************************************************
Mounted /dev/sdb5 as '/var/hda/files/drives/drive1'
You may want your system to mount it every time you boot.
To do so, add this line VERY CAREFULLY to /etc/fstab and reboot:
UUID=CC02DCA902DC9A32 /var/hda/files/drives/drive1 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,noatime 1 2
****************************************************************
Mounted /dev/sdc5 as '/var/hda/files/drives/drive2'
You may want your system to mount it every time you boot.
To do so, add this line VERY CAREFULLY to /etc/fstab and reboot:
UUID=106E82876E8264F6 /var/hda/files/drives/drive2 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,noatime 1 2
****************************************************************
Mounted /dev/sdd5 as '/var/hda/files/drives/drive3'
You may want your system to mount it every time you boot.
To do so, add this line VERY CAREFULLY to /etc/fstab and reboot:
UUID=72CA083CCA07FADD /var/hda/files/drives/drive3 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,noatime 1 2
****************************************************************
Mounted /dev/sde5 as '/var/hda/files/drives/drive4'
You may want your system to mount it every time you boot.
To do so, add this line VERY CAREFULLY to /etc/fstab and reboot:
UUID=9E007F1A007EF91B /var/hda/files/drives/drive4 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,noatime 1 2
****************************************************************
Mounted /dev/sdf5 as '/var/hda/files/drives/drive5'
You may want your system to mount it every time you boot.
To do so, add this line VERY CAREFULLY to /etc/fstab and reboot:
UUID=20C4B56CC4B544B6 /var/hda/files/drives/drive5 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,noatime 1 2
****************************************************************
Mounted /dev/sdg5 as '/var/hda/files/drives/drive6'
You may want your system to mount it every time you boot.
To do so, add this line VERY CAREFULLY to /etc/fstab and reboot:
UUID=C488C6CD88C6BCE4 /var/hda/files/drives/drive6 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,noatime 1 2
****************************************************************
Mounted /dev/sdh1 as '/var/hda/files/drives/drive7'
You may want your system to mount it every time you boot.
To do so, add this line VERY CAREFULLY to /etc/fstab and reboot:
UUID=8844AB1B44AB0AD0 /var/hda/files/drives/drive7 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,noatime 1 2
****************************************************************
Ignoring /dev/sda1 - already mounted
Ignoring /dev/sda1 - already in /etc/fstab as /dev/sda1
Ignoring /dev/sda1 - already in /etc/fstab as UUID=d976e1ff-c4ba-473b-b1dd-11042fa75f76
This device appears to be commented out of your /etc/fstab. You will need to remove it from there for hda-diskmount to be able to mount it.
****************************************************************
Ignoring /dev/sda5 - already in /etc/fstab as /dev/sda5
Ignoring /dev/sda5 - already in /etc/fstab as UUID=3b6b7995-db67-4947-bd94-5d334326a89b
This device appears to be commented out of your /etc/fstab. You will need to remove it from there for hda-diskmount to be able to mount it.
****************************************************************
All Linux, Windows and Mac partitions on your disks have been mounted.
root@storage:~#

removed drive 5 from fstab and added it again
fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' 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
# / was on /dev/sda1 during installation
UUID=d976e1ff-c4ba-473b-b1dd-11042fa75f76 / ext4 errors=remoun$

UUID=CC02DCA902DC9A32 /var/hda/files/drives/drive1 ntfs-3g rw,user,fmask=0113,d$
UUID=106E82876E8264F6 /var/hda/files/drives/drive2 ntfs-3g rw,user,fmask=0113,d$
UUID=72CA083CCA07FADD /var/hda/files/drives/drive3 ntfs-3g rw,user,fmask=0113,d$
UUID=9E007F1A007EF91B /var/hda/files/drives/drive4 ntfs-3g rw,user,fmask=0113,d$
UUID=20C4B56CC4B544B6 /var/hda/files/drives/drive5 ntfs-3g rw,user,fmask=0113,d$
UUID=C488C6CD88C6BCE4 /var/hda/files/drives/drive6 ntfs-3g rw,user,fmask=0113,d$
UUID=8844AB1B44AB0AD0 /var/hda/files/drives/drive7 ntfs-3g rw,user,fmask=0113,d$

now reboot

In /var/hda/files/drives are the folders 1-7 with all the data of my drives. The drives don't show up at all.
used sudo apt-get -y install gparted again, but it's already installed.

any more hints, please? :oops:

The green line is commented out, does every line hast to be commented out seperately or does it include all following lines? If so do I have to put the green line on the end?
Just guessing :?:

milo7
Posts: 22
Joined: Wed Jul 11, 2012 12:36 am

Re: Questions about installing

Postby milo7 » Fri Jul 20, 2012 1:31 am

Unplugged all drives, made two partitions on drive 1 (20 GB root and 10 GB swap) and a fresh ubuntu and amahi install through usb.
Maybe I get it this time. At least I am a little bit more familiar with it. :roll:

# /etc/fstab: static file system information.
#
# Use 'blkid' 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
# / was on /dev/sda1 during installation
UUID=11305d55-c63b-4d38-82aa-704dd83d38f7 / ext3 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=5c01eb23-7d6d-4497-ae1f-ebbe62a4e38f none swap sw 0 0
UUID=CC02DCA902DC9A32 /var/hda/files/drives/drive1 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,$
UUID=106E82876E8264F6 /var/hda/files/drives/drive2 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,$
UUID=72CA083CCA07FADD /var/hda/files/drives/drive3 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,$
UUID=9E007F1A007EF91B /var/hda/files/drives/drive4 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,$
UUID=20C4B56CC4B544B6 /var/hda/files/drives/drive5 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,$
UUID=C488C6CD88C6BCE4 /var/hda/files/drives/drive6 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,$
UUID=8844AB1B44AB0AD0 /var/hda/files/drives/drive7 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,$

hda-diskmount

****************************************************************
Mounted /dev/sdb5 as '/var/hda/files/drives/drive1'
You may want your system to mount it every time you boot.
To do so, add this line VERY CAREFULLY to /etc/fstab and reboot:
UUID=CC02DCA902DC9A32 /var/hda/files/drives/drive1 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,noatime 1 2
****************************************************************
Mounted /dev/sdc5 as '/var/hda/files/drives/drive2'
You may want your system to mount it every time you boot.
To do so, add this line VERY CAREFULLY to /etc/fstab and reboot:
UUID=106E82876E8264F6 /var/hda/files/drives/drive2 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,noatime 1 2
****************************************************************
Mounted /dev/sdd5 as '/var/hda/files/drives/drive3'
You may want your system to mount it every time you boot.
To do so, add this line VERY CAREFULLY to /etc/fstab and reboot:
UUID=72CA083CCA07FADD /var/hda/files/drives/drive3 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,noatime 1 2
****************************************************************
Mounted /dev/sde5 as '/var/hda/files/drives/drive4'
You may want your system to mount it every time you boot.
To do so, add this line VERY CAREFULLY to /etc/fstab and reboot:
UUID=9E007F1A007EF91B /var/hda/files/drives/drive4 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,noatime 1 2
****************************************************************
Mounted /dev/sdf5 as '/var/hda/files/drives/drive5'
You may want your system to mount it every time you boot.
To do so, add this line VERY CAREFULLY to /etc/fstab and reboot:
UUID=20C4B56CC4B544B6 /var/hda/files/drives/drive5 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,noatime 1 2
****************************************************************
Mounted /dev/sdg5 as '/var/hda/files/drives/drive6'
You may want your system to mount it every time you boot.
To do so, add this line VERY CAREFULLY to /etc/fstab and reboot:
UUID=C488C6CD88C6BCE4 /var/hda/files/drives/drive6 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,noatime 1 2
****************************************************************
Mounted /dev/sdi1 as '/var/hda/files/drives/drive7'
You may want your system to mount it every time you boot.
To do so, add this line VERY CAREFULLY to /etc/fstab and reboot:
UUID=8844AB1B44AB0AD0 /var/hda/files/drives/drive7 ntfs-3g rw,user,fmask=0113,dmask=0002,uid=500,gid=100,noatime 1 2
****************************************************************
Ignoring /dev/sda1 - already mounted
Ignoring /dev/sda1 - already in /etc/fstab as /dev/sda1
Ignoring /dev/sda1 - already in /etc/fstab as UUID=11305d55-c63b-4d38-82aa-704dd83d38f7
This device appears to be commented out of your /etc/fstab. You will need to remove it from there for hda-diskmount to be able to mount it.
****************************************************************
Mounted /dev/sda3 as '/var/hda/files/drives/drive8' (read-write)
You may want your system to mount it every time you boot.
To do so, add this line VERY CAREFULLY to /etc/fstab and reboot:
UUID=8aaa76c2-781c-46a4-a78e-a4de6876c64b /var/hda/files/drives/drive8 ext4 defaults 1 2
****************************************************************
Ignoring /dev/sda5 - already in /etc/fstab as /dev/sda5
Ignoring /dev/sda5 - already in /etc/fstab as UUID=5c01eb23-7d6d-4497-ae1f-ebbe62a4e38f
This device appears to be commented out of your /etc/fstab. You will need to remove it from there for hda-diskmount to be able to mount it.
****************************************************************

gparted for ubuntu says they are all mounted, but they don't show up in my personal folder. Seems to be the same like before...
But they show up in my hda in the StoragePool as non added disks.

Who is online

Users browsing this forum: No registered users and 24 guests