Visit Our UNIX and Linux User Community


How do I mount a new disk on ubuntu linux?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How do I mount a new disk on ubuntu linux?
# 1  
Old 08-13-2011
How do I mount a new disk on ubuntu linux?

Hello,

I am fairly new to ubuntu and have been learning linux using this distro. I am using Ubuntu 11.04 server.

Recently I added a new HD to the desktop.. however I know I need to mount it,

My question is how would I mount this disk? so I can use it as a drive?

Thanks
here are my disks, I want to mount and use constantly the 400GB

Here is what i see now

Filesystem Size Used Avail Use% Mounted on

Quote:

DF -k

/dev/sdb1 7.4G 7.0G 35M 100% /
none 99M 220K 99M 1% /dev
none 106M 0 106M 0% /dev/shm
none 106M 436K 106M 1% /var/run
none 106M 0 106M 0% /var/lock
Disk Information

Quote:
*-disk:0
description: ATA Disk
product: ST3400620A
vendor: Seagate
physical id: 0
bus info: scsi@0:0.0.0
logical name: /dev/sda
version: 3.AA
serial: 3QH0204J
size: 372GiB (400GB)
capabilities: partitioned partitioned:dos
configuration: ansiversion=5 signature=000cd8fa

*-disk:1
description: ATA Disk
product: FUJITSU MPE3084A
vendor: Fujitsu
physical id: 0.1.0
bus info: scsi@0:0.1.0
logical name: /dev/sdb
version: EE-C
serial: 05097126
size: 8063MiB (8455MB)
capabilities: partitioned partitioned:dos
configuration: ansiversion=5 signature=00062819

*-cdrom
description: DVD writer
product: DVDRW SHW-16H5S
vendor: LITE-ON
physical id: 1
bus info: scsi@1:0.0.0
logical name: /dev/cdrom
logical name: /dev/cdrw
logical name: /dev/dvd
logical name: /dev/dvdrw
logical name: /dev/scd0
logical name: /dev/sr0
version: LS0N
capabilities: removable audio cd-r cd-rw dvd dvd-r
configuration: ansiversion=5 status=nodisc
# 2  
Old 08-13-2011
Please post output from:

Code:
sudo fdisk -l

# 3  
Old 08-13-2011
output

Quote:

Disk /dev/sda: 400.1 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000cd8fa
Device Boot Start End Blocks Id System
/dev/sda1 1 48642 390710272 5 Extended
Disk /dev/sdb: 8455 MB, 8455200768 bytes
255 heads, 63 sectors/track, 1027 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00062819
Device Boot Start End Blocks Id System
/dev/sdb1 1 981 7875584 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sdb2 981 1028 378881 5 Extended
/dev/sdb5 981 1028 378880 82 Linux swap / Solaris

# 4  
Old 08-13-2011
You want to use sda, right, which is 400gb. Sdb has your OS, so we don't want to touch that. If so here are the steps to use that disk:

1. Layout a filesystem, run mkfs.ext4 /dev/sda1
2. Once FS IS in place, mount it. Edit /etc/fstab and add a line that reads like below
/dev/sda1 /newhd ext4 defaults 0 0
3. mkdir /newhd
4. mount /newhd
# 5  
Old 08-13-2011
I am getting the following..

$sudo mkfs.ext4 /dev/sda1
mke2fs 1.41.14 (22-Dec-2010)
mkfs.ext4: inode_size (128) * inodes_count (0) too big for a
filesystem with 0 blocks, specify higher inode_ratio (-i)
or lower inode count (-N).
# 6  
Old 08-13-2011
Take a look here:
Code:
http://ubuntuforums.org/showthread.php?t=1659376

 

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

Unable to mount ext4 filesystem (created from Ubuntu) in Solaris 11

Hello everyone, I am trying to mount an ext4 filesystem which I created from Ubuntu. But mount command fails saying: prakhar@Solaris:~$ sudo mount /dev/dsk/c10t0d0p1 /mnt Password: mount: /dev/dsk/c10t0d0p1 is not this fstype And I also tried this: prakhar@Solaris:~$ fstyp... (6 Replies)
Discussion started by: Prakhar Mishra
6 Replies

2. Solaris

Please help me.how to mount another disk

So. My system have 2 solaris10 machine but system disk of machine 1 data crash.I bring the system disk of machine 1 install on machine2 for get data from disk machine1 but I can't mount disk. because msg is bash-3.00# mount /dev/dsk/c1t3d0s0 /mnt mount: /dev/dsk/c1t3d0s0 is not this fstype... (3 Replies)
Discussion started by: infjustice
3 Replies

3. Shell Programming and Scripting

if (disk is mounted) unmount if (disk is unmounted) mount

Hey there, sorry if this is a bit too much of a noob question, trying to get to grips with a simple bash script - but i have done ZERO bash scripting. basically having worked out how to mount and unmount disks using: disktool -m *device* & disktool -e *device* - and looking at the result of... (2 Replies)
Discussion started by: hollister
2 Replies

4. Ubuntu

[UBUNTU] mount.nfs fails in Ubuntu / Works on Red Hat!!!

Gurus, I want log in locally to my Lucid (10.04) workstation and have my code saved over the network on my samba account At work, all developers have samba user ids and when we were running Red Hat, we went thru the following procedure to get setup. * open a shell session to NFS server... (2 Replies)
Discussion started by: alan
2 Replies

5. Filesystems, Disks and Memory

Mount NCR Unix disk on Linux box

Hi all I have an NCR UNIX hard disk I need to mount it on a Linux box The FS Type in fdisk on linux is '63' for the partition How can i mount on my linux box ? what is kernel module i needed ? (6 Replies)
Discussion started by: yasser202
6 Replies

6. Ubuntu

XP and Linux (Ubuntu) on same disk, Can I install Ubuntu on not-yet partitioned portion of disk?

My PC (Esprimo, 3 yeas old) has one hard drive having 2 partitions C: (80 GB NTFS, XP) and D: (120 GB NTFS, empty) and and a 200 MB area that yet is not-partitioned. I would like to try Ubuntu and to install Ubuntu on the not-partitioned area . The idea is to have the possibility to run... (7 Replies)
Discussion started by: C.Weidemann
7 Replies

7. Linux

I want to mount my disk forever

Hi guys! I've just mounted my drive in fstab: /dev/sdb /myfolder ext3 defaults 0 0 and rebooted linux. I've got severel failers during booting process and also I can't login as root first time: login: root password:root incorrect login login:user password: user ... (1 Reply)
Discussion started by: Junior Admin
1 Replies

8. UNIX for Dummies Questions & Answers

Mount Second Disk

Anyone, I am trying to mount a second hard drive on a sunfire V120 w/solaris 5.8. I took this hard drive from another system because I deleted some files off that system and I want to mount it to another system so I can copy the file back onto the system. I really have no other means of... (2 Replies)
Discussion started by: dummy101
2 Replies

Featured Tech Videos