i have a separate partition for my music which i would like to be mounted when i start up, how would i go about doing this?
i have a separate partition for my music which i would like to be mounted when i start up, how would i go about doing this?
What type of file system does the partition have? ext3? ntfs? fat32?
Also can you post the output of
Code:sudo fdisk -l
and they are all EXT4Code:Disk /dev/sda: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x0a0b9548 Device Boot Start End Blocks Id System /dev/sda1 * 1 3916 31455238+ 83 Linux /dev/sda2 3917 6527 20972857+ 83 Linux /dev/sda3 6528 6788 2096482+ 82 Linux swap / Solaris
Firstly make a mount point for the partition.
Then edit fstabCode:sudo mkdir /media/<name>
Assuming /dev/sda1 is the partition of interest, add in the following line at the end of the file:Code:gksudo gedit /etc/fstab
Then to test it doCode:/dev/sda1 /media/<mount point name> ext4 defaults 0 0
Then browse to wherever you mounted it to investigate. Any problems, post them back here.Code:sudo mount -a
Last edited by Zoot7; October 31st, 2009 at 09:37 PM.
Which one is music? I'm gonna assume it's sda2 because it's non-boot
Create a mount pount, again I will say /mnt/Music
Open fstab as root:Code:sudo mkdir /mnt/Music
Code:gksu gedit /etc/fstab
Add in the line (tabs and/or spaces - both are good)
Save and exit and then runCode:/dev/sda2 /mnt/Music ext4 defaults 0 0More hints and explanation: http://wiki.archlinux.org/index.php/Fstab (ignore the fact it's for arch - it still works and fstab is a common file with the same config options across GNU/Linux)Code:sudo mount -a
Hello I am encoutnering the same problem.
Here is my fdisk -l
adrian@adrian-laptop:~$ sudo fdisk -l
[sudo] password for adrian:
Disk /dev/sda: 100.0 GB, 100030242816 bytes
255 heads, 63 sectors/track, 12161 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf1d6f1d6
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1912 15358108+ 7 HPFS/NTFS
/dev/sda2 3129 11061 63721822+ c W95 FAT32 (LBA)
/dev/sda3 1913 3128 9767520 83 Linux
/dev/sda4 11813 12161 2803342+ 82 Linux swap / Solaris
Partition table entries are not in disk order
adrian@adrian-laptop:~$ ^C
adrian@adrian-laptop:~$
I want to mount the /dev/sda2 and the /dev/sda1
I created two folders in /media one called sda1 and the other windows
Then I did gksudo gedit /etc/fstab
Then I did /dev/sda1 /media/sda1 ext4 defaults 0 0
and the reply was sudo: /dev/sda1: Permission denied
ANy suggestions and yes I am a newbie to this as you can see
Thanks
Fire up a terminal, to do this click Applications > Accessories > Terminal
Then type (or copy/paste) the following - 1 line at a time
Code:
sudo aptitude update
sudo aptitude install ntfs-config
Ok so when that returns you to user@pcname, that should be it installed
Next, make sure you have NO drives mounted (they'll usually appear on your desktop). And then run the program from Applications > System Tools
Note: In Ubuntu 9.04 (Jaunty) it appears that the configuration tool has moved to System > Administration.
Enter your password when prompted - and then choose the drives that you want to be automounted. Click Apply.
Now simply make sure that "Enable Write Support for Internal Drives" and click OK.
Enjoy your automounted NTFS Drives
thanks for the advice but I am not connected to the internet. ANy way to manually do it in Terminal? Or is it to dangerous/confusing
Almost the same as I posted above.
Firstly make a mount point for the partition.
(Lets say Windows..)
Then edit fstabCode:sudo mkdir /media/Windows
Add the following line at the end and save.Code:kdesu kate /etc/fstab
Then to test it doCode:/dev/sda1 /media/Windows ntfs-3g defaults 0 0
Browse to /media/Windows to test if it worked.Code:sudo mount -a
The terminal takes a bit of getting used to especially if you've never really used it much, but it's well worth it. It's without doubt an extremely powerful tool once you get the hang of it.
Last edited by Zoot7; November 6th, 2009 at 11:45 PM.
Bookmarks