You do not do that in UNIX. What are you trying to do?
shows the mounted disks or volumes. The last column is a mountpoint (directory).
Use the cd command to change directories so that your current directory is the mountpoint.
This User Gave Thanks to jim mcnamara For This Post:
Please -- I cannot find how to change in terminal from e.g. sda1 to sda2 or to sdb*
UNIX partitions don't work that way. You don't use drive letters or device names to access files. In UNIX, files are all organized as one great big tree. Instead of drive letters, UNIX uses directories as mount points. This lets you put partitions on whatever folder you want. This is even customizable.
This is what the file tree on my system looks like:
'udev' and 'shm' are special kernel filesystems which you can ignore for now.
If I created a file inside /, or /tmp/, or /sbin/, or /etc/ -- nowhere inside any of the other folders listed -- the file would end up inside /dev/sdc3.
If I created a file in /home/username/, it would end up in /dev/sdc5.
My /var/ partition ended up not being large enough to hold our database, so I grafted another partition onto /var/lib/mysql for it to work inside.
Which partitions go where is traditionally controlled by lines in the /etc/fstab file, but various systems may handle it different ways.
Last edited by Corona688; 12-21-2011 at 11:22 AM..
I got a problem with the permission of mounted 2TB drive in my Linux/Mint system. All the files in any folder are with 777, which is not what I want.
my fstab line for this disk is:
UUID=90803E0C803DF974 /media/grape/Workspace1_ntfs ntfs auto,users,permissions 0 0 and blkid gave me:
$> blkid
... (4 Replies)
Hi,
I am facing issue with one of the drive is solaris 10. it is showing offline in the messages file
scsi: WARNING: /pci@2,600000/QLGC,qlc@0/fp@0,0/ssd@w5006016746e00b1b,0 (ssd0):
drive offline
genunix: WARNING: Page83 data not standards compliant DGC LUNZ 0430
... (1 Reply)
I have a 320 GB drive which dual boots Windows and Debian:
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal):... (0 Replies)
I use Ubuntu Linux, and I'd like to become more familiar with the CLI. I have these questions:
1) How to remove a directory that is not empty? The only option in man rmdir is -p and that does not do what I need. rm -R needs sudo for some reason.
2) What is a CLI command to make all the files... (3 Replies)
Anyone know how I can map a windows drive to an apache shared drive?
In my httpd.conf file, I have:
Alias /merc_rpts/ "/u/merc_rpts/"
<Directory "/u/merc_rpts">
Options Indexes
</Directory>
I'm able to bring up a browser and see the contents of this folder.
In... (0 Replies)
Hi
I have 2 75GB SCSI hard drives and 2 250GB SATA hard drives which are using RAID Level 1 respectively. I wana have both FTP and Apache installed on them as services. I'm wondering what's the best partitioning schem? I wana use FC3 as my OS, so, I thought I can use the 75GB hard drive as the /... (0 Replies)