Auto Mount Partitions on Boot (also Windows partitions)
Forum rules
Don't add support questions to tutorials; start your own topic in the appropriate sub-forum instead. Before you post read forum rules
Don't add support questions to tutorials; start your own topic in the appropriate sub-forum instead. Before you post read forum rules
Re: Auto Mount Partitions on Boot (also Windows partitions)
Hi Fred,
Please help! I followed this tutorial, and have now stuffed up my hard-drive thing! I am a beginner, and I'm afraid this is not mycomputer so kinda screwed. I tried the CLI to mount the drive, no joy so then I tried the GUI. THe hard drive is now completely unaccessible! HELP
m
Please help! I followed this tutorial, and have now stuffed up my hard-drive thing! I am a beginner, and I'm afraid this is not mycomputer so kinda screwed. I tried the CLI to mount the drive, no joy so then I tried the GUI. THe hard drive is now completely unaccessible! HELP
m
Re: Auto Mount Partitions on Boot (also Windows partitions)
Please post the output of the following commands so we can all determine the source of the problem:mythicalmonster wrote:Hi Fred,
Please help! I followed this tutorial, and have now stuffed up my hard-drive thing! I am a beginner, and I'm afraid this is not mycomputer so kinda screwed. I tried the CLI to mount the drive, no joy so then I tried the GUI. THe hard drive is now completely unaccessible! HELP
m
Code: Select all
sudo blkid -c /dev/null
Code: Select all
cat /etc/fstab
Code: Select all
mount
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: Auto Mount Partitions on Boot (also Windows partitions)
Hi all,
I kind of ran into a problem following this guide, and I'm not sure on how to "get out of it"...
I have - among a few other - one 1,5TB hard drive partitioned into three parts labeled "files" (sdd1), storage (sdd2) and backup (sdd3). My idea was to "move" the location of "Downloads", Music" & Videos" from /home to the "files"-partition by mounting "files", creating the corresponding folders and putting symlinks in /home.
- This works perfectly.
I also want the partition "storage" which is an ntfs volume to automount at boot, and my plan is for that volume (being almost 800GB large) to be the "storage space that my install of Windows 7 shares with LMDE (hence the ntfs, otherwise I would've made it into ext4)
This is where I fail. I created a mount point in /home with the help of the instructions in the OP of this thread.
I made sure I (gosa) have the rights to read and write to the volume by running:
(got it from this thread, have no idea if it is correct http://forums.linuxmint.com/viewtopic.p ... 56&start=0)
My problem is that when rebooting the computer, and opening Nautilus I can't find the volume "storage" as an available drive. If I navigate to /media I do see it, but the folder icon has an X in it, and I can't open it (message says "You do not have the permissions necessary to view the contents of "storage".)
If I right-click the folder icon for "storage" and look at the permissions thay still say that the only one with right to the folder/volume is "root".
So what now? What did I miss?
Here is the output when I run sudo blkid:
And here is my fstab:
Bonus question - Why does my terminal say this when I right-click and choose "open in terminal" when in /media:
(look at the lmde meiia #)
Thanks in advance,
/gosa
I kind of ran into a problem following this guide, and I'm not sure on how to "get out of it"...
I have - among a few other - one 1,5TB hard drive partitioned into three parts labeled "files" (sdd1), storage (sdd2) and backup (sdd3). My idea was to "move" the location of "Downloads", Music" & Videos" from /home to the "files"-partition by mounting "files", creating the corresponding folders and putting symlinks in /home.
- This works perfectly.
I also want the partition "storage" which is an ntfs volume to automount at boot, and my plan is for that volume (being almost 800GB large) to be the "storage space that my install of Windows 7 shares with LMDE (hence the ntfs, otherwise I would've made it into ext4)
This is where I fail. I created a mount point in /home with the help of the instructions in the OP of this thread.
I made sure I (gosa) have the rights to read and write to the volume by running:
Code: Select all
sudo chown -R user /media/files
My problem is that when rebooting the computer, and opening Nautilus I can't find the volume "storage" as an available drive. If I navigate to /media I do see it, but the folder icon has an X in it, and I can't open it (message says "You do not have the permissions necessary to view the contents of "storage".)
If I right-click the folder icon for "storage" and look at the permissions thay still say that the only one with right to the folder/volume is "root".
So what now? What did I miss?
Here is the output when I run sudo blkid:
Code: Select all
/dev/sda1: LABEL="EFI" UUID="70D6-1701" TYPE="vfat"
/dev/sda2: UUID="cdcd9028-452b-32a8-be06-876f1692a786" LABEL="Snow Leopard" TYPE="hfsplus"
/dev/sda3: LABEL="Virtualbox" UUID="F0E652F1E652B814" TYPE="ntfs"
/dev/sdb1: LABEL="swap" UUID="7c429524-3fa2-4022-9ca1-ccf9d651b9f3" TYPE="swap"
/dev/sdc1: UUID="489CB4C19CB4AAB8" TYPE="ntfs"
/dev/sdc2: UUID="E870B0B970B09034" TYPE="ntfs"
/dev/sdc3: LABEL="Win 7 Storage" UUID="96C4C259C4C23AEF" TYPE="ntfs"
/dev/sdb2: UUID="25311594-ef13-45b1-8c1e-414e37c522c1" TYPE="ext4"
/dev/sdb3: UUID="3e9ad51d-a502-4d0b-b790-c2fb79252f98" TYPE="ext4"
/dev/sdd1: LABEL="files" UUID="4a5e3e59-d65a-455b-b3db-3b90c1ca6572" TYPE="ext4"
/dev/sdd2: LABEL="storage" UUID="58DBE5CB2F80A2DF" TYPE="ntfs"
/dev/sdd3: LABEL="backup" UUID="595239EE18A59F3C" TYPE="ntfs"
/dev/sde1: LABEL="Transition" UUID="2C62-01CD" TYPE="vfat"
/dev/sdm1: LABEL="Transition HD" UUID="5DCDC7535F26C2D7" TYPE="ntfs"
/dev/sdl1: LABEL="TV" UUID="264246FD4246D16B" TYPE="ntfs"
/dev/sdn1: LABEL="New Volume" UUID="277E-F194" TYPE="vfat"
Code: Select all
proc /proc proc defaults 0 0
# /dev/sdb1
UUID=7c429524-3fa2-4022-9ca1-ccf9d651b9f3 swap swap sw 0 0
# /dev/sdb2
UUID=25311594-ef13-45b1-8c1e-414e37c522c1 / ext4 rw,errors=remount-ro 0 0
# /dev/sdb3
UUID=3e9ad51d-a502-4d0b-b790-c2fb79252f98 /home ext4 rw,errors=remount-ro,user_xattr 0 0
/dev/sdd1 /media/files ext4 defaults,noatime 0 2
/dev/sdd2 /media/storage ntfs defaults,umask=007,gid=46 0 0
(look at the lmde meiia #)
Code: Select all
gosa@lmde /media $ sudo su
[sudo] password for gosa:
lmde meiia #
Thanks in advance,
/gosa
Re: Auto Mount Partitions on Boot (also Windows partitions)
I couldn't quite follow all of that but I think I can help you with one problem:
Then logout and login again for the group membership to take affect it should work.
You won't see it on the left side panel of Nautilus because it's mounted. Only unmounted partitions show up there. If you want to see it there then Bookmark it.My problem is that when rebooting the computer, and opening Nautilus I can't find the volume "storage" as an available drive.
This HowTo was written with Ubuntu based Mint in mind not LMDE. There is nothing wrong with this line in fstab:If I navigate to /media I do see it, but the folder icon has an X in it, and I can't open it (message says "You do not have the permissions necessary to view the contents of "storage".)
Except that in Ubuntu-Mint all new users are members of the plugdev group ( gid=46 ) by default. In Debian they are not. So if you can add yourself to the plugdev group:/dev/sdd2 /media/storage ntfs defaults,umask=007,gid=46 0 0
Code: Select all
sudo gpasswd -a gosa plugdev
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: Auto Mount Partitions on Boot (also Windows partitions)
And that worked like a charm...altair4 wrote:This HowTo was written with Ubuntu based Mint in mind not LMDE. There is nothing wrong with this line in fstab:Except that in Ubuntu-Mint all new users are members of the plugdev group ( gid=46 ) by default. In Debian they are not. So if you can add yourself to the plugdev group:/dev/sdd2 /media/storage ntfs defaults,umask=007,gid=46 0 0Then logout and login again for the group membership to take affect it should work.Code: Select all
sudo gpasswd -a gosa plugdev
Thanks a lot for your quick help.
/gosa
Re: Auto Mount Partitions on Boot (also Windows partitions)
Hi
I have run the following cli recently to auto mount my windows partition ( witch was win7 32bit)
mkdir /home/me/Windows
sudo su
echo "/dev/sda2 /home/me/Windows ntfs defaults,umask=007,gid=46 0 0" >> /etc/fstab
The above commands worked like a dream for the win7 32bit.
Then two days ago i upgraded win7 32bit to win7 64bit and carried out a fresh install of mint 11 (katya)
and ran the above commands again.
The windows partition auto mounted on my Home, but when i try to read the contents of the win partiton. i get nothing.
Thanks
Dean
I have run the following cli recently to auto mount my windows partition ( witch was win7 32bit)
mkdir /home/me/Windows
sudo su
echo "/dev/sda2 /home/me/Windows ntfs defaults,umask=007,gid=46 0 0" >> /etc/fstab
The above commands worked like a dream for the win7 32bit.
Then two days ago i upgraded win7 32bit to win7 64bit and carried out a fresh install of mint 11 (katya)
and ran the above commands again.
The windows partition auto mounted on my Home, but when i try to read the contents of the win partiton. i get nothing.
Code: Select all
me@me-System-Product-Name ~ $ sudo blkid -c /dev/null
[sudo] password for me:
/dev/sda1: LABEL="System Reserved" UUID="50B4C36DB4C3545E" TYPE="ntfs"
/dev/sda2: UUID="8E4EDC344EDC1735" TYPE="ntfs"
/dev/sda5: UUID="e0816cb8-23eb-45cf-803c-76e7608dc420" TYPE="ext3"
/dev/sda6: UUID="30a47fd4-c169-4483-851c-b9596f18b18e" TYPE="ext3"
/dev/sda7: UUID="c9fe47c2-85ff-4393-86a4-773f81861bcb" TYPE="ext3"
/dev/sda8: UUID="31b05315-b9f3-4a32-89e0-efe697ca0e01" TYPE="ext3"
/dev/sda9: UUID="a014c50a-056c-4851-9f5f-954b81a5f669" TYPE="ext3"
/dev/mapper/cryptswap1: UUID="d5162753-6078-492f-abf6-59a98e10cd06" TYPE="swap"
Code: Select all
me@me-System-Product-Name ~ $ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' 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/sda6 during installation
UUID=30a47fd4-c169-4483-851c-b9596f18b18e / ext3 errors=remount-ro 0 1
# /boot was on /dev/sda5 during installation
UUID=e0816cb8-23eb-45cf-803c-76e7608dc420 /boot ext3 defaults 0 2
# /home was on /dev/sda9 during installation
UUID=a014c50a-056c-4851-9f5f-954b81a5f669 /home ext3 defaults 0 2
# /tmp was on /dev/sda7 during installation
UUID=c9fe47c2-85ff-4393-86a4-773f81861bcb /tmp ext3 defaults 0 2
# /usr was on /dev/sda8 during installation
UUID=31b05315-b9f3-4a32-89e0-efe697ca0e01 /usr ext3 defaults 0 2
# swap was on /dev/sda10 during installation
#UUID=6b5b59a5-2403-4353-a8fa-7e58c3bb4584 none swap sw 0 0
/dev/mapper/cryptswap1 none swap sw 0 0
/dev/sda2 /home/me/Windows ntfs defaults,umask=007,gid=46 0 0
/dev/sda2 /home/me/Windows ntfs defaults,umask=007,gid=46 0 0
Code: Select all
me@me-System-Product-Name ~ $ mount
/dev/sda6 on / type ext3 (rw,errors=remount-ro,commit=0)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
/dev/sda7 on /tmp type ext3 (rw,commit=0)
/dev/sda5 on /boot type ext3 (rw,commit=0)
/dev/sda9 on /home type ext3 (rw,commit=0)
/dev/sda2 on /home/me/Windows type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
/dev/sda8 on /usr type ext3 (rw,commit=0)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
/home/me/.Private on /home/me type ecryptfs (ecryptfs_check_dev_ruid,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs,ecryptfs_sig=528f9ff1e9f185bb,ecryptfs_fnek_sig=7165aac9fcd192d2)
gvfs-fuse-daemon on /home/me/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=me)
Dean
Re: Auto Mount Partitions on Boot (also Windows partitions)
[1] You have a double listing of the windows entry in fstab which you should fix by placing a # sign in front of the last line like this:
From /etc/fstab:
You've encrypted your home directory. I know nothing about an encrypted home directory but your current fstab line will mount the partition as accessible to you but not owned by you. I don't know how encryption works or where in the boot process it mounts the encrypted partition so the following 2 options could be pure rubbish:
[a] Change the fstab line to this:
Then run the following command to mount the partition this time with you as owner:
OR, Put the mount point outside your /home directory:
Then change the fstab line to this:
Sorry, just don't know enough about an encrypted home directory to know if that will work. You may have to wait for someone who does.
From /etc/fstab:
[2] Having said that it looks like it's mounting it exactly where you told it to mount. From "mount":/dev/sda2 /home/me/Windows ntfs defaults,umask=007,gid=46 0 0
#/dev/sda2 /home/me/Windows ntfs defaults,umask=007,gid=46 0 0
EDIT: I think I may see a problem here./dev/sda2 on /home/me/Windows type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
You've encrypted your home directory. I know nothing about an encrypted home directory but your current fstab line will mount the partition as accessible to you but not owned by you. I don't know how encryption works or where in the boot process it mounts the encrypted partition so the following 2 options could be pure rubbish:
[a] Change the fstab line to this:
Then unmount the partition:/dev/sda2 /home/me/Windows ntfs defaults,uid=1000,umask=007,gid=46 0 0
Code: Select all
sudo umount /home/me/Windows
Code: Select all
sudo mount -a
Code: Select all
sudo mkdir /media/Windows
Then unmount the partition and do the "sudo mount -a" as in option [a]./dev/sda2 /media/Windows ntfs defaults,umask=007,gid=46 0 0
Sorry, just don't know enough about an encrypted home directory to know if that will work. You may have to wait for someone who does.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: Auto Mount Partitions on Boot (also Windows partitions)
Your post is a non-sequitur. This is a HowTo not a request for help. It's presented in the traditional way by someone who knows quite a bit on the subject. Someone posted a support question using this Howto. If this had been a normal post started in it's own topic your post would make more sense but here it's just rude.4hya wrote:install storage device manager.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: Auto Mount Partitions on Boot (also Windows partitions)
Ok altair4 i auto mounted outside my home directory in media instead,
Which auto mounts just fine on every boot up.
Many Thanks
Dean
Which auto mounts just fine on every boot up.
Many Thanks
Dean
Re: Auto Mount Partitions on Boot (also Windows partitions)
Hi, im starting with linux and i need a little help undoing these commands that i made to automount a partition
since it didnt work as i expected i found another way to do it with pysdm, so i would like to undo this, can someone help me? Thank YouTo auto mount an ntfs Windows partition in /media open a terminal and type:
sudo mkdir /media/Windows
sudo su
echo "/dev/sdxx /media/Windows ntfs defaults,umask=007,gid=46 0 0" >> /etc/fstab
Re: Auto Mount Partitions on Boot (also Windows partitions)
You can open the fstab with:
There you can remove the line, most likely at the bottom. Then save & exit.
Please don't remove any other lines from the file.
Code: Select all
gksudo gedit /etc/fstab
Please don't remove any other lines from the file.
Registered Linux User #528502
Feel free to correct me if I'm trying to write in Spanish, French or German.
Feel free to correct me if I'm trying to write in Spanish, French or German.
Re: Auto Mount Partitions on Boot (also Windows partitions)
I have successfully auto mounted my partitions, but have a minor problem.
When the system boots up and mount partitions, the messages pop-up asking how to handle mounted folders (open or unmount). Because I have about 10 partitions mounted, it's very annoying (the messages pop-up for each partitions).
How can I disable message pop-ups?
When the system boots up and mount partitions, the messages pop-up asking how to handle mounted folders (open or unmount). Because I have about 10 partitions mounted, it's very annoying (the messages pop-up for each partitions).
How can I disable message pop-ups?
Re: Auto Mount Partitions on Boot (also Windows partitions)
The best thing to do is post the output of these commands so we can see how you are set up:
Code: Select all
sudo blkid -c /dev/null
Code: Select all
cat /etc/fsatb
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: Auto Mount Partitions on Boot (also Windows partitions)
I figured out how to solve my problem in Linux Mint 12.
Go to System Settings > Removable Media, and check "Don't ask how to deal with removable media" (this is my translation from the message in Japanese, it might be slightly different in the original language).
Self-solved.
Go to System Settings > Removable Media, and check "Don't ask how to deal with removable media" (this is my translation from the message in Japanese, it might be slightly different in the original language).
Self-solved.
Re: Auto Mount Partitions on Boot (also Windows partitions)
This post should be marked as STICKY. It's the easiest way to automount NTFS drives. The instructions are very clear. Thanks to Fred.
I tried before but could'nt make it with PYSDM: this software is supposed to make easier but it did'nt show all my NTFS partitions, so it was useless.
Follow the instructions on the original post and you're done!
I tried before but could'nt make it with PYSDM: this software is supposed to make easier but it did'nt show all my NTFS partitions, so it was useless.
Follow the instructions on the original post and you're done!
Re: Auto Mount Partitions on Boot (also Windows partitions)
It already is.leskieurbiker wrote:This post should be marked as STICKY.
Re: Auto Mount Partitions on Boot (also Windows partitions)
Hi!Fred wrote:...
To auto mount an ntfs Windows partition in /media open a terminal and type:
sudo mkdir /media/Windows
sudo su
echo "/dev/sdxx /media/Windows ntfs defaults,umask=007,gid=46 0 0" >> /etc/fstab
I made this changes for automont my hard disk with windows.
My line in fstab is:
Code: Select all
/dev/sda2 /media/Dany7 ntfs defaults,umask=007,gid=46 0 0
I installed Thunderbird and, at the moment, I use the same folder for thunderbird in linux and windows (the folder of thunderbird are in hard drive with windows).
When start thunderbird appears a error that are innacesible.
If I deleted this line in my fstab, restart linux and mount hard drive (access to computer and doble click to the hard drive with windws (sda2)) works fine, I can open Thunderbird and works fine.
But, if automount this drive with this line in my fstab, not works, I go to computer, doble click (for test) in my hard drive (sda2) and try to open thunderbird and appears the same errror message (...are innacessible).
Can help me please?
This is very important for me.
Thank you very much!!!
Edit: Solved: I don't view that, my name hard drive are one with space and the folder that I create in .media are without space.
Sorrys.
Re: Auto Mount Partitions on Boot (also Windows partitions)
I'm new to linux and tried to follow the instructions.
After trying to boot up again it said it could not find the drives to boot up and it cuased my system to pause til i pressed retry skip or manual,
How do i undo what ive done and start again?
After trying to boot up again it said it could not find the drives to boot up and it cuased my system to pause til i pressed retry skip or manual,
How do i undo what ive done and start again?