Hi all,
I am testing Porteus 4.0 LXDE and found something I can't fix by myself.
I have an external hdd drive which gets mounted as /dev/sdc1 or /dev/sdd1 depending on how Porteus wants to do it.
I need to mount it always at the same point, either /dev/sdc1 or /dev/sdd1, given I get always the same mount point.
In /etc/fstab there is this entry:
/dev/sdd1 /mnt/sdd1 ntfs-3g users,noatime,nodiratime,suid,dev,exec,async,comment=x-gvfs-show 0 0
How I should add it to rc.local in order to get it working?
Cheers.
Mount external drive
-
- Full of knowledge
- Posts: 400
- Joined: 02 Jan 2011, 18:41
- Distribution: Porteus 5.0-RC1
- Location: In a hayfield
Mount external drive
Something like this should work:
Also, sed will insert lines, but I have little knowledge of using it.
You might want to make a backup of /etc/fstab before running this, just to be safe.
So, rc.local would look like this:
Code: Select all
bash -c 'echo /dev/sdd1 /mnt/sdd1 ntfs-3g users,noatime,nodiratime,suid,dev,exec,async,comment=x-gvfs-show 0 0 >>/etc/fstab'
You might want to make a backup of /etc/fstab before running this, just to be safe.
So, rc.local would look like this:
Code: Select all
cp /etc/fstab /etc/fstab.bak
bash -c 'echo /dev/sdd1 /mnt/sdd1 ntfs-3g users,noatime,nodiratime,suid,dev,exec,async,comment=x-gvfs-show 0 0 >>/etc/fstab'
Mount external drive
Hello,
Thanks for the prompt help. Will test this weekend.
Cheers.
Thanks for the prompt help. Will test this weekend.
Cheers.
-
- Shogun
- Posts: 206
- Joined: 18 Aug 2013, 12:09
- Distribution: Slackware PartedMagic Xubuntu
- Location: The Netherlands
Mount external drive
For a non-handholding response see Permanent device/mount name for a USB disk.