How to mount partition at startup? (Solved)

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
markcynt

How to mount partition at startup? (Solved)

Post by markcynt »

I've managed to do this in Mandriva KDE (really simple) and openSUSE KDE (not as simple) but Gloria (Gnome) seems to be different.

The partition is a backup NTFS partition. I tried editing fstab but I'm missing something. How can I make this happen?

Here's my fstab. It's the last entry I put in, (/dev/sdb2).

Edit: Right now I can't even mount it manually. I get a You are not privileged to mount error.

Code: Select all

# /etc/fstab: static file system information.
#
# Use 'vol_id --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    defaults        0       0
# / was on /dev/sda9 during installation
UUID=8d3e92e7-cf13-47df-985d-3738036ce02c /               ext3    relatime,errors=remount-ro 0       1
# /home was on /dev/sda10 during installation
UUID=6f89dfba-8b5f-48be-a900-9f6e71995f1d /home           ext3    relatime        0       2
# swap was on /dev/sda1 during installation
UUID=e14010b9-cf8e-45f6-8c19-bd7ef28fa36f none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
# Entry for /dev/sdb2 :
UUID=1F4D93145B084DAB /media/Backup ntfs-3g defaults 0 0 
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
newW2
Level 5
Level 5
Posts: 821
Joined: Fri Apr 06, 2007 10:24 am
Location: USA

Re: How to mount partition at startup?

Post by newW2 »

I believe you are missing some mount options in the "Options" field on fstab. For example:

Description Accessible by everyone Accessible by a subset of users
NTFS partition ro,auto,user,fmask=0111,dmask=0000 ro,user,auto,fmask=0177,dmask=0077,uid=1000

See the source url for more:
Source: https://help.ubuntu.com/community/Autom ... Partitions
markcynt

Re: How to mount partition at startup?

Post by markcynt »

I've been playing with this for a while now. I think I need more help/explanation than that.
Fred

Re: How to mount partition at startup?

Post by Fred »

markcynt,

Look at the below post. It should have the info you need. If you have questions post back.

http://forums.linuxmint.com/viewtopic.php?f=42&t=22093

Fred
markcynt

Re: How to mount partition at startup?

Post by markcynt »

Thanks Fred, I finally did get it to mount but I need to change the permissions so I can do what I want with the files.

Here's the entry that makes it mount.

Code: Select all

# Entry for /dev/sdb2 :
UUID=1F4D93145B084DAB /media/windows ntfs-3g ro,auto,user,fmask=0111,dmask=0000 0 0 
Do I change ro to r,w,e? I want the whole kitnkaboodle.
Fred

Re: How to mount partition at startup?

Post by Fred »

markcynt,

Use the fstab line I have below:

UUID=1F4D93145B084DAB /media/windows ntfs defaults,umask=007,gid=46 0 0

or

/dev/sdb2 /media/windows ntfs defaults,umask=007,gid=46 0 0

If you still have problems accessing it, in a terminal type:

sudo chown -R mark:mark /media/windows

and then set your permissions:

sudo chmod 666 /media/windows

Fred
markcynt

Re: How to mount partition at startup?

Post by markcynt »

I did everything you said. Let explain in more detail what I'm trying to do.

I have a Windows XP virtual disk in the partition that I'd like to have VB point to and use.

The partition mounts, but when I try to start XP in VB it says the image is read only. Same thing happens when trying to make it executable in sudo nautilus. Nautilus says it's a read only file system.
markcynt

Re: How to mount partition at startup?

Post by markcynt »

I got it working. After I did everything you said to do I went into sudo nautilus, right-clicked on the windows folder and under Others>File access>, I changed it to Read and write.

Now the partition automounts and I can do what I want with the contents.

Thanks Fred and newW2 for the replies.
Fred

Re: How to mount partition at startup?

Post by Fred »

markcynt,

Sorry I took so long, got a phone call. :-)

Glad you got it working.

Fred
Locked

Return to “Installation & Boot”