Click to See Complete Forum and Search --> : how do i change or add mount points?
soleblazer
12-13-2000, 02:17 PM
Greetings all.
I want to change my mount point names. Can i simply edit my /etc/fstab file to change the name of the mount points?
Also, if I want to add another mount point, do I need to add another physical drive? I have this devices:
/dev/sdb1
/dev/sdb1
/dev/sdc1
/dev/sdd1
/dev/sda1
/dev/sda2...etc.
I am guessing that sd is bc I have scsi devices, and that the 3rd character is denoting a seperate physical device and the 4th is a partiion on the physical device??
Could i further split up say sdd and if so how?
SOrry for so many questions but I am trying to get advanced :-)
RageAHolic
12-13-2000, 02:35 PM
Originally posted by soleblazer:
Greetings all.
I want to change my mount point names. Can i simply edit my /etc/fstab file to change the name of the mount points?
Yep...though a device doesn't need to be listed in /etc/fstab to be mounted. /etc/fstab is for mounting devices at boot or for creating a kind of alias between the /mount/point and the /device/name.
A device that is not listed in /fstab can be mounted like this:
mount -t vfat /dev/sdb1 /dos1
If you change the mount point in /etc/fstab...make sure that you actually make the directory for the new mount point.
If you change the mount point to /dos1...you can create it with:
mkdir /dos1
Also, if I want to add another mount point, do I need to add another physical drive? I have this devices:
/dev/sdb1
/dev/sdb1
/dev/sdc1
/dev/sdd1
/dev/sda1
/dev/sda2...etc.
I am guessing that sd is bc I have scsi devices, and that the 3rd character is denoting a seperate physical device and the 4th is a partiion on the physical device??
Could i further split up say sdd and if so how?
SCSI device names follow the /dev/sdxx convention. The letter following the "sd" indicates the drives position on the SCSI channel. The first SCSI device would be /dev/sda, the second device would be /dev/sdb and so on. The Number following the the "a" "b"...is the partition number...as in 1-4 being primary partitions and 5-X are logical partitions.
If you want to add/change a mount point, it has nothing to do with the /device/name...you don't have to worry about doing anything to them.
By split, are you asking whether or not you can partition /dev/sdd?
Hope this helps http://www.linuxnewbie.org/ubb/smile.gif
------------------
...your friendly neighborhood RageAHolic (http://www.angelfire.com/electronic/RageAHolic/index.html)
Rage fueled by: AMD Athlon
soleblazer
12-13-2000, 03:10 PM
Yeah, I was wanting to know howto actually split an existing and mounted drive into 2 more mount points which I guess would be partitions.
Also, I renamed the mount point for one of the devices before and I got an error (forget the error, something about the mount point not being found), I thought that I may be able to just change the name of the mount point in fstab file?
Thanks so much!!!!
RageAHolic
12-13-2000, 06:50 PM
Originally posted by soleblazer:
Yeah, I was wanting to know howto actually split an existing and mounted drive into 2 more mount points which I guess would be partitions.
You can use an fdisk program; fdisk and cfdisk are two common disk partitioning programs. cfdisk is more immediately user-friendly and intuitive...fdisk is user-friendly, but it's not as immediately intuitive as cfdisk.
fdisk /dev/sdd
OR
cfdisk /dev/sdd
fdisk and cfdisk will destroy all data on the device...they're not like Partition Magic. There is the possibility of data loss, so becareful. There is an fdisk NHF here at LNO.
Also, I renamed the mount point for one of the devices before and I got an error (forget the error, something about the mount point not being found), I thought that I may be able to just change the name of the mount point in fstab file?
Thanks so much!!!!
Like I said, in my previous post:
If you change the mount point in /etc/fstab...make sure that you actually make the directory for the new mount point.
If you change the mount point to /whatever...you can create it with:
mkdir /whatever
You can't just change the mount point in /etc/fstab...the mount point is a directory that must exist somwhere in the directory tree.
Essentially, mounting a device to a mount point makes the contents of the drive appear in the /etc/fstab-defined mount point directory. In order for the contents to be viewed and for the drive to be mounted, the directory MUST exist.
Here's (http://www.local.net/~jgo/LinuxGuide/linux-mount.html) a link that may clarify it a little more.
------------------
...your friendly neighborhood RageAHolic (http://www.angelfire.com/electronic/RageAHolic/index.html)
Rage fueled by: AMD Athlon
[This message has been edited by RageAHolic (edited 13 December 2000).]