aiden707
February 20th, 2009, 05:27 PM
hi
i have ubuntu server 8.10 with xubuntu desktop installed, i bought a second hand hard drive on ebay which is set up and fine in my bios, (also i tried reinstalling ubuntu server and the instalation process recogized the drive and gave me the option to use it for the installation) I didnt install on it as i want it to be installed useing ntfs so i can use samba to share it with a windows client pc. i have tried useing "mount manager 0.2.4" i can see the hdd in the file tree but have no option to do anything just see info:
type :disk
product:ST380011A
major:8
minor:16
so i followed these instructions useing the command line
** I suggest you format the 250Gb volume as ext3 instead of ext2 **
1. Create a folder, where you want to mount your 250 GB volume
Code:
sudo mkdir /media/Data
2. Connect the drive to your PC and find the device name using
Code:
sudo fdisk -l
* I assume fdisk reports the new 250 GB volume as /dev/hdb1
3. Edit /etc/fstab
Code:
gksudo gedit /etc/fstab
4. Add this line to the end of the file
Code:
/dev/hdb1 /media/Data ext3 defaults 0 2
5. Save and Exit.
6. To mount the new partition, type
Code:
sudo mount -a
If this works, the partition should mount automatically next time you reboot.
7. /media/Data will be owned by root. If you would like to change that
Code:
sudo chown -R user_name:group_name /media/Data
* Usually group_name is same as your user_name
Now, create a shortcut in your $HOME directory to /media/Data.
EDIT: Be sure to change /dev/hdb1 to whatever appropriate in your set up, as reported by fdisk from Step 2.
__________________
all this works fine i know what my hdd is called (dev/sdb) so changed that bit in gedit but when save the line
/dev/sdb /media/Data ext3 defaults 0 2
and when i type sudo mount -a
get this message:
mount: wrong fs type, bad option, bad superblock on /dev/sdb,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
so i tried in gedit again with:
/dev/sdb /media/Data ntfs defaults 0 2
bu got this error:
The device '/dev/sdb' doesn't have a valid NTFS.
Maybe you selected the wrong device? Or the whole disk instead of a
partition (e.g. /dev/hda, not /dev/hda1)? Or the other way around?
i know i am useing right /dev/sdb/ cos it called that in mount manager and when i use "sudo fdisk -l" cos the drive is second hand i dont know what file system is on it>If there is a way to format the drive to make mounting easyier thats fine, please any help greatly apreciated as i cant find the answer on forum posts.
i have ubuntu server 8.10 with xubuntu desktop installed, i bought a second hand hard drive on ebay which is set up and fine in my bios, (also i tried reinstalling ubuntu server and the instalation process recogized the drive and gave me the option to use it for the installation) I didnt install on it as i want it to be installed useing ntfs so i can use samba to share it with a windows client pc. i have tried useing "mount manager 0.2.4" i can see the hdd in the file tree but have no option to do anything just see info:
type :disk
product:ST380011A
major:8
minor:16
so i followed these instructions useing the command line
** I suggest you format the 250Gb volume as ext3 instead of ext2 **
1. Create a folder, where you want to mount your 250 GB volume
Code:
sudo mkdir /media/Data
2. Connect the drive to your PC and find the device name using
Code:
sudo fdisk -l
* I assume fdisk reports the new 250 GB volume as /dev/hdb1
3. Edit /etc/fstab
Code:
gksudo gedit /etc/fstab
4. Add this line to the end of the file
Code:
/dev/hdb1 /media/Data ext3 defaults 0 2
5. Save and Exit.
6. To mount the new partition, type
Code:
sudo mount -a
If this works, the partition should mount automatically next time you reboot.
7. /media/Data will be owned by root. If you would like to change that
Code:
sudo chown -R user_name:group_name /media/Data
* Usually group_name is same as your user_name
Now, create a shortcut in your $HOME directory to /media/Data.
EDIT: Be sure to change /dev/hdb1 to whatever appropriate in your set up, as reported by fdisk from Step 2.
__________________
all this works fine i know what my hdd is called (dev/sdb) so changed that bit in gedit but when save the line
/dev/sdb /media/Data ext3 defaults 0 2
and when i type sudo mount -a
get this message:
mount: wrong fs type, bad option, bad superblock on /dev/sdb,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
so i tried in gedit again with:
/dev/sdb /media/Data ntfs defaults 0 2
bu got this error:
The device '/dev/sdb' doesn't have a valid NTFS.
Maybe you selected the wrong device? Or the whole disk instead of a
partition (e.g. /dev/hda, not /dev/hda1)? Or the other way around?
i know i am useing right /dev/sdb/ cos it called that in mount manager and when i use "sudo fdisk -l" cos the drive is second hand i dont know what file system is on it>If there is a way to format the drive to make mounting easyier thats fine, please any help greatly apreciated as i cant find the answer on forum posts.