익명 09:33

Mounting a new hard drive (sda1) to my existing filesystem

Mounting a new hard drive (sda1) to my existing filesystem

I tried to read some posts regarding mounting a new hard drive, but I am facing some problem. My new hard drive is sda1. The output of sudo fdisk -l is:

sudo fdisk -l

Disk /dev/sdb: 999.7 GB, 999653638144 bytes
255 heads, 63 sectors/track, 121534 cylinders, total 1952448512 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00016485

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        2048  1935822847   967910400   83  Linux
/dev/sdb2      1935824894  1952446463     8310785    5  Extended
/dev/sdb5      1935824896  1952446463     8310784   82  Linux swap / Solaris

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x78dbcdc1

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048  1953521663   976759808    7  HPFS/NTFS/exFAT

What should be done to add this new sda1 hard drive on booting up? What should be added in the /etc/fstab file? I have not performed any partition on the new sda1 drive. I need help on how to proceed from scratch and can't afford to take any risk. Please help!



Top Answer/Comment:

A possible recommendation, which will mount sda1 at system startup with read-write permissions for you and your group, and read-only permissions for others, might be adding this line to /etc/fstab:

UUID=<ID-NO-OF-SDA1>   /media/<Your-User-Name>/<Label-Of-SDA1>   ntfs   defaults,auto,nls=utf8,uid=1000,gid=1000,dmask=002,fmask=113   0   0

And if you don't have any plans for a shared use of this drive with Windows, you can prefer using EXT4 format and then add this line instead:

UUID=<ID-NO-OF-SDA1>   /media/<Your-User-Name>/<Label-Of-SDA1>   ext4   nodev,nosuid   0   2

Note: You can get the UUID and Label of SDA1 using GParted.

상단 광고의 [X] 버튼을 누르면 내용이 보입니다