PDA

View Full Version : How to mount two more disks?


werdigo49
April 29th, 2009, 22:45
I have 7.1 installed on a 30G hard disk, but have another ide disk (250G) and a scsi disk (250G) that I use for data backups when I'm running Linux. How do I get access to those disks in FreeBSD?

I've looked at Fdisk (through /usr/sbin/sysinstall) and it shows the other disks as ad1 and ad6 and partitions on them, but I'm kind of afraid to do anything with the partition editor for fear of damaging all of my backup data.

ale
April 29th, 2009, 23:07
What do you have to do exactly? Access the data on the drives or create new partitions?

werdigo49
April 30th, 2009, 01:54
What do you have to do exactly? Access the data on the drives or create new partitions?

Just access the data and be able to write to the existing partitions. I could have created new partitions when I had fdisk open, but backed out because there was no reason to.

phoenix
April 30th, 2009, 04:53
Just mount the filesystems in those partitions, then.

vivek
April 30th, 2009, 05:10
Use mount command to mount it. For e.g. create dir as follows:
mkdir /disk1
/dev/ad6s1 on /disk1
df -H
Replace /dev/ad6s1 with actual partition name. Once satisfied update /etc/fstab

werdigo49
May 8th, 2009, 22:09
I created the directory /media/sata2a, and determined that partition ad1s1 is the one I want. (/dev/ad1s1 does exist.) This is what I get when I follow Vivek's method:

# /dev/ad1s1 on /media/sata2a
/dev/ad1s1: Permission denied.

No "mount" needed?

fronclynne
May 8th, 2009, 22:24
No, you do need to use mount.
Something like
mount -t ext2fs /dev/ad1s1 /media/sata2a
Note that writing may be sketchy and I doubt that, if it's ext3, the journal will be updated.

ale
May 8th, 2009, 22:28
What is the output of mount?
And fdisk ad1?
And ls -al /dev/ad*?
Are you doing that as root? Check with whoami.
Are you sure it's not mounted yet?
As you were talking about linux, did you tried with mount -t ext2fs ... or mount -t msdosfs ...?

ale
May 8th, 2009, 22:29
and I doubt that, if it's ext3, the journal will be updated.It will not.

vivek
May 8th, 2009, 23:18
I created the directory /media/sata2a, and determined that partition ad1s1 is the one I want. (/dev/ad1s1 does exist.) This is what I get when I follow Vivek's method:

# /dev/ad1s1 on /media/sata2a
/dev/ad1s1: Permission denied.

No "mount" needed?
my bad, it should be:
mount /dev/ad1s1 /media/sata2a