Re: Accessing a different partiton help !
before mounting
my mounting batch file called mtall
after mounting
what lines do in need to add to my batch to give me read/write permissions?
before mounting
ant2ne@ant2ne-laptop:~$ sudo ls -l /mnt
Password:
total 36
drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda0
drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda1
drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda2
drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda3
drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda4
drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda5
drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda6
drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda7
drwxr-xr-x 2 root root 4096 2007-05-12 01:09 sda8
ant2ne@ant2ne-laptop:~$ sudo more /etc/mtab | grep sda
/dev/sda2 / ext3 rw,errors=remount-ro 0 0
/dev/sda6 /home ext3 rw 0 0
Password:
total 36
drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda0
drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda1
drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda2
drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda3
drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda4
drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda5
drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda6
drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda7
drwxr-xr-x 2 root root 4096 2007-05-12 01:09 sda8
ant2ne@ant2ne-laptop:~$ sudo more /etc/mtab | grep sda
/dev/sda2 / ext3 rw,errors=remount-ro 0 0
/dev/sda6 /home ext3 rw 0 0
#!/bin/sh
# sda1 = Windows
# sda2 = root
# sda3 = extended partition, not mountable
# sda4 = does not exist yet
# sda5 = swap, not mountable
# sda6 = Home
# sda7 = Backup Fat32
# sda8 = ext3 10 gig, empty still
# Do not need to make every time as they already exist
#sudo mkdir /mnt/sda1
#sudo mkdir /mnt/sda2
#sudo mkdir /mnt/sda6
#sudo mkdir /mnt/sda7
#sudo mkdir /mnt/sda8
# Mounts in above created locations, and puts drive/folder on desktop. Still no access
sudo mount /dev/sda1 /mnt/sda1
sudo mount /dev/sda2 /mnt/sda2
sudo mount /dev/sda6 /mnt/sda6
sudo mount /dev/sda7 /mnt/sda7
sudo mount /dev/sda8 /mnt/sda8
# sda1 = Windows
# sda2 = root
# sda3 = extended partition, not mountable
# sda4 = does not exist yet
# sda5 = swap, not mountable
# sda6 = Home
# sda7 = Backup Fat32
# sda8 = ext3 10 gig, empty still
# Do not need to make every time as they already exist
#sudo mkdir /mnt/sda1
#sudo mkdir /mnt/sda2
#sudo mkdir /mnt/sda6
#sudo mkdir /mnt/sda7
#sudo mkdir /mnt/sda8
# Mounts in above created locations, and puts drive/folder on desktop. Still no access
sudo mount /dev/sda1 /mnt/sda1
sudo mount /dev/sda2 /mnt/sda2
sudo mount /dev/sda6 /mnt/sda6
sudo mount /dev/sda7 /mnt/sda7
sudo mount /dev/sda8 /mnt/sda8
ant2ne@ant2ne-laptop:~$ mtall
ant2ne@ant2ne-laptop:~$ sudo ls -l /mnt
total 44
drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda0
dr-x------ 1 root root 8192 2007-05-11 22:18 sda1
drwxr-xr-x 22 root root 4096 2007-05-01 12:22 sda2
drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda3
drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda4
drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda5
drwxr-xr-x 4 root root 4096 2007-05-02 16:20 sda6
drwxr-xr-x 3 root root 8192 1969-12-31 18:00 sda7
drwxr-xr-x 3 root root 4096 2007-05-11 13:10 sda8
ant2ne@ant2ne-laptop:~$ sudo more /etc/mtab | grep sda
/dev/sda2 / ext3 rw,errors=remount-ro 0 0
/dev/sda6 /home ext3 rw 0 0
/dev/sda1 /mnt/sda1 ntfs rw 0 0
/dev/sda2 /mnt/sda2 ext3 rw 0 0
/dev/sda6 /mnt/sda6 ext3 rw 0 0
/dev/sda7 /mnt/sda7 vfat rw 0 0
/dev/sda8 /mnt/sda8 ext3 rw 0 0
ant2ne@ant2ne-laptop:~$
ant2ne@ant2ne-laptop:~$ sudo ls -l /mnt
total 44
drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda0
dr-x------ 1 root root 8192 2007-05-11 22:18 sda1
drwxr-xr-x 22 root root 4096 2007-05-01 12:22 sda2
drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda3
drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda4
drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda5
drwxr-xr-x 4 root root 4096 2007-05-02 16:20 sda6
drwxr-xr-x 3 root root 8192 1969-12-31 18:00 sda7
drwxr-xr-x 3 root root 4096 2007-05-11 13:10 sda8
ant2ne@ant2ne-laptop:~$ sudo more /etc/mtab | grep sda
/dev/sda2 / ext3 rw,errors=remount-ro 0 0
/dev/sda6 /home ext3 rw 0 0
/dev/sda1 /mnt/sda1 ntfs rw 0 0
/dev/sda2 /mnt/sda2 ext3 rw 0 0
/dev/sda6 /mnt/sda6 ext3 rw 0 0
/dev/sda7 /mnt/sda7 vfat rw 0 0
/dev/sda8 /mnt/sda8 ext3 rw 0 0
ant2ne@ant2ne-laptop:~$
Comment