That fstab thing/mounting ext. HD at boot time
Posted: 09 Mar 2012, 13:51
Well I have never been good at fiddling around with my fstab. It is supposed to work out of the box anyway.
But I have this small problem with my external LaCie HD

On my Mandriva Box it does not mount on boot - and that is bad!
But it has this power on/off switch; and when I hit that and turn it back on it is mounted nicely.
So I dance away to my /etc/fstab
cause I have read somewhere that it is the place for taking care of stuff like this.
(I have added the usb to my groups)
I notice that all my mounts are done with UUID which is a good thing because it will not matter how I connect my external disks.
In the old days I have experienced that my disks have swapped place and gave me some boot trouble etc.
So UUID is good - I have got that.
Now how to find the UUID of that external USB Disk? I have got that too:
Since I will forget this command I made an alias out of it:
So everytime I write uuid I get the uuid of my disks:
Now that last one is the one in question here so I went to /etc/fstab and added something like this:
#Entry for /dev/sdb1 :
The rest of my /etc/fstab looks like this:
And that thorughly fubars the mounting of my USB HD
Now the on/of button gives me an error message and the HD is still not mounted on boot.
The folder LaCie does appear in /media when the disk is mounted so I figured I did not need to create it.
But then again I am figuring wrong here obviously.
The filesystem I get from df -T is fuseblk (it is ntfs)
I tried that instead of auto in fstab but no luck.
As usual when I fubar it probably is something very simple that you Gurus will spot right away - so Help!
Edit:
When auto mounted the disk looks like this:
It mounts some windows stuff called LA-PUBLIC that is vfat. But when I mount with gigolo I am able to mount only LaCie.
But I have this small problem with my external LaCie HD

On my Mandriva Box it does not mount on boot - and that is bad!
But it has this power on/off switch; and when I hit that and turn it back on it is mounted nicely.So I dance away to my /etc/fstab
(I have added the usb to my groups)
I notice that all my mounts are done with UUID which is a good thing because it will not matter how I connect my external disks.
In the old days I have experienced that my disks have swapped place and gave me some boot trouble etc.
So UUID is good - I have got that.
Now how to find the UUID of that external USB Disk? I have got that too:
Code: Select all
ls -l /dev/disk/by-uuidSince I will forget this command I made an alias out of it:
Code: Select all
alias uuid='ls -l /dev/disk/by-uuid'So everytime I write uuid I get the uuid of my disks:
Code: Select all
:) uuid
totalt 0
lrwxrwxrwx 1 root root 10 2012-03-09 13:23 23a0dd5a-40b5-4c94-a583-8e278b0f7491 -> ../../sda7
lrwxrwxrwx 1 root root 10 2012-03-09 13:25 323B-2942 -> ../../sdb2
lrwxrwxrwx 1 root root 10 2012-03-09 13:23 4527c277-18a1-4032-b302-5cf065806805 -> ../../sda5
lrwxrwxrwx 1 root root 10 2012-03-09 13:23 5639bb34-8c88-4f68-aebd-361855e85c6d -> ../../sda6
lrwxrwxrwx 1 root root 10 2012-03-09 13:23 7432F81932F7DDD4 -> ../../sda1
lrwxrwxrwx 1 root root 10 2012-03-09 13:25 F20042050041D171 -> ../../sdb1Now that last one is the one in question here so I went to /etc/fstab and added something like this:
#Entry for /dev/sdb1 :
Code: Select all
UUID=F20042050041D171 /media/LaCie auto defaults 0 0The rest of my /etc/fstab looks like this:
And that thorughly fubars the mounting of my USB HD
The folder LaCie does appear in /media when the disk is mounted so I figured I did not need to create it.
But then again I am figuring wrong here obviously.
The filesystem I get from df -T is fuseblk (it is ntfs)
Code: Select all
/dev/sdb1 fuseblk 1,8T 1,2T 670G 64% /media/LaCieI tried that instead of auto in fstab but no luck.
As usual when I fubar it probably is something very simple that you Gurus will spot right away - so Help!
Edit:
When auto mounted the disk looks like this:
Code: Select all
/dev/sdb2 vfat 30G 381M 30G 2% /media/LA-PUBLIC
/dev/sdb1 fuseblk 1,8T 1,2T 670G 64% /media/LaCieIt mounts some windows stuff called LA-PUBLIC that is vfat. But when I mount with gigolo I am able to mount only LaCie.